FORMATFYCOM formátovač · validátor · minifikátor About

What's new

YAML to JSON Converter & Validator

Convert YAML to JSON and get errors explained: indentation, tabs, duplicate keys, missing colons. Docker Compose and Kubernetes ready. Free.

Input

Output


      

How to convert YAML to JSON

Converts YAML to JSON and validates it — explains indentation errors, tabs, duplicate keys and unclosed quotes. Handy for docker-compose, Kubernetes, GitHub Actions and app configs. Several documents (---) become an array.

  1. Paste YAML

    Copy the data or drop a file. YAML errors are explained and fixed just like in the formatter.

  2. Set up the conversion

    Options in the toolbar: indentation, delimiter, value types.

  3. Copy or download

    The JSON updates as you type; copy it or download it as a file.

YAML errors it detects

Tab in indentation

YAML indents with spaces only.

a: →b: 1→a: b: 1
Typical messages: tab characters must not be used in indentation (js-yaml)
✓ fixed automatically

Bad indentation

An entry is indented differently from its siblings.

a: b: 1 c: 2→a: b: 1 c: 2
Typical messages: bad indentation of a mapping entry (js-yaml)

Duplicate key

The same key twice in one mapping — the second silently overwrites the first.

a: 1 a: 2→a: 1 b: 2
Typical messages: duplicated mapping key (js-yaml)

Unclosed quotes

A string starts with a quote and never ends.

a: "abc→a: "abc"
Typical messages: unexpected end of the stream within a double quoted scalar (js-yaml)

FAQ

Does “no” become false?

No. The tool uses YAML 1.2, where no, yes, on and off stay strings (no “Norway problem”).

Is it free, without sign-up?

Yes. No sign-up, no ads and no size limit — the only limit is your computer.

Is my data sent to a server?

No. Everything runs in your browser and the data you paste never leaves it — fine even for data with tokens or personal information.

Related tools