HTML Formatter
Auto-indent and organize HTML markup for better readability.
Format, validate, and beautify JSON for easier reading and debugging.
Uses the browser's native JSON API to format and minify, with optional key sorting and custom indentation. Everything runs locally.
Format, minify and key sorting share one input: changing the indent or the sort toggle re-runs instantly, with no re-pasting.
Validation uses the browser native JSON parser, so an error comes with the position that broke.
Key sorting walks nested objects, which makes two structurally similar payloads easy to compare.
Paste your JSON
Drop it into the left pane; invalid JSON reports the failing position in the output pane.
Format or minify
Switch between Format and Minify at the top; indentation offers 2 spaces, 4 spaces or tabs.
Copy the result
The copy button sits above the output, and the footer shows how many bytes minifying saved.
No. Parsing uses the browser native JSON API and runs entirely on your machine.
As large as your tab can hold — tens of megabytes usually work, but the browser runs out of memory before the parser does.
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.
Compress JSON by removing unnecessary whitespace and line breaks.
Sort JSON object keys alphabetically to keep structure consistent.
Format SQL queries to improve readability and team consistency.