JSON tool

Paste an API payload, tsconfig, or a config object. Get YAML with 2-space or 4-space indent. Conversion stays on your device.

Like the tool? Find a bug?Share with us

Converter

Advanced

Paste JSON. Convert in this tab with js-yaml. Files stay on this device. Comments, trailing commas, and JSON lines are accepted.

Supported files: .json
0 / 50,000
YAML will appear here.

Guide

How this JSON to YAML converter works

01

JSON becomes YAML

Objects become maps, arrays become lists, and scalars keep their YAML types. js-yaml dumps YAML 1.2 in your tab — there is no server round-trip.

02

Runs in your tab

Sample, Nested, List, Docs, and Comments are starting points. Switch indent, sort keys, or quote every string when a consumer is picky.

03

JSON with comments

Trailing commas, // comments, and JSON lines are accepted in this tab. Invalid JSON still shows a parse error.

Use it

What converts well

Nested objects, arrays of objects, booleans, numbers, null, and strings. Split docs writes a JSON array as YAML documents. Flow and flush lists match Kubernetes-style dumps. Drop nulls removes those object keys. The 50,000 character cap still applies.

FAQ

Questions

Does this upload my JSON?

No. Parsing and dumping happen in the browser. There is no account and no API call.

Why quote strings?

Quotes forces double-quoted scalars so values like on or no cannot be misread as booleans by older YAML 1.1 parsers.

Can I paste tsconfig or JSON lines?

Yes. Comments and trailing commas are stripped in this tab. Two or more JSON values on their own lines load as an array. Split docs then writes them as YAML documents.

Is there a size limit?

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