JSON and YAML converter
Convert between JSON and YAML while retaining large integer values.
Bookmark this page
Keep this page handy for next time.
- On a computer
- Press Ctrl + D, or Command + D on a Mac.
- On a phone or tablet
- Open your browser's menu or Share menu and look for Add Bookmark, Bookmark or Add to favourites.
A bookmark saves the page link. Save any tool results separately.
How to use this tool
- Choose the source format.
- Paste a single document and convert.
- Integer values retain their precision; ambiguous YAML scalars are quoted on output when needed.
Things to know
- YAML comments and tags do not map to JSON. Cycles, custom tags and non-string mapping keys are rejected.
- Each text input accepts up to 5 MiB. Output is limited to 25 MiB and combined text settings to 1 MiB.
- Structured documents accept up to 128 nesting levels and 250,000 values; query and schema modes have additional limits.
You might also need
More in data & csvYAML formatter and validator
Parse and reformat a YAML document with safe alias limits.
JSON formatter and validator
Validate and format JSON without rounding large integers.
CSV sorter
Sort CSV records by a named column while retaining all row values.
CSV and JSON converter
Convert CSV records to JSON and JSON records to quoted CSV.
JSON and JSON Lines converter
Convert a JSON array to JSONL or combine JSON Lines into an array.
JSON flatten and unflatten
Flatten JSON to JSON Pointer values and rebuild it without losing array types.
JSON Patch generator and applier
Generate RFC 6902 patches or safely apply a local patch to JSON.
JSON Schema generator
Infer a draft-07 schema from an example JSON document.
JSON Schema validator
Check JSON data against a local draft-07 JSON Schema.