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
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 use JSON to YAML
- 1
Paste your JSON
Paste your JSON.
- 2
Read the YAML
Read the YAML.
- 3
Copy or download
Copy or download.
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.
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
| Opens on | JSON in, YAML out. Both selectors change without leaving the page. |
|---|---|
| Indentation | Two spaces, with line wrapping switched off so long values stay on one line. |
| Key order | Kept as written, so the YAML reads in the same order as the JSON did. |
| Errors | A sentence naming the line and column where the JSON stops being valid. |
| Price | Free. Supported by clearly labelled ads outside the working area. |
| Account needed | No. |
| Where processing happens | In your browser tab. Nothing is uploaded. |
Keep going with the same files
All developer tools: Developer tools on SPOTTOOLS