Free SEO Tool
HTML Minifier
HTML Minifier is a free tool provided by Site Score Checker to compress HTML code blocks of your website and minify them so that your website loads much faster.
Input HTML
Minified HTML
- Treat attributes in case sensitive manner (useful for custom HTML tags)
- Omit attribute values from boolean attributes
-
Don't leave any spaces between
display:inline;elements when collapsing. Must be used in conjunction withcollapseWhitespace=true - Collapse white space that contributes to text nodes in a document tree
-
Always collapse to 1 space (never remove it entirely).
Must be used in conjunction with
collapseWhitespace=true - Use direct Unicode characters whenever possible
- Parse input according to HTML5 specifications
- Insert tags generated by HTML parser
- Keep the trailing slash on singleton elements
- Specify a maximum line length. Compressed output will be split by newlines at valid HTML split-points
-
Minify CSS in style elements and style attributes (uses
clean-css) -
Minify JavaScript in script elements and event attributes (uses
UglifyJS) -
Minify URLs in various attributes (uses
relateurl) -
Always collapse to 1 line break (never remove it entirely) when whitespace between tags include a line break.
Must be used in conjunction with
collapseWhitespace=true - Prevents the escaping of the values of attributes
- Process contents of conditional comments through minifier
-
Comma-delimited string corresponding to types of script elements to process through minifier (e.g.
text/ng-template, text/x-handlebars-template) -
Type of quote to use for attribute values (
'or") - Remove quotes around attributes when possible
- Strip HTML comments
- Remove all attributes with whitespace-only values
- Remove all elements with empty contents
- Remove attributes when value matches default.
-
Remove
type="text/javascript"fromscripttags. Othertypeattribute values are left intact -
Remove
type="text/css"fromstyleandlinktags. Othertypeattribute values are left intact - Remove space between attributes whenever possible. Note that this will result in invalid HTML!
- Sort attributes by frequency
- Sort style classes by frequency
-
Trim white space around
ignoreCustomFragments. -
Replaces the
doctypewith the short (HTML5)doctype
About HTML Minifier
HTML Minifier is a free tool provided by Site Score Checker to compress the HTML code blocks of your website and minify them so that your website loads much faster. The site speed can be affected by the use of HTML code blocks that are not minified. As the design of websites is becoming complex, there are many html blocks used on the website to improve the design and stand out from the crowd. This minified tool is very helpful to get a minimum version of the HTML file so that you can upload it to your website to make your site load fast.
What is the functionality given by the HTML Minifier Tool?
HTML Minifier provides two way to load file
- You can copy the HTML content from your file yourself
- You can select the file from your local disk using the Load From File button.
Once you load the file, the output of the minifier is shown to the right of your input instantly. You do not have to press any button to minify. The stats are shown in the output section with the original HTML file size, the compressed file size and savings done in both bytes and percentage.
Once the minifier has completed the processing, you can either copy to clipboard or download the file for later use.
Popular SEO Tools
Recently Analyzed Sites
|
Uraaka-joshi.com 4 minutes ago |
|
Rbye.vercel.app 25 minutes ago |
|
Soleiltokyo.com 31 minutes ago |
|
Zoovilleforum.net 32 minutes ago |
|
Cwdbola.com 33 minutes ago |