Convert YAML and JSON both ways

Paste YAML or JSON on the left and it's converted to the opposite format on the right in real time. It supports indentation and key-sorting options plus line-by-line error reporting, and all processing happens entirely inside your browser.

AG YAML — YAML ↔ JSON Converter & Validator

YAML JSON
Indentation
SourceYAML
OutputJSON
Lines0
Size0 B
Keys0
This tool converts between YAML 1.2 and JSON using the js-yaml engine. If parsing fails, it tells you which line went wrong and why, and for JSON output you can choose the indentation (2·4·tab·minify) and alphabetical key sorting. Nothing you enter is sent to or stored on a server — everything is processed inside your browser.

Does it convert YAML and JSON both ways?

Yes. Use the direction button in the middle to switch between YAML→JSON and JSON→YAML, and you can feed the output back as input to verify a round trip.

Can I tell where something went wrong when a conversion fails?

If there is a syntax error, the parser shows the detected line number and the cause below the source pane. For YAML it uses js-yaml's position info; for JSON it converts the error location into a line and column.

Can I change the JSON indentation or key sorting?

Yes. You can choose between 2 spaces, 4 spaces, tab, or Minify, and turning on alphabetical key sorting outputs objects with their keys sorted.

Is the data I enter sent to a server?

No. Every conversion happens only inside your browser, and nothing is ever sent to or stored on a server. You can safely handle config files and secrets.

In-browser processing Real-time conversion No sign-up Completely free