YAML Lint & Normalize
Lint a YAML document on your device and get a checklist-style table of issues — tab indentation, unclosed quotes or flow brackets, duplicate mapping keys, and unsupported constructs — each with a line and column. When the document is well-formed it is re-emitted as normalized YAML: consistent indentation, decoded quoted scalars, stripped trailing comments, and safe quoting so the output parses back to the same values. Supports block mappings and sequences, flow collections, single/double-quoted scalars, block scalars, comments and document markers.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
Lint first, then normalise
The tool reads the document line by line and builds a logical structure, then reports every problem it finds as a table row with a line and column: tabs used for indentation, an unclosed quote or flow bracket, a duplicate mapping key, or a construct it cannot represent such as an anchor or tag. Only when nothing is wrong does it also emit normalised YAML if you asked for it.
What the normalised output does
Normalising re-emits the parsed document with consistent indentation at the width you choose (2 to 8 spaces), decodes quoted scalars back to their values, strips trailing comments and adds safe quoting only where a plain scalar would be ambiguous. Because the output is regenerated from values, it parses back to exactly the same data — the change is presentation, not meaning.
A concrete use
Paste a Kubernetes manifest or a CI workflow that a colleague hand-edited and broken. Instead of the runtime’s terse “mapping values are not allowed here”, you get a list of the offending lines — most often a tab where spaces belonged, or two keys with the same name — so the fix is obvious before the file ever reaches the cluster.
Scope and privacy
This is a focused validator for the common YAML subset — block and flow collections, quoted and plain scalars, block scalars, comments and document markers — not a full spec-conformant parser; anchors, aliases, tags and multi-document streams are flagged rather than silently misread. The whole analysis runs in the page with no upload, so a secret-laden config never leaves your device.
Questions
Which YAML features are validated?
Block mappings and sequences with nesting, flow collections ([…] and {…}, including multi-line), plain and single/double-quoted scalars, block scalars (| and >), comments, and document markers (---). Anchors, aliases, tags and multi-document streams are reported as unsupported rather than silently misparsed.
Does "normalize" change the meaning?
No. Values are re-emitted with safe quoting rules, so numbers, booleans and nulls keep their native meaning and strings are quoted only when a plain scalar would be ambiguous. Trailing comments are stripped after values, which is cosmetic.
What makes linting fail?
Tabs used for indentation, unclosed quotes or brackets, duplicate keys inside the same mapping, inconsistent block indentation, and empty input are reported as errors so you can fix the document.
Is this a full YAML parser?
It is a focused validator and normalizer for the common YAML subset described above — enough to catch most real-world mistakes — not a conformance implementation of the whole spec.
Related tools
See categoryJSON to YAML
Convert JSON to YAML on your device, with a 2- or 4-space indent.
CSV to YAML
Convert a CSV table into block-style YAML with automatic type detection and quoting.
YAML to JSON
Convert YAML to JSON locally, with indent choice and optional key sorting.
INI Converter
Convert INI config files to JSON or serialize JSON back to INI, on device.