Minifiers
Minify HTML, CSS, JS and JSON.
Code input
40 B
Before
36 B
After
10%
Saved
Minified output
<div><p>Hello <b>world</b></p></div>
Minify HTML, CSS, JavaScript, and JSON online
Minifiers strips whitespace and comments from your code to reduce file size before shipping to production — with instant before/after size comparison.
Why use this tool
Four languages in one tool
HTML, CSS, JavaScript, and JSON minification without switching between separate tools.
Instant size savings
See exactly how many bytes — and what percentage — minifying saves.
Safe transformations
Only whitespace and comments are removed; your code's behavior stays identical.
Private by design
Minification happens entirely in your browser.
How it works
- 1Pick a language: HTML, CSS, JavaScript, or JSON.
- 2Paste your code into the input box.
- 3Copy the minified result or download it as a file.
Frequently asked questions
Good to know
- Minifying removes whitespace and comments — it doesn't change what your code does.
- For maximum JS/CSS compression (variable renaming, dead-code removal), use a build tool like esbuild or Terser.
- Runs fully in your browser — nothing is uploaded.