Skip to content

JSON ⇄ YAML Converter

Convert JSON to clean, readable YAML or YAML back to JSON — with automatic quoting for values that YAML would otherwise misread.

Processed in your browser. Your data is not uploaded, stored or logged — closing the tab discards it. How this works

YAML & JSON options Show
Direction
YAML formatting
Key order

Changes apply automatically.

JSON input

Paste JSON or YAML, choose a file, or load the sample.

You can also drag and drop a file here.

YAML output

The converted output appears here.

How to convert between JSON and YAML

  1. Choose JSON → YAML or YAML → JSON.
  2. Paste your configuration or data, open a .json / .yaml / .yml file, or click Sample data.
  3. Check the notes below the editor: when converting to YAML, the tool reports how many string values were automatically quoted to protect them from YAML type inference.
  4. Copy the output or download it as a .yaml or .json file.

Strings that must be quoted in YAML

JSON valueUnsafe YAMLHow YAML reads itSafe YAML output
"NO" (Norway)country: NOfalse (YAML 1.1 boolean)country: "NO"
"off" / "on"flag: offfalse / trueflag: "off"
"02134" (ZIP code)zip: 021341116 (octal) or 2134zip: "02134"
"3.10" (version)version: 3.103.1 (number)version: "3.10"
"2026-11-07"date: 2026-11-07Date objectdate: "2026-11-07"

Frequently asked questions

What is the YAML "Norway problem" and how does this converter prevent it?

In YAML 1.1 (still used by many tools and libraries), unquoted words like NO, no, yes, on and off are parsed as booleans (true or false) instead of strings — so Norway's two-letter country code NO becomes false. This converter automatically wraps any string that looks like a YAML boolean, null, number, octal ("02134") or date in double quotes.

Can I convert YAML back to JSON?

Yes. Switch the direction to "YAML → JSON" or press "⇄ Reverse direction", which moves the current output into the input and converts it back.

Are 64-bit numbers and trailing decimals preserved?

Yes. Both JSON → YAML and YAML → JSON use a lossless number representation that keeps numbers as their exact source text, so 64-bit IDs above 9,007,199,254,740,991 are never rounded.

Why does YAML forbid tab characters for indentation?

The YAML specification requires spaces for indentation because different editors display tabs at different widths. If a YAML input uses leading tabs, the converter reports the exact line number.

Is my configuration file uploaded anywhere?

No. Conversion runs entirely inside your browser tab. Kubernetes manifests, Docker Compose files, GitHub Actions workflows and API configs never leave your device.

Last updated .