Reduces the HTML file size by removing unnecessary white space from the HTML document created by the WordPress blog.
As of April 2026, WP-Compress-HTML is a WordPress html plugin with 30 active installations and a 5/5 rating from 1 reviews. It has been downloaded 13K+ times in total. Requires WordPress 2.5+ and PHP false+. Available on WordPress.org since 2008. Last updated 14 years ago — may have compatibility concerns. Top alternative: Shortcoder — Create Shortcodes for….
Coders like to use spaces, carriage returns, new lines, tabs and indentation to make their HTML documents human-readable. This helps collaboration and debugging of the HTML document. However, all these features add to the filesize of the resultant HTML document. This structural information is totally ignored by browsers.
This plugin removes spaces, carriage returns, new lines and tabs from your HTML document. You can therefore freely use these features while writing HTML, safe in the knowledge that it will not bloat the final HTML document.
With this plugin you can also mark areas of your HTML template where you want to preserve white space – for example – in areas containing Javascript which needs carriage returns and new lines to function correctly.
HTML comments are not aff…
| WordPress | 2.5+ requiredTested up to 3.3.2 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.