JSON to YAML

JSON in, readable YAML out, in one panel.

FREE - NO SIGN-UP - RUNS ON YOUR DEVICE

Runs in your browser tab

  • JSONin
  • YAMLout
  • 0uploads
  • 1 tapto save
Specification

JSON to YAML at a glance

Opens on
JSON into YAML
Indentation
Two spaces, no wrapping
Key order
Kept as written
Errors
Sentence with line and column
Price
Free
Account needed
None
Where processing happens
On your device
How to

How to use JSON to YAML

  1. 1

    Paste your JSON

    Paste your JSON.

  2. 2

    Read the YAML

    Read the YAML.

  3. 3

    Copy or download

    Copy or download.

Questions

Frequently asked questions

Are keys reordered?

No. The keys come out in the order they went in, so the YAML lines up with the JSON you pasted and is easy to check by eye.

Why are some strings quoted?

Because without quotes YAML would read them as something else. The word yes, the word no and a bare date all need quotes to stay text.

Can I go the other way?

Yes. Change the to selector to JSON, or press Reverse, which also puts the result back in the box so you can turn it straight back.

Background

Reading the YAML you get

The panel opens already set to JSON in and YAML out, with a sample loaded. Replace it with your own JSON and the YAML appears as you type. Both selectors still move.

  • Quoted values are quoted for a reason: without them YAML would read them as a different type.
  • Lists are written as dashed lines, one item to a line.
  • Press Reverse to turn the YAML back into JSON and check nothing shifted.

Full specification

Specification of the JSON to YAML tool
Opens onJSON in, YAML out. Both selectors change without leaving the page.
IndentationTwo spaces, with line wrapping switched off so long values stay on one line.
Key orderKept as written, so the YAML reads in the same order as the JSON did.
ErrorsA sentence naming the line and column where the JSON stops being valid.
PriceFree. Supported by clearly labelled ads outside the working area.
Account neededNo.
Where processing happensIn your browser tab. Nothing is uploaded.
Next step

Keep going with the same files

All developer tools: Developer tools on SPOTTOOLS