Skip to the tool

Convert YAML to JSON.

YAML flattened to portable JSON — right on your device.

No uploads — 100% local No ads Free & open source

Drop YAML files here

or browse your files

Files never leave your device. Everything runs in your browser, nothing touches a server — tools you've used even work offline.

Convert YAML to JSON entirely in your browser — anchors and aliases resolved, pretty or minified output, strict validation with real error messages. Configs become portable JSON any tool can read. Nothing is uploaded.

How it works

  1. Drop files anywhere on the page, click to browse, or paste with ⌘V.
  2. Pick a quality or preset — or set an exact target size and let the tool find it.
  3. Compress, compare before/after, and download — individually or as a ZIP.

What conversion resolves

YAML’s conveniences are expanded into plain data: anchors and aliases become the values they reference, block scalars become normal strings, and the result is exactly what a YAML parser would hand your program — now portable to anything that speaks JSON. Comments have no JSON form and are dropped; that is inherent to the format, not a bug.

Strict where it matters

Duplicate keys and syntax errors fail loudly with the parser’s message instead of guessing, and multi-document files are refused with a clear note rather than silently truncated. Dates written like 2024-01-15 stay strings — YAML 1.2 semantics, and what you want in JSON. The reverse trip is JSON to YAML.

Frequently asked questions

What happens to anchors and aliases?

They are resolved — each alias becomes a full copy of the anchored value, which is exactly how any YAML-consuming program sees the data.

Pretty or minified?

Your pick — 2-space pretty printing for reading and diffs, or minified single-line output for payloads. The toggle sits right on the page.

Why was my file refused?

Usually a syntax error, a duplicate key, or a multi-document stream (---separated). The error message quotes the parser so you can fix the exact line.

Is my data uploaded?

No. The conversion is plain parsing that runs entirely in your browser — the server only delivers this page. Kubernetes secrets and CI configs never leave your device. Want proof? Run one file through, switch your connection off, and run another — it still works.