HTML Minifier
HTML Minifier is a useful client-side online tool to outdent/ compress/ minify your HTML code.
Using minified code in the website helps to reduce page load time and bandwidth usage.
Using this tool, you can minify your HTML code by removing extra indentation spaces, line breaks, comments, unwanted tags, attributes and values, etc. from the code.
This tool can not only minify your HTML code but also the internal CSS and JavaScript codes inside <style> and <script> tags.
Enter Your HTML Code
Name
Minifier Settings
Editor Settings
Font Size
Wrap Code In Editor
Hide Line Numbers
Show Invisible Characters
Load File Content in Editor
Minifier Settings
Case Sensitive
Remove Comments
Collapse Whitespace
Collapse Inline Tag Whitespace
Conservative Collapse
Preserve Line Breaks
Keep Closing Slash
Remove Attribute Quotes
Quote Character
Remove Empty Attributes
Remove Redundant Attribute
Collapse Boolean Attributes
Remove Empty Elements
Remove Optional Tags
Minify CSS
Minify JavaScript
Input Size: 0KB
Output Size: 0KB
Compression: 0%
Minified HTML Code
If you have any suggestions, queries, complaints or feedback regarding this tool, feel free to send it to me.