/tools/json-to-yaml
JSON to YAML Converter
Convert strict JSON to readable YAML, or turn YAML 1.2—including bounded anchors and multiple documents—into explicit JSON.
JSON input
YAML output
/json-to-yaml
Format JSON as portable YAML
Objects, arrays, Unicode strings, empty collections and root primitive values are emitted using YAML 1.2 rules. Strings such as 00123, true and null remain strings after a round trip instead of silently changing type.
- Choose JSON → YAML.
- Paste or load strict JSON up to 10 MiB.
- Select indentation and an optional document marker.
- Convert, copy or download the YAML.
/yaml-to-json
Parse YAML 1.2 into deterministic JSON
The YAML mode accepts a document stream, resolves standard anchors and aliases within a 100-alias safety bound, and wraps multiple YAML documents in a JSON array. Duplicate mapping keys, custom tags, cyclic aliases and non-string mapping keys are rejected because they cannot be converted to JSON without ambiguity or loss.
Line and column errors
Malformed YAML reports the parser location so indentation, flow collections and scalar errors can be fixed quickly.
Explicit loss boundary
Comments, source formatting and anchor names do not exist in JSON and are not preserved. The converted values remain local.
/faq
JSON and YAML conversion questions
Does YAML yes become true?
No. This tool uses YAML 1.2 Core, where true and false are booleans but legacy YAML 1.1 words such as yes remain strings.
Are custom tags executed?
No. Custom tags are rejected and no constructors, network lookups or external schemas run.
Is the input uploaded?
No. The parser is a pinned local asset loaded inside a browser worker only when conversion starts.