Skip to main content
Developer Tool

JSON/YAML Converter

Convert JSON to YAML or YAML to JSON as you type, for config files, Kubernetes manifests or CI pipelines, with errors located to the line.

Direction
Indent
Input
Result

The result will appear here

Learn more

JSON and YAML: what changes

When you need the other format

A docker-compose file, a Kubernetes manifest or a GitHub Actions workflow is YAML, while the API or the script that produces the data speaks JSON. Paste either one and get the other, with the indentation you pick.

What carries over

Strings, numbers, booleans, null, lists and maps convert both ways without loss. YAML anchors and merge keys are expanded into their values, comments are dropped (JSON has none), several documents separated by --- become a JSON array, and an unquoted date stays text instead of becoming a timestamp. A file built to explode in size through aliases is refused.

How it works

JSON/YAML Converter in 3 steps

  1. Paste your data

    Paste your JSON or YAML into the input panel. Choose the conversion direction using the toolbar.

  2. Choose direction & options

    Select JSON → YAML or YAML → JSON, and pick your preferred indentation (2 or 4 spaces).

  3. Copy the result

    The converted output appears instantly in the output panel. Click the copy button to copy it to your clipboard.

Practical guides

Get the most out of JSON/YAML conversion

How it works

JSON and YAML are two of the most popular data serialization formats. JSON is the standard for APIs and data exchange, while YAML is preferred for configuration files due to its human-readable syntax.

This converter lets you switch between both formats instantly, which is useful when migrating configs, debugging API responses, or preparing data for different systems.

Quick & easy

Privacy & security

This converter runs entirely in your browser. No data is ever sent to a server — the conversion happens locally using JavaScript.

Configs often hold hostnames, keys and tokens: the conversion happens in your browser only.

Runs in your browser
Frequently asked questions

JSON/YAML Converter — FAQ

Everything you need to know about converting JSON and YAML