Title: Minify HTML
Author: Tim Eckel
Published: <strong>Èrèlé  18, 2016</strong>
Last modified: Ẹrẹ́nà 18, 2026

---

Ṣàwárí àwọn plugin

![](https://ps.w.org/minify-html-markup/assets/banner-772x250.png?rev=1354339)

![](https://ps.w.org/minify-html-markup/assets/icon-128x128.png?rev=1354357)

# Minify HTML

 Láti ọwọ́ [Tim Eckel](https://profiles.wordpress.org/teckel/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/minify-html-markup.2.1.13.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/minify-html-markup/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/minify-html-markup/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/minify-html-markup/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/minify-html-markup/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/minify-html-markup/)

## Àpèjúwe

Try it out on a free dummy site here => [https://demo.tastewp.com/minify-html-markup](https://demo.tastewp.com/minify-html-markup)

Ever look at the HTML markup of your website and notice how sloppy and amateurish
it looks? The Minify HTML plugin cleans up sloppy looking markup and minifies, which
also speeds up download time.

Make your websiteÌtumọ̀ Yorùbá: ’s markup look professional by using Minify HTML.
Easy to use, simply install and activate (with additional options for advanced settings).

Minify HTML also has optional specialized minification for JavaScript and internal
CSS. It doesnÌtumọ̀ Yorùbá: ’t mess with your textareas or preformatted text.

Settings options to removes HTML, CSS and JavaScript comments (leaving MSIE conditional
comments), remove unneeded XHTML closing tags from HTML5 void elements and remove
unneeded relative schemes and domains from links.

## Àwọn àwòrán ìbòjú

[⌊Minify HTML settings.⌉⌊Minify HTML settings.⌉[

Minify HTML settings.

[⌊Minify HTML turns this...⌉⌊Minify HTML turns this...⌉[

Minify HTML turns this…

[⌊To this!⌉⌊To this!⌉[

To this!

## Ìgbéwọlẹ̀

#### For an automatic installation through WordPress:

 1. Select **Add New** from the WordPress **Plugins** menu in the admin area.
 2. Search for **Minify HTML**.
 3. Click **Install Now**, then **Activate Plugin**.

#### For manual installation via FTP:

 1. Upload the **minify-html-markup** folder to the **/wp-content/plugins/** directory.
 2. Activate the plugin from the **Plugins** screen in your WordPress admin area.

#### To upload the plugin through WordPress, instead of FTP:

 1. From the **Add New** plugins page in your WordPress admin area, select the **Upload
    Plugin** button.
 2. Select the **minify-html-markup.zip** file, click **Install Now** and **Activate
    Plugin**.

## FAQ

### Are there any settings for Minify HTML?

Yes. Under the **Settings** menu in the admin console thereÌtumọ̀ Yorùbá: ’s a **
Minify HTML** menu item which allows you to modify Minify HTML settings.

### How does it work?

Magic, obviously! Actually, it creates an output buffer and then preforms its ‘magic’
on the output buffer. It kinda is like magic.

### Will it break my stuff?

Normally, you wonÌtumọ̀ Yorùbá: ’t notice any changes to the way the site looks 
in the browser. However, if you rely on white space between HTML tags (which you
shouldnÌtumọ̀ Yorùbá: ’t be doing) you may notice very isolated elements with reduced
horizontal spacing. This is because inline objects will add a few pixels of spacing
if thereÌtumọ̀ Yorùbá: ’s whitespace between the objects. I consider Minify HTML
a good way of finding these style ‘errors’ and correcting them with proper padding
or margin style.

### Is it fast?

Plenty. On my server thatÌtumọ̀ Yorùbá: ’s running dozens of websites, it takes 
0.007 seconds to minify a page. Also, because the HTML file is smaller, it will 
speed up transfer and rendering times. Minify HTML doesnÌtumọ̀ Yorùbá: ’t use bloated
external libraries that add additional overhead and therefore take longer to process.

### How much smaller will my HTML be?

With real-world test sites, the HTML file is around 20-25% smaller. Even when using
deflate/gzip compression the resulting file is around 20% smaller, speeding up download
times.

### IÌtumọ̀ Yorùbá: ’m using deflate/gzip to compress HTML, do I need Minify HTML?

With Minify HTML, the source HTML file will be smaller, therefore, it will compress
faster and be even smaller once compressed. Also, even with deflate/gzip, your HTML
markup will still look sloppy and amateurish. Minify HTML corrects this even for
deflated/gzip transfers (and also saves another 20% in bandwidth).

## Àwọn àgbéyẹ̀wò

![](https://secure.gravatar.com/avatar/2225189e8044df879b3326c1371fcd0b2ce35b545f212ee06d580bab8c273539?
s=60&d=retro&r=g)

### 󠀁[Not WordPress friendly 😁](https://wordpress.org/support/topic/not-wordpress-friendly-%f0%9f%98%81/)󠁿

 [cvladan](https://profiles.wordpress.org/cvladan/) Bélú 29, 2024 1 ìdáhùn

I have used this plugin before and found that it introduces many hidden bugs in 
the code. It often breaks CSS styles, but you only see these problems when comparing
staging and production sites. Other users have the same problems, and itÌtumọ̀ Yorùbá:’
s hard to spot the little styling errors it creates. If youÌtumọ̀ Yorùbá: ’re using
modern WordPress (Gutenberg), itÌtumọ̀ Yorùbá: ’s better to find another minification
plugin. I think it works fine for old-school non-Gutenberg sites.

![](https://secure.gravatar.com/avatar/abd974b6163fe659f2e6d6fe1351b50b594e3cd4654fb52ae53d8f7976e16aca?
s=60&d=retro&r=g)

### 󠀁[Excellent!](https://wordpress.org/support/topic/excellent-13566/)󠁿

 [leodefaveri](https://profiles.wordpress.org/leodefaveri/) Ọwẹ́wẹ̀ 3, 2024

What this plugin does is perfect. HTML minification is impressive and even in an
ecommerce with many plugins, there were no problems on the front. Thanks for the
excellent work. Please donÌtumọ̀ Yorùbá: ’t abandon him!

![](https://secure.gravatar.com/avatar/43394c50efd9128f1f1bb57d4bf2cc8a92885330d1769f69f3b398fca9a00dec?
s=60&d=retro&r=g)

### 󠀁[Great plugin with no extra bloat!](https://wordpress.org/support/topic/great-plugin-with-no-extra-bloat/)󠁿

 [cryptoli](https://profiles.wordpress.org/cryptoli/) Ògún 7, 2024

Thank you for such a great and efficient plugin without any extra bloat!

![](https://secure.gravatar.com/avatar/be3d0ee00583df0d9866974a52329751a1fd062e5c6567abe9d3775b15f7baa3?
s=60&d=retro&r=g)

### 󠀁[Best plugin for compress HTML, CSS and Java Script code](https://wordpress.org/support/topic/best-plugin-for-compress-html-css-and-java-script-code/)󠁿

 [Prathmesh Malviya](https://profiles.wordpress.org/prathmesh786057/) Bélú 16, 2023

Best plugin for compress HTML, CSS and Java Script code in WordPress website.

![](https://secure.gravatar.com/avatar/85a79cdb35fbcea48c8b9581178d5e2c3a871c23ed50e0dd0042fa385699f0c9?
s=60&d=retro&r=g)

### 󠀁[Great plugin, simple but have 1 suggestion](https://wordpress.org/support/topic/great-plugin-simple-but-have-1-suggestion/)󠁿

 [Ricky Poon](https://profiles.wordpress.org/poonasor/) Ọwẹ́wẹ̀ 19, 2023 1 ìdáhùn

Very easy to use, clear improvement in load speed regardingless of what google says.
1 suggestion I do have in when inline JS and double slash comments causes the JS
to break. ex://arrows: true,drag: true,causes this://arrows: true,drag: true,if 
the plugin could remove the // comments before inlining everything that would be
amazing!

![](https://secure.gravatar.com/avatar/ff5d0afb312c6f2993f2da6a52e9c6069d8de739737b2fbcadd64a3ecd20782e?
s=60&d=retro&r=g)

### 󠀁[Great plugin!](https://wordpress.org/support/topic/great-plugin-36855/)󠁿

 [AiratTop](https://profiles.wordpress.org/airathalitov/) Èbìbí 17, 2023

Thank you for your work!

 [ Ka gbogbo àwọn àgbéyẹ̀wò 32 ](https://wordpress.org/support/plugin/minify-html-markup/reviews/)

## Àwọn Olùkópa & Olùgbéejáde

“Minify HTML” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa 
sí plugin yìí.

Àwọn Olùkópa

 *   [ Tim Eckel ](https://profiles.wordpress.org/teckel/)

[Túmọ̀ “Minify HTML” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/minify-html-markup)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/minify-html-markup/), 
ṣàyẹ̀wò [ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/minify-html-markup/),
tàbí ṣe àgbékalẹ̀ sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/minify-html-markup/)
nípasẹ̀ [RSS](https://plugins.trac.wordpress.org/log/minify-html-markup/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

#### v2.1.13 Ìtumọ̀ Yorùbá: – 03/18/2026

 * Resolve issue unique to an over-zealous “bug” bounty with too much time on their
   hands.

#### v2.1.12 Ìtumọ̀ Yorùbá: – 01/15/2025

 * Fixed deprecated warnings with PHP 8.1.0+.

#### v2.1.11 Ìtumọ̀ Yorùbá: – 12/06/2024

 * Resolve issue unique to an over-zealous “bug” bounty with too much time on their
   hands.

#### v2.1.10 Ìtumọ̀ Yorùbá: – 11/27/2024

 * Resolve issue with block editor converting to classic block and possible edge-
   case issues with preg_replace() function.

#### v2.1.9 Ìtumọ̀ Yorùbá: – 9/20/2023

 * Resolve line break issues with inline javascript comments.

#### v2.1.8 Ìtumọ̀ Yorùbá: – 2/25/2023

 * Nonce added to prevent CSRF vulnerability.

#### v2.1.7 Ìtumọ̀ Yorùbá: – 2/25/2023

 * Nonce check removed, doesnÌtumọ̀ Yorùbá: ’t seem to work.

#### v2.1.6 Ìtumọ̀ Yorùbá: – 2/25/2023

 * Last try at nonce, doesnÌtumọ̀ Yorùbá: ’t seem to work sometimes.

#### v2.1.5 Ìtumọ̀ Yorùbá: – 2/25/2023

 * Now using a unique to plugin value for nonce for better security.

#### v2.1.4 Ìtumọ̀ Yorùbá: – 2/25/2023

 * After some back and forth, I believe this implements CSRF protection correctly.

#### v2.1.3 Ìtumọ̀ Yorùbá: – 2/25/2023

 * Resolved form POST issue.

#### v2.1.2 Ìtumọ̀ Yorùbá: – 2/25/2023

 * Nonce verification for CSRF protection.

#### v2.1.1 Ìtumọ̀ Yorùbá: – 2/24/2023

 * Added nonce for CSRF protection, verified working with WordPress v6.2

#### v2.02 Ìtumọ̀ Yorùbá: – 1/3/2022

 * Added link to dummy site for testing, verified working with WordPress v5.8.2

#### v2.00 Ìtumọ̀ Yorùbá: – 2/1/2021

 * Updated contact email address, verified working with WordPress v5.6

#### v1.99 Ìtumọ̀ Yorùbá: – 05/21/2018

 * Compatiblity with WordPress thru 4.9.6
 * Text changes

#### v1.98 Ìtumọ̀ Yorùbá: – 03/15/2017

 * Forces the multi-byte UTF-8 encoding option to default to OFF
 * Added support for WP-CLI (command line interface for WordPress) http://wp-cli.
   org/.

#### v1.97 Ìtumọ̀ Yorùbá: – 03/06/2017

 * Added option to support multi-byte UTF-8 encoding if your foreign language website
   introduces odd characters.

#### v1.96 Ìtumọ̀ Yorùbá: – 03/02/2017

 * Removed multi-byte non-English encoded content support because it caused problems
   with many English sites. Will make this an option instead in a future release.

#### v1.95 Ìtumọ̀ Yorùbá: – 03/02/2017

 * Correctly deals with multi-byte UTF-8 encoded content (typically non-English 
   language websites).

#### v1.94 Ìtumọ̀ Yorùbá: – 01/03/2017

 * Added option to not minify JavaScript.

#### v1.93 Ìtumọ̀ Yorùbá: – 12/28/2016

 * Removed extra blank lines after v1.92 modification.

#### v1.92 Ìtumọ̀ Yorùbá: – 12/27/2016

 * Corrected rare problem with inline JavaScript line comments.

#### v1.91 Ìtumọ̀ Yorùbá: – 6/29/2016

 * Fixed a problem with errors in the log and the “Remove schemes” switch not quite
   working correctly.

#### v1.9 Ìtumọ̀ Yorùbá: – 5/10/2016

 * Broke up option to remove relative schemes and domains into two options.
 * Cleaned up settings page, gives option suggestions.

#### v1.8 Ìtumọ̀ Yorùbá: – 5/10/2016

 * New Minify HTML Settings menu item in the admin console.
 * Option to deactivate Minify HTML without
 * Option to remove HTML, JavaScript and CSS comments.
 * Option to remove XHTML closing tags from HTML5 void elements.
 * Option to remove relative schemes and domains from links.

#### v1.7 Ìtumọ̀ Yorùbá: – 4/21/2016

 * Now removes CSS and JavaScript comments.
 * Fixed issue with minification of internal CSS media queries.
 * Fixed issue with Google AMP reporting problems with the style boilerplate.
 * No longer minifies XML files (which Minify HTML was never designed to do).

#### v1.6 Ìtumọ̀ Yorùbá: – 3/1/2016

 * Removes HTML comments to further reduce file size (doesnÌtumọ̀ Yorùbá: ’t remove
   MSIE conditional comments).

#### v1.5 Ìtumọ̀ Yorùbá: – 2/23/2016

 * No longer minifies the admin dashboard.
 * Some additional JavaScript minification.

#### v1.4 Ìtumọ̀ Yorùbá: – 2/23/2016

 * Fixed bug that could cause ‘M1N1FY-ST4RT’ to output to website.

#### v1.3 Ìtumọ̀ Yorùbá: – 2/22/2016

 * Added compatibility for PHP 7.0.0

#### v1.2 Ìtumọ̀ Yorùbá: – 2/22/2016

 * Compatible with older versions of PHP.
 * More effective at cleaning up tabs, JavaScript, and internal CSS.
 * Cleaned up source code and made a few performance tweaks.

#### v1.1 Ìtumọ̀ Yorùbá: – 2/19/2016

 * Also minifies internal CSS.

#### v1.0 Ìtumọ̀ Yorùbá: – 2/18/2016

 * Initial release.

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **2.1.13**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **oṣù 4 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **10,000+**
 *  Ẹ̀yà WordPress ** 3.6.0 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **6.9.5**
 *  Ẹ̀yà PHP ** 5.2.4 tàbí ju bẹ́ẹ̀ lọ **
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/minify-html-markup/)
 * Àwọn àmì
 * [beautify](https://yor.wordpress.org/plugins/tags/beautify/)[compress](https://yor.wordpress.org/plugins/tags/compress/)
   [html](https://yor.wordpress.org/plugins/tags/html/)[minifier](https://yor.wordpress.org/plugins/tags/minifier/)
   [minify](https://yor.wordpress.org/plugins/tags/minify/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/minify-html-markup/advanced/)

## Àwọn ìbò

 4.7 lára àwọn ìràwọ̀ 5.

 *  [  29 5-star reviews     ](https://wordpress.org/support/plugin/minify-html-markup/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/minify-html-markup/reviews/?filter=4)
 *  [  2 3-star reviews     ](https://wordpress.org/support/plugin/minify-html-markup/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/minify-html-markup/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/minify-html-markup/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/minify-html-markup/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/minify-html-markup/reviews/)

## Àwọn Olùkópa

 *   [ Tim Eckel ](https://profiles.wordpress.org/teckel/)

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/minify-html-markup/)

## Ṣe ìtọrẹ

Ṣé o fẹ́ ṣe àtìlẹ́yìn fún ìlọsíwájú plugin yìí?

 [ Ṣe ìtọrẹ sí plugin yìí ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=99J6Y4WCHCUN4&lc=US&item_name=Minify%20HTML&item_number=Minify%20HTML%20Plugin&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)