Minify & beautify (HTML/CSS/JS)
Free · no sign-upBeautify or minify HTML, CSS and JavaScript locally — see size before and after.
Runs entirely in your browser — your data never leaves your device and nothing is stored. No sign-up.
Beautify or minify HTML, CSS and JavaScript in one place. Formatting uses js-beautify; CSS/HTML minify is a conservative strip of comments and extra whitespace; JS minify uses Terser. Heavy parsers load only when you run the tool, so the page stays light. See byte size before and after. Everything stays in your browser. Free, no sign-up.
- ✓HTML, CSS and JS in one tool
- ✓Beautify via js-beautify
- ✓Conservative CSS/HTML minify
- ✓JS minify with Terser
- ✓Dynamic import — libraries load on demand
- ✓Size before / after with percent change
Who it's for
- Cleaning pasted frontend snippets
- Preparing demos and gists
- Shrinking inline CSS/JS
- Quick format before code review
How it works
- 1Pick the language and beautify or minify.
- 2Paste your code.
- 3Click Run and wait for the result.
- 4Copy the output and check the size stats.
Frequently asked questions
Will minify break my HTML?+
The HTML/CSS minify is conservative (comments and excess whitespace). It does not rewrite markup structure; always spot-check critical templates.
Does JS minify understand modern syntax?+
Terser handles contemporary ECMAScript. Unusual or incomplete snippets may fail — the error message will say so.
Why is the first run slower?+
js-beautify and Terser are loaded dynamically on first use so they do not bloat the initial page bundle.
Is my code uploaded?+
No. Processing happens entirely in your browser.
Can I choose indent size?+
Beautify uses a 2-space indent by default — enough for readable output without extra controls.
You may like
Some links may be partner links — how this works
Related tools
Format, validate and minify JSON in your browser.
Encode or decode Base64 text, UTF-8 safe.
Decode a JWT's header and payload in your browser.
Test regular expressions with live match highlighting.
Percent-encode or decode URLs and query strings.
Generate random UUID v4 identifiers in bulk.