HTML Minifier

Remove comments and collapse safe HTML whitespace, keeping preformatted content intact.

HTML Minifier
0 characters
Ready when you are

Add your input, adjust the options and run the tool.

—
Options
Runs in your browser
No input saved

How to use this tool

01

Add your input

Paste text or choose a file. Try the example to get started.

02

Choose your options

Remove comments and collapse safe HTML whitespace, keeping preformatted content intact.

03

Inspect and export

Review the processing notes, then copy or download the result. Continue with another tool if needed.