Developer
HTML Minifier
Shrinks HTML by removing comments and spare whitespace.
Loading the tool…
Runs in this browser. Nothing is uploaded.
How to use HTML Minifier
- Paste or type into the box.
- Change the settings beside your file if you need to.
- The result updates as you type. Copy it when you are done.
Questions
- Can it change how the page looks?
- It keeps one space wherever a space shows, such as between words, links, buttons and inputs. Spaces between block tags like div, p and li are removed, so if your CSS lines those up side by side, check the gaps.
- What happens to scripts, pre and textarea?
- Script code is only trimmed, never rewritten. Text in pre and textarea is kept exactly as it is.
- Is HTML Minifier free?
- Yes. There is no account, no trial and no limit on how often you use it.
- Is what I type sent anywhere?
- No. Everything is worked out in your browser; nothing you enter leaves this page.
- Does it work offline?
- Once the page has loaded, most tools keep working without a connection.
More developer tools
Regex TesterTest regex on your textDiff CheckerCompare two texts for changesUUID GeneratorMake random UUIDs in bulkBase64 EncoderEncode text or files as Base64Timestamp ConverterTurn Unix time into datesColor PickerPick a color, get every formatBase64 DecoderTurn Base64 back into textHash GeneratorGet MD5 and SHA hashes