YAML to JSON and JSON to YAML converter

Paste YAML or JSON — it's detected and converted to the other format, with the error line if something's wrong.

About YAML ↔ JSON

Paste YAML or JSON; the format is detected and converted. Syntax errors show the line and column. It uses js-yaml with full YAML 1.2 support (anchors, multi-line strings, multiple documents).

YAML uses indentation instead of brackets — spaces only, never tabs.

FAQ

Why is my YAML invalid?

Usually tabs or uneven indentation — YAML needs spaces.

More tools here

Other tools you may like