Skip to main content

InstrumentsJSON and YAML Converter

JSON and YAML Converter

Convert JSON to YAML or YAML to JSON in your browser, with a 2 or 4 space indent for JSON output and the parser message when the input is invalid.

All tools

JSON and YAML Converter

One JSON value, up to 20,000 characters.

The YAML library follows YAML 1.2 defaults. Comments are not kept in JSON output.

YAML output

Loading the converter...

FAQ

Are YAML comments kept in the JSON output?

No. JSON has no comment syntax, so comments are dropped when YAML is converted to JSON. The YAML output from a JSON input has no comments either.

Which YAML version does the converter follow?

The parser uses the YAML library defaults, which follow YAML 1.2. Under those rules, plain values such as yes and no are read as strings, not booleans.

Why does my YAML fail to convert?

The error message comes from the parser and usually gives a line and column. YAML nests with spaces, not tabs, so check indentation first. A file with more than one document separated by --- must be converted one document at a time.

  1. 01Enterprise Migration Strategy: JavaScript to TypeScriptTutorial
  2. 02Prometheus Alerting Strategy for Production: Fix Alert FatigueTutorial

Personalize your path

Choose your experience level once.

Next Step

Build fundamentals after each tool run so you can apply concepts with confidence.

Get new tool alerts

Receive updates when new tools are published.

RSS feed