JSON Formatter, Validator & Converter
Beautify, minify, validate, sort, escape, and convert JSON to YAML, XML, CSV or TypeScript. Everything runs locally in your browser β no data leaves your device.
All the ways you can use this tool
Pretty-print with 2 / 4 spaces or tabs.
Strip all whitespace for smallest payload.
Syntax check with exact line & column of the error.
Recursively sort object keys alphabetically.
Turn JSON into a safe string literal or decode one back.
Convert JSON to YAML format.
Convert JSON to indented XML.
Flatten an array of objects into CSV.
Infer a TypeScript interface from your JSON.
Collapsible tree for exploring nested data.
Load from a file or any CORS-enabled endpoint.
One-click clipboard or save as a file.