Canonical utility file

HTML Minifier

Drag, drop, or paste HTML to minify it for production or beautify it for readability. Zero-dependency. All processing client-side.

How this page works. One file. One job. Minification strips comments and collapses whitespace. Beautification adds proper indentation and line breaks. Nothing leaves the page.

Input HTML

input
Drag and drop an .html file here or click to choose a file
Characters 0
Lines 0
   

Output HTML

output
Characters 0
Lines 0
Reduction 0%
Done.