JSON / XML Formatter
Format, minify and validate JSON and XML, with the exact error line and column. Everything runs in your browser.
About this tool
The JSON / XML Formatter beautifies, minifies and validates JSON and XML, pointing to the exact line and column of any syntax error. It runs fully in your browser, so you can paste sensitive data without it leaving your machine.
- Pretty-print or minify with one click.
- Validate and locate the exact error by line and column.
- Work with private data without uploading it to any server.
Frequently asked questions
Is it safe to paste sensitive data here?
Yes. All processing happens in your browser with JavaScript; the data is never sent to or logged on any server.
Why does my JSON throw a syntax error?
The most common causes are trailing commas, single quotes instead of double, or unquoted keys. The tool marks the line and column of the failure so you find it instantly.