JSON to YAML converter

Paste JSON to get the same data as YAML, ready for config files such as Kubernetes manifests or GitHub Actions. Strings that YAML could misread (like "yes" or "123") are quoted automatically.

  • ๐Ÿ”’ Runs on your device
  • โค’ 0 bytes uploaded
  • โœ“ Free, no sign-up, no watermark
Loading the toolโ€ฆ

How to use JSON to YAML

  1. Paste JSON or open a .json file.
  2. Choose 2 or 4 spaces and whether to sort keys.
  3. Fix any error at the line and column shown.
  4. Copy or download the YAML.

Is it private?

Yes. JSON to YAML runs entirely in your web browser: what you type into it is never sent to Nolo or anyone else, and the page's security policy only allows it to talk to nolotools.com. The site sends only two small things: the words typed in the optional search box, to find a tool, and, the first time you use a tool on a page, that tool's name for an anonymous daily count of tool use (nothing about you, your files or what you typed). Nothing is stored either: close the page and it is gone. How Nolo works.

Questions and answers

Is my JSON sent to a server?

No. Everything runs in your browser and your JSON never leaves your device. The page is not allowed to talk to any other site, so it is safe to use with real data and secrets.

Why are some strings in quotes?

YAML would read some unquoted values as another type: "yes", "no", "null", "123" or "2026-01-31", or text starting with characters like @, *, & or #. Those are quoted so the YAML means exactly the same as your JSON.

Does it change big numbers?

No. Every number is written with exactly the digits in your JSON, so IDs like 12345678901234567890 are not rounded.

Can the JSON contain comments?

Yes, with "Allow comments and trailing commas" on, so JSONC files such as tsconfig.json work. Comments are not carried into the YAML.

How are long strings with line breaks written?

As YAML block scalars (|), so each line of the text is on its own line in the file.