data utility
YAML ↔ JSON Converter
Convert YAML to JSON or JSON to YAML locally with safe parsing and explicit errors.
Convert YAML and JSON
Convert YAML to JSON or JSON to YAML locally with safe parsing and explicit errors.
Converted output
- Input
- —
- Output
- —
How it works
Convert a YAML document to JSON or a JSON document to YAML in the browser. YAML is parsed with the JSON-safe schema so custom tags are not executed; errors include the parser message. Large JSON integers may lose precision when represented as YAML numbers and are flagged.
Limits
- Uses a safe JSON-compatible YAML schema; YAML-specific types and custom tags are not preserved.
- Large JSON integers may lose precision when serialised as YAML numbers.
- Anchors and aliases are resolved by the YAML parser; alias-expansion limits are not a substitute for reviewing untrusted input.
Questions
Are YAML tags executed?
No. The converter uses a JSON-compatible safe schema and does not execute custom YAML tags.
Why might a large number change?
JSON/YAML numbers are represented as JavaScript numbers when converted, so integers beyond the safe range can lose precision. The page warns when it detects large integer lexemes.
Privacy
Usage measurement is off for this tool. This page makes no analytics request. Your input is not sent to a server.