OpenGPT.in

JSON to YAML

Convert JSON into readable YAML.

Runs in your browser Runs entirely in your browser. Nothing you put in it ever leaves your device.

Paste JSON, or drop a .json file here. Converts as you type.

Ready. Everything runs in this page.

Was this useful?


About this tool

Useful for moving a config file from JSON to YAML. Multi-line strings become literal blocks, and anything a YAML parser could misread — like `yes`, `null` or `1.0` as a string — is quoted for you.

How to use it

  1. Paste your JSON, or drop a .json file onto the editor.
  2. Choose an indent width.
  3. Copy or download the YAML.

Supported input

  • Any valid JSON value

Privacy

Runs entirely in your browser. Nothing you put in it ever leaves your device. Everything happens in JavaScript on this page, so the tool keeps working even if you go offline after it has loaded — which is the simplest way to see for yourself that nothing is being sent. Read the full privacy information.

Questions

Which YAML version does it produce?

YAML 1.2, which is a superset of JSON. Strings that YAML 1.1 parsers would coerce to booleans or null — such as `yes`, `no`, `on` and `~` — are quoted so they survive either parser.

What happens to multi-line strings?

They are written as literal blocks using `|-`, which keeps the line breaks and stays readable.

Can it convert YAML back to JSON?

Not yet. Parsing YAML safely needs more code than serialising it, so it is a separate tool rather than a checkbox on this one.