TonySkill

YAML validator

Check a YAML file (Docker Compose, GitHub Actions, Kubernetes…): indentation, duplicate keys, syntax. Error pinpointed to the line. Nothing is uploaded.

Accepted: JSON, CSV, TSV, XML, YAML, YML, TXT · Max 50 MB per file

Processed on your device. Only tools that say so send a file to our server.

Tip: paste text anywhere on the page (Ctrl+V).

How to validate YAML

  1. Paste your YAML or drop the .yml file.

  2. The verdict appears at once, with the line and column of the error.

  3. Fix it in the box; the normalised version on the right can be copied or downloaded.

Why use this tool

Instant verdict
Valid or not, with the number of items, columns and nesting depth. YAML also reports duplicate keys.
Errors explained
A missing comma, a badly closed tag, wrong indentation: the line and column are shown, the line is highlighted and “Go to error” puts the cursor there.
One-click repair
Comments, trailing commas, single quotes, unquoted keys: the most common slips in hand-written JSON are fixed automatically.
Nothing leaves your device
The conversion runs in your browser: your data is never sent to a server, even 50 MB files.

To validate a YAML file online, paste it or drop the .yml/.yaml file above: the verdict appears at once, with the line and column of the first error, and a normalised version you can copy. The check uses js-yaml with the YAML 1.2 rules, supports several documents separated by ---, and runs in your browser — your configuration and its secrets are not uploaded. The file can be up to 50 MB.

The errors and traps it reveals

ErrorExampleFix
Tab used for indentationA line indented with a Tab keyYAML only allows spaces: replace tabs with 2 spaces
Inconsistent indentationA child key indented by 3 spaces under siblings at 2Align keys of the same level exactly
Duplicated keyTwo "image:" keys in the same serviceRemove or rename one; most tools silently keep the last one, which hides bugs
Missing space after a colon (silent trap)key:valueNot an error: it is read as one piece of text, not a key. The normalised output shows it; write key: value
Unquoted special charactersA value starting with *, &, @, ` or containing ": "Wrap the value in quotes
Unclosed quote or bracketname: "webClose the quote; the error line points just after it

Valid YAML is not always a valid config

This tool checks the YAML syntax. It does not know the rules of each program: a Docker Compose file with a misspelled key ("imgae:") or a Kubernetes manifest with a wrong apiVersion is valid YAML, and will only be rejected by Docker or kubectl. After fixing the syntax here, run the program's own check: docker compose config, kubectl apply --dry-run=client, or the GitHub Actions editor.

Beware of YAML 1.1 parsers: some older tools read unquoted no, yes, on and off as booleans (the classic "Norway problem", where the country code NO becomes false). This validator follows YAML 1.2, where they stay text. When in doubt, quote such values.

Useful extras

  • Several documents in one file (separated by ---), as in Kubernetes manifests, are each checked.
  • Normalised output: the parsed content is re-written with consistent indentation, handy to tidy a messy file.
  • Convert once valid: YAML to JSON for APIs and tools that expect JSON.
  • Private: API keys, passwords and internal hostnames in your config never leave the browser.
  • To convert a valid YAML file to JSON, XML or CSV, use the Data converter.

Something wrong with this tool?

Frequently asked questions

How do I check if my YAML is valid?

Paste it or drop the .yml file on this page: errors are shown at once with their line and column, using the YAML 1.2 rules of js-yaml.

Can I use tabs in YAML?

No. YAML forbids tab characters for indentation; use spaces, usually two per level.

Does it validate Docker Compose or Kubernetes files?

It validates their YAML syntax. Whether the keys are correct for Docker or Kubernetes is checked by their own tools, such as docker compose config or kubectl apply --dry-run=client.

Is my YAML uploaded?

No. Validation runs in your browser, so passwords or API keys in your configuration stay on your device.

More data tools

  • JSON validatorCheck JSON and find the exact error, line and column, explained in plain words. One-click repair.FreeNo sign-up
  • Data converterSwitch between data formats: CSV, JSON, XML or YAML. The source format is detected automatically.FreeNo sign-up
  • CSV to JSONEach CSV row becomes a JSON object keyed by the headers. Delimiter detected, numbers and booleans recognised.FreeNo sign-up
  • JSON to CSVA list of JSON objects becomes a CSV table ready for Excel. Nested objects are flattened into columns.FreeNo sign-up
  • CSV editorOpen a CSV in a real spreadsheet: delimiter detected, accents kept, save as CSV or Excel.FreeNo sign-up
  • CSV to XLSXOpen a CSV in Excel without broken accents or columns.FreeNo sign-up