JSON to YAML Converter

Clean YAML 1.2 formatting · Safe quoting for Norway problem (NO/yes/on) · Multiline blocks

JSON Input
0 B
YAML Output
0 B

        
Ready
Cmd/Ctrl+Enter to run · 100% browser-local
Advertisement
Reserved fixed-height slot (CLS = 0.00) 728×90 320×100 300×50

Avoiding Subtle Quoting Bugs When Converting JSON to YAML

Although YAML 1.2 is a strict superset of JSON, many production DevOps tools—including PyYAML, Helm templates, Ansible, and GitHub Actions—still apply YAML 1.1 implicit typing rules. This creates the infamous 'Norway Problem': an unquoted country code NO, version string 1.10, or workflow key on gets silently parsed as boolean false, float 1.1, or boolean true.

This client-side converter inspects every string scalar before emitting it and quotes any value that could be misinterpreted as a boolean, null, number, octal, or mapping delimiter. Your Kubernetes manifests, Helm values, and CI workflows stay 100% private inside your browser.

  • SpecificationYAML 1.2 compliant emitter with backward-safe quoting for YAML 1.1 parsers (PyYAML, Ansible, GitHub Actions)
  • String Quoting GuardAutomatically quotes ambiguous scalars (yes, no, on, off, true, false, null, numeric strings, colon-space values)
  • Multiline ScalarsRenders embedded newlines cleanly using literal block scalar syntax (|) for readable scripts and templates
Why does the converter put quotes around strings like 'NO' or 'on'?

YAML 1.1 parsers (such as PyYAML and older Kubernetes/Ansible tooling) interpret unquoted NO, yes, on, and off as booleans. Quoting them guarantees they remain strings everywhere.

Does YAML allow tabs for indentation?

No. YAML strictly prohibits tab characters for structural indentation; this converter always emits consistent 2-space or 4-space indentation.

Can I convert YAML back to JSON?

Yes—use our companion YAML to JSON converter or compare two manifests side by side in the YAML Diff tool.