YAML to JSON

Convert YAML to JSON instantly in your browser. Supports nested mappings, sequences, and scalars.

About YAML to JSON

Paste YAML and instantly get formatted JSON output. Supports nested mappings, sequences, quoted strings, booleans, numbers, null values, and comments. Choose your preferred indentation and download the result. All processing runs in your browser.

Features

  • Convert YAML mappings and sequences to JSON
  • Handles quoted strings, booleans, numbers, and null
  • Strips comments during conversion
  • Configurable output indentation (2 or 4 spaces)
  • Copy JSON to clipboard or download as .json file
  • Load sample YAML for quick testing
  • 100% client-side — nothing is uploaded

How to use

  1. 1Paste or type YAML into the input panel.
  2. 2Choose your preferred JSON indent level.
  3. 3Click Convert to generate JSON.
  4. 4Copy the result or download as a .json file.

Frequently Asked Questions

Does it support nested YAML?
Yes. Deeply nested mappings and sequences are correctly converted to JSON objects and arrays.
How are YAML booleans handled?
YAML booleans (true/false, yes/no, on/off) are all converted to JSON true or false.
What about YAML comments?
Comments are stripped during conversion since JSON does not support comments.
Is my data sent to a server?
No. Parsing and conversion run entirely in your browser. Nothing is uploaded.

Related Converters

Explore other tools