Developer tool

YAML Validator

Check common YAML syntax and see an exact line for indentation or mapping errors.

Runs in your browser
YAML Validatorworks locally
Result

Checks common mappings and indentation, not every advanced YAML 1.2 feature.

How to use this YAML validator

  1. Paste the source text or code, then choose the conversion or formatting mode.
  2. Review the validation result and reported error location. Check syntax, escaping, and edge cases against the source before using the result in a live project.
  3. Check the output against the source, then copy or download the finished result.

About this YAML validator

Use the YAML Validator to check common YAML syntax and see an exact line for indentation or mapping errors. The result changes when you adjust the values or options above.

You can also use it to check source text for structural or syntax problems.

Example

Paste YAML with one list item indented at the wrong level to find the line that breaks the document structure.

Common uses

  • check common YAML syntax and see an exact line for indentation or mapping errors
  • check source text for structural or syntax problems
  • prepare a clean version for testing or reuse