JSON Minifier
Strip every unnecessary space and newline from JSON, and see how many bytes that saves.
Input
Output
Parsed in the page, not on a server
The document is parsed with the browser’s own JSON engine and never transmitted, which makes it safe to paste a response that contains tokens or personal data.
Frequently asked questions
Is there a size limit?
Only your device memory. Documents of a few megabytes are handled comfortably; much larger ones may make the page pause while parsing.
Related tools
JSON FormatterPretty-print JSON with your choice of indentation, optionally sorting keys so two payloads can be compared.JSON ValidatorCheck whether JSON is valid and get the exact line and column of the first error, not just "unexpected token".JSON Viewer & Path ExplorerFlatten JSON into dotted paths so you can find the value you need and copy the exact path to it.XML FormatterReindent XML so nesting is readable, or minify it back down to a single line.XML ValidatorCheck that XML tags are balanced and correctly nested, and get the line where the structure breaks.JSON ↔ CSV ConverterTurn an array of JSON objects into a spreadsheet-ready CSV and back, handling quoted fields and embedded commas properly.