Skip to content
TabKiwiTabKiwi

YAML ⇄ JSON Converter

Convert YAML config into JSON, or JSON into clean block-style YAML, with error locations for bad input.

DeveloperRuns in your browser. Your files never leave this device.
Loading tool…

About this tool

Switch between the two formats in either direction: YAML files become indented JSON you can feed to an API or a script, and JSON becomes readable block-style YAML for config files. A YAML input with several documents turns into a JSON array. Syntax errors are reported with their line and column, and the conversion runs entirely in your browser.

How to use YAML ⇄ JSON Converter

  1. Choose YAML → JSON or JSON → YAML.
  2. Paste your data into the input box.
  3. Pick the indentation width.
  4. Copy the result, or press Swap to convert it back.

Frequently asked questions

What happens to YAML comments?

JSON has no comments, so they are dropped when converting to JSON and cannot be restored when converting back.

Are dates converted to a special type?

No. Values such as 2024-01-01 are kept as strings, which is what most applications expect from JSON.

More Developer tools

View all 91 →