HTML Minifier
Minify HTML code online — remove comments and extra whitespace to shrink page size, processed entirely in your browser.
Local processing
No login required
Upload & download support
LanguageFor pages and template markup
HTMLinput.html
Minify options
⌘⏎Quick minify
InputEditable
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Minified outputHTML valid1 lines · 0 B
1
Original size: 272 BMinified: 0 BSaved: 272 B (100.0%)Local processing in your browser · nothing uploaded
How It WorksHTML
Overview
Strips comments, extra whitespace, and line breaks from HTML code without changing page structure or how it renders, shrinking file size as much as possible — ideal for final production builds or reducing page load size. All processing happens locally in your browser, so nothing ever leaves your device.
Use Cases
Minify page templates before shipping to productionReduce the size of static pagesMinify HTML email templatesShrink HTML fragments embedded in an API response
Steps
123
Paste or uploadSet optionsGet the result