Unformat.online

Validate YAML Online

Check YAML syntax and format with consistent indentation. Paste your YAML and instantly see if it's valid — errors are reported with their location. 100% client-side.

Rules:Smart QuotesConverts curly quotes (“” ‘’) to straight quotes. Always active.Non-Breaking SpacesReplaces non-breaking spaces (U+00A0) with regular spaces. Always active.Line EndingsNormalizes CRLF → LF and trims trailing whitespace per line. Always active.Removes invisible zero-width characters (U+200B, U+200C, U+200D) that silently break string comparisons.Strips the Byte Order Mark (U+FEFF) that causes “invalid character” errors in parsers and editors.Removes soft hyphens (U+00AD) from PDFs that show as garbled characters in code editors.Converts mixed tabs/spaces to a consistent indent width. Click to pick a size.Collapses all line breaks into one continuous paragraph. Great for reflowing PDF or email text.Control blank line density. Click to pick Keep 1 or Remove all.Text never leaves your browser
0 characters

Common YAML errors

YAML is more sensitive to formatting than most data formats. Its indentation-based structure means a single misaligned space can change the document's meaning or cause a parse error. The most frequent issues:

  • Mixing tabs and spaces — YAML prohibits tabs for indentation. Most editors insert tabs by default; YAML parsers reject them.
  • Inconsistent indentation depth — each nesting level must use the same number of spaces. Mixing 2-space and 4-space indentation breaks structure.
  • Unquoted special characters — colons, pipes, brackets, and other YAML operators in string values must be quoted.
  • Missing space after colonkey:value is a bare string in YAML; key: value is a key-value pair. The space is required.

This validator parses your YAML using the same library used by CI/CD tools and Kubernetes operators. If your YAML passes here, it will pass production parsers.