Minifier · HTML

Minify HTML

Paste your HTML below and hit Minify to compress it in one click. It collapses whitespace, drops comments and minifies inline CSS/JS with html-minifier-terser. See exactly how many bytes (and gzipped bytes) you save.

Input

0 lines0 B

Output

Your result appears here

Paste code, pick a mode, then hit the button.

Tip: press Enter (or CtrlEnter) to run.

Frequently asked questions

Is the HTML minifier free?

Yes. Neatly's HTML minifier is completely free, needs no sign-up, and has no usage limits.

Is my HTML kept private?

Your HTML is processed on the fly and never stored or shared — nothing is saved on our servers.

Will minifying change how my HTML works?

No. Minification only removes what a machine ignores; the meaning and structure of your HTML stay exactly the same.