Turn JSON into readable YAML, with quoting and multiline strings handled properly.
Nested config
Objects become indented blocks
{"server":{"host":"localhost","port":8080}}Arrays
Lists become dashed items
{"tags":["alpha","beta"],"count":2}The Norway problem
Country codes stay strings
{"country":"NO","enabled":"yes"}Nested config
Objects become indented blocks
{"server":{"host":"localhost","port":8080}}Arrays
Lists become dashed items
{"tags":["alpha","beta"],"count":2}The Norway problem
Country codes stay strings
{"country":"NO","enabled":"yes"}A config file, an API response, anything valid.
Two or four spaces, and whether to sort keys.
Ready to drop into a config file.
A bare NO in YAML 1.1 is the boolean false, and the same trap catches yes, on, off and y. Strings like these come out quoted, so the document means the same thing to every parser that reads it.
Text containing new lines becomes a block scalar you can actually read, rather than one long line full of backslash-n escapes.
An object referenced twice is written out both times. Anchors are valid YAML and thoroughly confusing to anyone who was not expecting them in a converted file.
Convert a JSON config or API response into YAML. The JSON is validated first, then serialised by the same well-tested YAML library the site uses for parsing, so the output is guaranteed to read back as the data you started with. The awkward parts are handled rather than glossed over: strings like NO, yes and off are quoted so a YAML 1.1 parser cannot silently turn them into booleans, multiline strings become block scalars instead of a wall of escape sequences, and repeated objects are written out in full rather than as anchors and aliases. Key order is preserved by default, or can be sorted.
Keep going
Related pages in Developer Tools, plus what others are using right now.
More developer tools that pair well with this one.
Tidy YAML indentation, validate structure and convert between YAML and JSON.
Format, validate and minify JSON, with errors that point to the exact line.
Turn CSV into JSON, with quoted fields and embedded commas handled properly.
Turn a JSON array of objects into CSV, with correct escaping.
Explain a cron expression in plain English and see exactly when it will next run.
Test regular expressions live, with highlighted matches and capture groups.
Create strong random passwords with full control over length and characters.
Work out any percentage — of a number, as a share, or as a change.
Count words, characters, sentences and paragraphs as you type.
Convert between length, weight, temperature, volume, speed, data and more.
Count characters with and without spaces, against the limits that matter.
Find the mean, median, mode and range of a list of numbers, with the working shown.
Sample and population standard deviation and variance, both shown, with the working.
Turn a logo into favicon.ico, the PNG sizes a site needs, and the HTML to declare them.
Check a downloaded file against its published checksum, without uploading anything.
Stamp text like DRAFT or CONFIDENTIAL across a PDF, in your browser.
See how savings grow with compounding, including regular contributions.
Shrink JPEG, PNG and WebP files with a quality slider and a live size comparison.