Skip to main content

HTML, CSS, JS & SVG minifier online

HTML · CSS · JS · SVG · run locally, without uploading code to a server

Free No account required
0 chars
0 chars

This is a fast, local heuristic minifier. It does not replace a production parser or bundler; quoted strings are preserved and their contents are not rewritten.

This tool patches one problem at a time

The Performance module in Insight does the same in every audit: Core Web Vitals in every audit — with priorities, history and before/after comparison.

/ About the tool

Why minification actually helps

An HTML, CSS, JavaScript and SVG minifier removes unnecessary whitespace and comments — the code still works, usually at a smaller size.

Bundlers (Vite, Webpack, Rollup) do this automatically. This tool is for one-off jobs — a snippet, a static CDN file, or a quick before/after check.

Everything runs in the browser. Your code never leaves the device.

/ Glossary

What we strip

WS

Whitespace

Spaces, tabs, newlines outside strings.

//

Comments

Single-line // and multi-line /* */ — for developers, not end users.

AAA→a

Mangling (JS only)

Shorter variable names. Full pipelines do this in the bundler.

Brotli

Server compression

After minify, the server should still apply Brotli or gzip.

/ FAQ

Frequently asked questions

A code minifier removes unnecessary whitespace and comments from HTML, CSS, JavaScript or SVG to reduce file size. It does not replace a bundler or Brotli/gzip compression.