ToolBoxAlllocal toolkit
All tools

Developer Tools

JSON ↔ YAML

Convert JSON to YAML or YAML to JSON with automatic direction detection, configurable indent, and precise error positions when the document is malformed.

Developer ToolsFreeLocal
Input
fmtText
Output
TEXT
Runs
Your browser

shortAnswer

ToolBoxAll's JSON ↔ YAML converter detects the direction from the first non-space character, converts with js-yaml's safe schema, and lets you set the indent from 2 to 8 spaces. Anchors and merge keys are expanded into plain values; comments are dropped.

keyFact
Automatic direction detection
keyFact
Safe schema — no custom tags executed
keyFact
UTF-8 output, no escaping of Chinese

reviewedOn 2026-11-20

Runs in your browser · nothing is sent
0 characters

Output

Output appears here as you run the tool.

Tip: this tool runs entirely in your browser — your input never leaves the device.

How it works

three steps
  1. 01

    Paste JSON or YAML; the direction is detected for you.

  2. 02

    Pin the direction if the document starts ambiguously.

  3. 03

    Copy the result straight into your config file.

About this tool

Parsing uses js-yaml's safe schema, so no custom tags are executed. Direction is guessed from the first non-space character ({ or [ means JSON), and can be pinned manually. YAML anchors and merge keys are resolved to plain values on the way out, which is what most config reviews need.

JSON ↔ YAML · Technical specifications
InputfmtText
OutputTEXT
BatchOne at a time
Per-file limit—
ProcessingYour browser
AccountNot required