ToolHub

YAML ↔ JSON Converter

Convert between YAML and JSON instantly

YAML input

JSON output

Quick steps

1

Pick direction

Switch between YAML → JSON and JSON → YAML at the top.

2

Paste your data

Use the sample button for a realistic example. The output regenerates as you type.

3

Copy or download

Grab the result with one click, or download as a file.

Frequently asked questions

Which YAML version is supported?

YAML 1.2 with the safe schema (no JavaScript-specific or unsafe types). Anchors, aliases, mappings, sequences, multiline strings, and quoted styles all work.

Why did my JSON convert to YAML with extra empty values?

YAML preserves null distinctly from empty strings, while JSON conflates undefined with null. This is by design.

Can I diff two YAML files?

Convert both to JSON first, then run them through our Text Diff tool. JSON's strict format makes diffs reliable.

Is my data uploaded?

No. Parsing and serialization happen entirely in your browser using the js-yaml library.