JSON to YAML Converter

Paste JSON and get clean YAML, with values YAML would misread quoted so they stay text. Nothing you paste leaves your browser.

About the JSON to YAML Converter

Convert JSON to YAML online. Objects become indented blocks, arrays become lists, and any text YAML would misread - yes, no, null, numbers, dates - is quoted so it stays text. Large numbers keep every digit.

How to use it

  1. 1Paste your JSON, or upload a .json file.
  2. 2The YAML appears on the right as you type.
  3. 3Copy it, or download it as a .yaml file.

Frequently asked questions

Why are some values quoted in the YAML?

Because YAML would otherwise read them as something else: yes and no as true and false, 2026-10-17 as a date, 123 as a number. Quoting keeps them as the text they were in your JSON.

Which YAML version does it produce?

Standard block-style YAML that YAML 1.2 and 1.1 parsers read the same way, with two-space indentation.

Is my JSON sent to a server?

No. Everything runs in your browser. Nothing you paste or upload is sent anywhere, logged or stored, so it is safe to use with API responses and config files.

Why do large numbers stay exactly as I wrote them?

Most online formatters convert your text to JavaScript numbers and back, which silently rounds anything beyond 2^53 - an ID like 12345678901234567890 becomes 12345678901234567000. This tool keeps every number, escape and key exactly as written and only changes the spacing.