Skip to content
Input
YAML
Limit
1 MiB
Runtime
Browser

Convert YAML into interoperable JSON

Translate YAML mappings, sequences, and JSON-compatible scalars into strict JSON without uploading the source document.

Local processingNo sign-upNo content logging

Convert YAML to JSON

Inputs are limited to 1 MiB and stay in this browser tab.

Paste or edit the source. Tool Swim does not upload or save it.

JSON document

Nothing is placed in a URL, account, preset, or remote log.

What this tool does

Strict, bounded, local processing

JSON has a narrower data model than YAML. Conversion must reject or report unsupported keys, tags, non-finite numbers, aliases, and other values rather than silently inventing a mapping.

Conversion is a data-model boundary

JSON objects require string member names and JSON values are limited to objects, arrays, strings, finite numbers, booleans, and null. A converter should expose any YAML construct that cannot cross that boundary predictably.

The output is strict, indented JSON suitable for review. Mapping and sequence order remain stable, while comments and YAML presentation details are not part of the JSON result.

Type resolution deserves a fixture

Plain scalars can look like booleans, numbers, dates, or identifiers. Test representative values such as leading-zero codes and timestamp-like strings against the same YAML version and schema used by the consuming system.

Primary references

Questions and answers

Related YAML tools