JSON to YAML

Paste JSON from an API response or an export and get YAML you can actually read — no braces, no trailing commas, one key per line.

Configs often hold keys and hostnames — nothing here is sent anywhere.

How to use

  1. Paste the JSON into the first box.
  2. Read the YAML below — it appears as you type.
  3. Press «Copy», or switch the tab to convert back.

Good to know

Why YAML for configuration

JSON was designed for machines: every string quoted, every item comma-separated, no comments allowed. YAML gives the same structure with indentation instead of punctuation, and once the file becomes something a person edits by hand — a pipeline, a deployment, a linter setup — that difference decides how often it gets edited wrongly.

What the converter takes care of

Strings that could be mistaken for numbers, booleans or dates come out quoted, so a version «1.10» does not become the number 1.1 and a country code «NO» does not become false. Long values are not wrapped, because a broken line inside a URL is a bug waiting for the next deploy.

Frequently asked questions

Are comments added?

No. JSON has none to carry over, and inventing them would be guesswork. You can add your own once the file is in an editor.

Does the result parse back to identical JSON?

Yes. The conversion is structural: keys, values, arrays and nesting are preserved exactly, so a round trip returns what you started with.

Is my data sent to a server?

No. Everything happens in your browser, which matters for API responses that contain real records.

How large a file can it handle?

Up to about five megabytes. Beyond that the browser struggles to display the result rather than to convert it.

Related tools