HTML Formatter
Auto-indent and organize HTML markup for better readability.
Compress JSON by removing unnecessary whitespace and line breaks.
Removes every space and newline while validating: malformed JSON errors instead of producing broken output.
It parses and re-serialises (JSON.parse then stringify with no indent), so whitespace, newlines and comments all disappear while key order is preserved as written.
Invalid JSON reports an error with a position instead of emitting text that is merely "compressed but still invalid".
No number coercion beyond parsing: long integers and floats keep their parsed form, and integers beyond the safe range can lose precision — a JavaScript limit, not a tool choice.
Paste the JSON
Indented or loosely hand-written JSON both work; the parser validates first.
Watch the size change
Byte counts before and after plus the saved percentage, usually thirty to fifty percent.
Copy the result
A single line with no spaces, ready for a request body or a config file.
Parsing goes through JavaScript Number, so integers above 2^53-1 lose precision. Convert those fields to strings before minifying when the exact value matters.
Yes — nothing is sorted here, only whitespace is removed. Use the JSON sorter when you want recursive key ordering.
Auto-indent and organize HTML markup for better readability.
Minify HTML by removing extra spaces and non-essential characters.
Minify or prettify CSS code for production and maintenance workflows.
Beautify JavaScript code with consistent indentation and spacing.
Minify JavaScript to reduce file size for faster page delivery.
Format, validate, and beautify JSON for easier reading and debugging.