YAML tool

Paste a config, a Kubernetes snippet, or a nested map. Get JSON with the indent you want. Conversion stays on your device.

Like the tool? Find a bug?Share with us

Converter

Advanced

Paste YAML. Convert in this tab with js-yaml. Files stay on this device. Multi-document files, YAML 1.1 booleans, and merge keys are optional.

Supported files: .yaml, .yml
0 / 50,000
JSON will appear here.

Guide

How this YAML to JSON converter works

01

YAML becomes JSON

Maps become objects, lists become arrays, and scalars keep their JSON types. js-yaml parses YAML 1.2 in your tab — there is no server round-trip.

02

Runs in your tab

Sample, Nested, List, Docs, and Defaults are starting points. Pretty, compact, or JSON lines, 2-space or 4-space indent, and optional key sorting.

03

Multi-document files

Files split with --- load as a JSON array. Turn on All docs to force that, even for a single document. Lines writes one JSON value per document.

Use it

What converts well

Nested maps, lists of objects, booleans, numbers, null, and quoted strings. YAML 1.1 treats yes / on as booleans. Merge expands << keys. Drop nulls removes those object keys. Invalid YAML shows a parse error. The 50,000 character cap still applies.

FAQ

Questions

Does this upload my YAML?

No. js-yaml runs in the browser. There is no account and no API call.

What about multiple YAML documents?

A source with --- separators becomes a JSON array of documents. Use All docs if you want a one-item array for a single document. Lines emits NDJSON instead of one array.

Why did yes stay a string?

Default parsing follows YAML 1.2 JSON types, so yes stays a string. Turn on YAML 1.1 if you want Ansible-style booleans. Turn on Merge for << keys.

Is there a size limit?

Paste is capped at 50,000 characters so a huge dump cannot freeze the tab.