JSON Formatter
Format, minify, and validate JSON with optional key sorting.
- On your device
- No signup
Private on your device
Your information stays on your device and is not uploaded.
Format, minify, and validate JSON with optional key sorting.
Validate JSON syntax and show parse errors.
Compare two JSON documents and list structural differences.
Format, minify, and validate XML with readable indentation.
Compare two XML documents and list structural differences.
Encode and decode text with Base64.
Decode JWT tokens to inspect header and payload claims.
Generate UUIDs for apps, tests, and databases.
A JSON formatter pretty-prints minified JSON, validates syntax, and can minify output again. Handy for API responses, config files, and debugging.
This JSON minify online tool strips unnecessary spaces, tabs, and line breaks from formatted JSON. Shrink config snippets, API samples, and test fixtures for production payloads or embedded scripts—all processed on your device.
Minified JSON is ideal for production APIs and embedded scripts where bytes matter. Keep pretty-printed copies for human review.
Minify only works on valid JSON—trailing commas and single quotes will cause parse errors.
Paste formatted JSON, click minify, and copy the compact output. Fix any syntax errors reported before minifying.
Example: minify a 12 KB indented config file to a single line for embedding in a CI environment variable without changing any values.
Paste JSON to format it with readable indentation or minify it into a single line. Invalid JSON shows a parse error with line and column when available. Optional key sorting orders object keys alphabetically. Formatting works on your device.
Invalid JSON will not format until syntax errors are fixed. Very large documents may slow the browser tab.
Your data stays on your device and is not uploaded.
These pages use the same json formatter with guides tailored to specific search intents.
FAQ
Minify removes whitespace for smaller size; format adds indentation for readability.
No. Minification only removes whitespace—the data structure and values stay the same.
Very large files may slow the browser—split huge logs before minifying.
Page last reviewed: