HTML, CSS & JS Minifier
Strip whitespace and comments to shrink HTML, CSS and JavaScript for production.
To minify code, paste it and choose the language. Comments and unnecessary whitespace are removed and the size saving is reported. This is a safe textual minifier — it never renames variables, so the output stays debuggable.
Runs in your browser- Approach
- Whitespace and comments only — no variable renaming
- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
Is this as good as a build-tool minifier?
How to use the html, css & js minifier
- 1Enter or paste your code.
- 2Choose the language.
- 3Turn "Also shorten values" on or off as needed.
- 4The result appears immediately — copy or download it.
Embed this tool
Put the working html, css & js minifier on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
CSS, SCSS & Less FormatterFormat stylesheets with consistent indentation, spacing and property ordering.SVG OptimizerStrip editor cruft and optimise path data to cut SVG file size, usually by half or more.HTML FormatterFormat and indent HTML properly, preserving inline elements and whitespace sensitivity.Image CompressorDrop an image, see its current size and dimensions auto-detected, then set your targets and compress.Data URI GeneratorTurn text, SVG or CSS into a data: URI you can inline directly in HTML or stylesheets.CSS Border Radius GeneratorDrag eight handles to shape every corner: elliptical radii, inverted corners and squircles.
Last updated
More data & format tools