RichScriptsAll tools ↗
FREE DEVELOPER TOOL

YAML ⇄ JSON Converter

Convert structured documents with clear validation.

✓ Runs in your browser✓ No account needed✓ No input stored

Input & settings

Result

How to use it

  1. 1Choose a direction

    YAML to JSON, or JSON to YAML.

  2. 2Paste the document

    One document at a time.

  3. 3Copy the result

    Errors point at the problem line instead of failing silently.

Good to know

One document per run

Multi-document YAML separated by --- is not converted in one pass.

Comments are not preserved

YAML comments and the original spacing are lost, because JSON has no place to put them.

JSON-compatible values only

Custom YAML tags, anchors resolved to non-JSON types, dates and other special types are not supported.

Local conversion

Config files often hold secrets, so nothing is uploaded.

Common uses

  • Moving a config between tools that expect different formats
  • Reading a dense JSON payload as YAML
  • Checking that a YAML file parses
  • Pasting Kubernetes or CI config into a JSON-only field
  • Comparing two configs in the same format

Questions

Why did my YAML fail to convert?

Usually indentation: YAML uses spaces, never tabs, and each level must line up. The error message names the line to check.

Are comments kept?

No. JSON cannot hold comments, so they are dropped in both directions.

Does it handle multiple documents?

Not in one pass. Convert one document at a time.

Is my config uploaded?

No. It is converted in your browser.

How it works

One YAML document at a time. Comments and original formatting are not preserved. Custom YAML tags are unsupported. Output is limited to JSON-compatible values.