Skip to content

YAML to JSON converter

  • Runs on your device
  • Works offline once loaded

Convert a YAML file to JSON and catch syntax errors on the way. Anchors and multi document files are resolved, and everything stays on your device.

How it works

  1. Paste your data or open a file.
  2. Choose the input and output formats.
  3. Copy or download the converted data.

Why use it

  • Syntax errors shown.
  • Anchors resolved.
  • Pretty printed JSON.
  • Private.

Questions and answers

Why did my YAML fail?

Indentation errors are the usual cause. The message shows the line.

Are comments kept?

No, JSON cannot hold comments.

Related guides

Data6 min read

CSV, Excel or JSON: which format for your data?

We saved the same 100,000 row table as CSV, as an Excel workbook and as JSON, then compared the sizes, how fast each one reads in code, and what goes wrong with dates, leading zeros and long numbers.

Esc