Like ToolFern? Prefer us as your source on Google →

YAML Validator and Formatter

Paste YAML to check it for errors and reformat it with clean indentation. Mistakes are reported with a line and column.

How to use it

  1. Paste your YAML into the input box.
  2. Pick an indent size and whether to sort keys.
  3. Press Validate and format. Errors show the line and column; valid YAML is shown reformatted.

How it works

YAML depends on indentation, so a single misplaced space can change the meaning of a file. This tool parses the text, tells you exactly where it goes wrong, and prints a clean version when it is valid.

Frequently asked questions

Does it support several documents in one file?

Yes. Documents separated by --- are checked one by one and written back with --- between them.

Why does YAML complain about tabs?

YAML only allows spaces for indentation. Replace tabs with spaces and check again.

Are comments kept when formatting?

No. Formatting rebuilds the YAML from its data, so comments are dropped. Validate only if you need to keep them.

Which YAML version is checked?

The parser follows YAML 1.2 rules for the core schema.

Found this useful? Share it