The YAML and JSON converter helps organize configuration files and API examples without sending data away from the browser.
Examples and limits
Supports JSON-compatible YAML 1.2 values: string-keyed mappings, arrays, strings, finite numbers, booleans, and null, including nested structures and empty collections. Conversion preserves values, but not comments or the original layout.
Duplicate keys, anchors, aliases, explicit tags, multiple documents, non-string keys, and non-finite numbers are rejected. Numbers outside JavaScript’s safe integer range are also rejected; quote large integers as strings when exact preservation is required.
Usage
- YAML to JSON produces indented JSON.
- JSON to YAML preserves objects, arrays, null, and empty collections.
- Parsing is performed locally in the browser.