Skip to main content
MakeMyDev
All tools

YAML ↔ JSON Converter

Convert between YAML and JSON formats. Supports multi-document YAML.

Direction:
Output will appear here
How to convert between YAML and JSON

Round-trip between YAML and JSON with syntax-highlighted output.

  1. Pick the direction

    YAML → JSON or JSON → YAML. The converter auto-detects common mistakes in either direction.

  2. Paste the source

    Drop your YAML or JSON into the input panel.

  3. Read the result

    The converted output appears syntax-highlighted on the right.

  4. Copy or download

    Copy the result or save it as .yaml or .json for use in your project.

Frequently asked questions
Do I keep comments during conversion?
No. JSON has no comment syntax. Round-tripping YAML → JSON → YAML strips comments irreversibly.
What about the Norway problem?
YAML 1.1 parses "no" as false. Quote ambiguous scalars ("no", "yes", "on") or use YAML 1.2 to avoid surprises.
Which YAML version does this use?
The underlying library follows YAML 1.2, which avoids most of the implicit-type pitfalls in YAML 1.1.