YAML to JSON Converter

A YAML config turned into strict JSON that any program can read.

Reverse: JSON to YAML

Files never leave your device — everything runs in your browser

A config is written in YAML, but an API, a script or a database wants JSON. The converter reads YAML of any complexity — nested maps, lists, multi-line strings, anchors and aliases — and produces strict JSON. Comments are dropped, since JSON has no place for them.

If the file holds several documents separated by ---, as Kubernetes manifests often do, you get an array with one element per document. Integers keep every digit and dates stay strings, exactly as written.

Indentation mistakes are the most common YAML problem. When a line is out of place, the converter shows the line and column, highlights the spot and explains what went wrong — usually a tab instead of spaces or a missing space after a colon.

Nothing is uploaded: parsing and conversion run inside your browser, so API responses, CRM exports and files with personal data stay on your device.

What the converter understands

How to convert YAML to JSON in 3 steps

  1. 1

    Load the YAML

    A .yaml or .yml file, or text pasted into the box.

  2. 2

    Check the result

    The JSON opens as a tree; errors are shown with line and column.

  3. 3

    Download the JSON

    Or carry on to Excel, CSV or another format.

Frequently asked questions

Load the file or paste the text and the JSON appears straight away.
JSON has no comments, so they are skipped. The data itself is unchanged.
They are combined into an array: element 0 is the first document, element 1 the second, and so on.
Most often it is indentation: a tab instead of spaces, or a line shifted by one space. The message shows the exact line.

Related tools