Validator

YAML Validator

Drop a file or paste your YAML and the parser reports either a pass with a structural summary, or the first place it breaks — line, column, and the message. Nothing is uploaded, so a production manifest is as safe to check here as a toy example.

Result

Valid YAML
Documents
1
Top-level keys
3
Lines
11

Checking starts as soon as you type — there is no button to press, and no file to submit.

The YAML errors that actually catch people

Tabs instead of spaces

YAML reserves the tab character for content, not structure. A file indented with tabs can look perfect in an editor and still be rejected.

Paste → convert tabs to spaces, then re-check.

A colon inside an unquoted value

A colon followed by a space starts a mapping, so "summary: Deploy v2: fast" is read as a value that is itself a map. YAML rejects that combination outright, and the message talks about nested mappings.

Wrap the value in double quotes.

Indentation off by one space

A nested key one space short of its siblings stops belonging to its parent. This one does complain — "all mapping items must start at the same column" — but it names the offending line, not the key you broke.

Compare the column of the failing key against its siblings.

Duplicate keys in one mapping

The same key twice in a block is an error rather than an overwrite, because the second value would silently win in some tools and be ignored in others.

Rename or merge the two entries.

A quote that never closes

One stray quote swallows the rest of the file as a single string, so the error lands far below the mistake.

Search backwards from the reported line for an unpaired quote.

A missing space after a dash

A sequence separator is a dash and a space. Put a key straight after the dash — "-name: x" — and YAML accepts it as a key literally called "-name": no error, just a file that is quietly not the list you meant.

Change "-name: x" to "- name: x" and compare the key count above.

Frequently asked questions

How do I check if a YAML file is valid?
Paste the contents above, or drop the file on the box. A valid document reports the number of documents and top-level keys it found; an invalid one stops at the first problem and gives you the line and column plus the parser message.
Is there a free online YAML validator with no upload?
This one. Validation happens in your browser using a YAML 1.2 parser, so the file is never transmitted. You can confirm it by switching your network off after the page loads — checking still works.
Why does my YAML fail on a line that looks correct?
Usually the line above it. YAML decides structure from indentation, so one misplaced space changes which block a key belongs to, and the parser only notices when it reaches a token that cannot fit the structure.
Can I validate a Kubernetes or docker-compose file here?
Yes. Multi-document files separated by --- are counted and each document is checked, which covers a Kubernetes manifest with several resources. Schema-level rules are a different job: this checks that the file is well-formed YAML, not that a field is allowed by Kubernetes.
Does the validator accept tabs for indentation?
No, and neither does YAML. Tabs are forbidden as indentation in the specification, so a file that looks aligned in your editor can still fail. Converting tabs to spaces fixes it.
What is the difference between validating and formatting?
Validation answers whether the parser accepts the document and where it breaks. Formatting additionally rewrites the file with normalised indentation and spacing. The formatter on the home page does both, and shows a diff of what changed.