Data Conversion Tools Runs in your browser Free · no account

JSON to YAML Converter

The JSON to YAML converter rewrites a JSON document as indented YAML, quoting only the strings that need it and keeping numbers, booleans and null in their YAML forms. Multi-line strings are emitted as block scalars so the result stays readable.

Options
JSON 0 characters
YAML to JSON
YAML

Your result will appear here.

Not sure where to start? Use Load example.

Results update automatically and are calculated on your device. Nothing you type is sent to a server.

Runs in your browser. Processing happens entirely in your browser. Nothing you enter is sent to Delimiter.live.

How to use the JSON to YAML Converter

  1. Paste valid JSON.
  2. Choose an indent size — two spaces is the YAML convention.
  3. Copy or download the YAML.

Example

Input
{"name":"Ada","tags":["a","b"]}
Output
name: Ada
tags:
  - a
  - b

Common use cases

  • Moving a JSON configuration file to a YAML-based tool such as a CI pipeline.
  • Making a dense JSON document readable for review.
  • Producing YAML fixtures from an API response.

Limitations and things to watch for

  • Strings are only quoted when necessary — when they would otherwise be read as a number, boolean, null, date or YAML special character. Turn on "Always quote strings" if you want unambiguous output at the cost of readability.
  • Empty objects and arrays are written in flow style as {} and [], which is the standard representation.
  • Very deeply nested structures produce heavily indented YAML; that is a property of the format rather than the converter.

Frequently asked questions

Why are some strings quoted and others not?
YAML would otherwise reinterpret them. A string such as "yes", "3.14" or "2026-01-01" must be quoted to stay a string, while ordinary words do not need quoting. The converter quotes only where it matters.
How are multi-line strings handled?
They are emitted as literal block scalars using the | indicator, so line breaks are preserved and the file stays readable.
Is the output valid YAML?
Yes. You can verify it by pasting the result into the YAML to JSON converter and checking that you get your original structure back.

Share this tool