ENRU

JSON to YAML

I speak YAML. I just don’t trust it.

Inputempty

Paste JSON. YAML comes out the other side.

Ctrl+Enter converts · key order kept

YAML trusts indentation. I trust brackets.
— JSON Statham
OutputYAML
Example: JSON Statham described as JSON. Strict, not rude.
Waiting for JSON.
Ln 1, Col 11:10 BAPI

Paste JSON and get YAML that means the same thing to a YAML 1.2 reader. Keys keep their order, numbers keep their notation, and strings YAML would misread are quoted.

How it works

  1. Paste JSON or drop a file.
  2. Press Ctrl/Cmd+Enter.
  3. Copy the YAML or download .yaml.

Strings YAML would misread

JSON stringUnquoted, YAML reads it asWe write
"no"boolean"no"
"on"boolean"on"
"null"null"null"
"0800"number"0800"
"1e3"number"1e3"
"2026-11-06"date"2026-11-06"

FAQ

Why are some strings in quotes?

Unquoted, values like no, on, yes, null, 0123, 1e3 or 2026-11-06 would be read by YAML as booleans, null, numbers or dates. Quotes keep them strings.

Is key order preserved?

Yes. Keys come out in the same order as in the JSON. Numbers keep their notation too: 1.10 stays 1.10.

What kind of YAML does it produce?

Block-style YAML with 2-space indentation. Strings that YAML 1.1 or 1.2 would read as booleans, null, numbers or dates are quoted. Numbers keep their JSON notation, so a YAML 1.1 reader (Ruby Psych, PyYAML) may load exponent forms like 1e3 as strings.

Can it convert YAML back to JSON?

Not yet. One direction, done properly.

Other tools

Keyboard shortcuts

Everywhere
Ctrl+EnterRun the page’s main action
Ctrl+OOpen a file
Ctrl+SDownload the result
F8 / eJump to the error
/Focus the input
wWrap lines
cCopy the output
qAnother quote
?This help
EscClose

Keys like c, q, w work when the cursor isn’t in an editor.

Runs the tool after a pause in typing: 0.6 s, or 1.2 s above 64 KiB; off above 256 KiB. Each run sends your JSON to our API.