Skip to main content
ToolsBay

Runs in your browser — nothing is uploaded · verify

YAML Validator — free, and it runs in your browser

Validate YAML syntax and preview the parsed result as JSON.

  • Check YAML parses before a pipeline rejects it at three in the morning.
  • See the parsed result as JSON, which is what the file actually means.
  • Catches the indentation and tab mistakes that YAML is famous for.

YAML

Tab indents · Esc then Tab to leave1 line

Parsed result as JSON

1 line
  • 70 tools

    Free, with no account and no watermark

  • 0 bytes

    Of your files or text uploaded — this tool runs in the tab

  • No queue

    The work happens in this tab, not in a line behind other users

Three steps, nothing to install

YAML Validator in three steps

  1. YAML123456Paste it in — it never leaves the tab

    Paste the YAML

    A CI config, a Kubernetes manifest, a Compose file or an OpenAPI spec.

  2. YAMLEvery field, broken out and checked

    Validate and preview

    Errors report where parsing failed. A valid document is shown as JSON, so you can check it means what you intended, not just that it parses.

  3. Copy REPORT

    Take the result

    Copy the JSON view or the corrected YAML.

Why use YAML Validator

  • Parsing is not the same as correct

    YAML will happily parse a document that means something other than you intended. Seeing the result as JSON is what catches a string that should have been a number.

  • Errors that say where

    When something will not parse you get the line and column it gave up on, not a red box that says the input was invalid.

  • Your text stays in the page

    What you paste is not transmitted or stored, so an API response full of customer records, a token or an internal query never leaves your machine.

Frequently asked questions

YAML uses indentation for structure, and tabs are forbidden — only spaces count. An editor that inserts tabs is the most common cause. Indentation must also be consistent within a block.

Why YAML breaks

YAML is designed to be readable, and it buys that readability by making whitespace structural. That is the source of nearly every error: a line indented by three spaces where its siblings use two, or a tab character that looks identical to spaces on screen but is rejected outright.

The type-coercion surprises

The second category is subtler because the file parses fine and the data is simply wrong. A value like 1.20 becomes the number 1.2, losing the trailing zero, in any YAML parser. Parsers that follow the older YAML 1.1 — Python's PyYAML among them — go further: a set of bare words become booleans, so the country code NO becomes false and a version key of on becomes true, and times such as 22:30 can be read as base-60 numbers.

This validator follows YAML 1.2 for those words and times, which stay strings — so a file that looks right here can still change type in a YAML 1.1 reader. The fix is the same either way: quote anything meant to be a string. The JSON preview shows what this parser produced — dates appear as ISO timestamps, and .inf or .nan as null, because JSON has no such values — which is where a lost trailing zero or a mis-nested list shows up.

Where YAML shows up

Kubernetes manifests, Docker Compose files, GitHub Actions workflows, OpenAPI specifications and Ansible playbooks. In most of these a subtle parse difference means a deployment behaves unexpectedly rather than failing loudly, which is what makes checking the parsed output worthwhile.

For the equivalent JSON checks, use the JSON validator and formatter.

  • JSON Validator

    Check whether JSON parses, and see the line and column where it stops.

  • JSON Formatter

    Pretty-print JSON with the indentation you choose, or minify it.

  • HTML Beautifier

    Re-indent minified or messy HTML into readable markup.

  • CSS Minifier

    Strip comments and whitespace to shrink a stylesheet.

  • JavaScript Formatter

    Format JavaScript and TypeScript with Prettier in your browser.

  • URL Parser

    Break a URL into its protocol, host, path and query parameters.

More tools

70 tools, none of which want your file

Everything this tool does happens in the page you are looking at. No account, no upload, no watermark.