TinyPNG – JPEG, PNG & WebP image compression


Make your website faster by optimizing your JPEG, PNG, and WebP images. This plugin automatically optimizes all your images by integrating with the popular image compression services TinyJPG and TinyPNG.


  • Automatically optimize new images on upload.
  • Advanced background optimization to speed up your workflow.
  • Optimize individual images already in your media library.
  • Easy bulk optimization of your existing media library.
  • Automatically resize huge image uploads by setting a maximum width and/or height for more reasonable browser display.
  • Display JPEG images more quickly with progressive JPEG encoding.
  • Chose to preserve copyright metadata, creation date and GPS location in your original images.
  • Supports compression of animated PNG.
  • Select which thumbnail sizes of an image may be optimized.
  • Multisite support with a single API key.
  • WPML compatible.
  • WooCommerce compatible (see below).
  • WP Retina 2x compatible.
  • See your usage on the settings page and during bulk optimization.
  • Color profiles are automatically translated to standard RGB color.
  • Convert CMYK to RGB to save more space and add compatibility.
  • Dashboard widget with your total savings.
  • Optimize and resize uploads with the WordPress mobile app.

Ako to funguje?

After you upload an image to your WordPress site, each resized image is uploaded to the TinyJPG or TinyPNG service. Your image is analyzed to apply the best possible optimization. Based on the content of your image an optimal strategy is chosen. The result is sent back to your WordPress site and will replace the original image with one smaller in size. On average JPEG images are compressed by 40-60% and PNG images by 50-80% without visible loss in quality. Your website will load faster for your visitors, and you’ll save storage space and bandwidth!

Getting started

Install this plugin and follow the instructions to set up your account. With a regular WordPress installation you can optimize roughly 100 images each month for free. The exact total depends on the number of thumbnail sizes that are in use in your WordPress installation. You can change which of the generated thumbnail sizes should be optimized on the Settings > TinyPNG – JPEG, PNG & WebP image compression page. Once installed you can also switch to a paid account which removes the limits and allows you to optimize as many images as you like.

Optimizing all your images

You can bulk optimize your existing JPEG, PNG, and WebP images all at once by going to Media > Bulk Optimization. Clicking on the big button will start optimizing all unoptimized images in your media library.

Multisite support

The plugin is fully multisite compatible and you can set the API key for all sites by defining the key in your wp-config.php file. View the installation instructions for more information.

WooCommerce compatibility

This plugin is fully compatible with WooCommerce. However, we have discovered that WooCommerce may be trying to regenerate image attachment metadata over and over again on each page visit. If you are using WooCommerce please follow the tips from the support section. This may make your WooCommerce shop even faster than it was before.

Contact us

Got questions or feedback? Let us know! Contact us at support@tinypng.com or find us on X: @tinypng.


Want to contribute? Check out the Tinify WordPress plugin on GitHub.


  • Register a new account or enter your existing API key. Then choose the image sizes to optimize and any other options like resizing and preserving metadata in your original image uploads.
  • In the Media Library list view you can see the savings on your images.
  • From the Media Library you can compress individual images and use the Bulk Actions drop-down to quickly optimize multiple images at once.
  • Last but not least you can also use Bulk Optimization to optimize your entire WordPress site.


From your WordPress dashboard

  1. Visit Plugins > Add New.
  2. Search for ‚tinypng‘ and press the ‚Install Now‘ button for the plugin named ‚TinyPNG – JPEG, PNG & WebP image compression‘ by ‚TinyPNG‘.
  3. Activate the plugin from your Plugins page.
  4. Go to the Settings > TinyPNG – JPEG, PNG & WebP image compression page and register a new account.
  5. Or enter the API key you got from https://tinypng.com/developers.
  6. Go to Media > Bulk Optimization and optimize all your images!

From WordPress.org

  1. Download the plugin named ‚TinyPNG – JPEG, PNG & WebP image compression‘ by ‚TinyPNG‘.
  2. Upload the tiny-compress-images directory to your /wp-content/plugins/ directory, using your favorite method (ftp, sftp, scp, etc…)
  3. Activate the plugin from your Plugins page.
  4. Go to the Settings > TinyPNG – JPEG, PNG & WebP image compression page and register a new account.
  5. Or enter the API key you got from https://tinypng.com/developers.
  6. Go to Media > Bulk Optimization and optimize all your images!

Optional configuration

API kľúč je tiež možné nakonfigurovať vo Vašom súbore wp-config.php . K tomu je potrebné pridať nasledujúci PHP kód, ktorý nastaví Váš API kľúč.


Once set up you will see a message on the Settings > TinyPNG – JPEG, PNG & WebP image compression page. This will work for normal and multisite WordPress installations.

Časté otázky

Q: How many images can I optimize for free?

A: In a default WordPress installation you can optimize around 100 images for free each month. WordPress creates different thumbnails of your images which all have to be compressed. Some plugins even add more sizes, so take a look at the Settings > TinyPNG – JPEG, PNG & WebP image compression page before you start optimization.

Otázka: Ako môžem odstrániť limit na 500 kompresií?

Odpoveď: Na odstránenie limitu stačí pridať Podrobnosti o platbe (Payment details) na informačnom paneli účtu. Na konci každého mesiaca budú za malý poplatok účtované dodatočné kompresie nad 500.

Q: What happens to the optimized images when I uninstall the plugin?

A: When you remove the plugin all your optimized images will remain optimized.

Q: I don’t recall uploading 500 photos this month but my limit is already reached. How is this number calculated?

A: When you upload an image to your website, WordPress will create different sized versions of it (see Settings > TinyPNG – JPEG, PNG & WebP image compression). The plugin will compress each of these sizes, so when you have 100 images and 5 different sizes you will do 500 compressions.

Q: Is there a file size limit?

A: Yes, but they are very generous! The maximum file size is 500MB and the maximum canvas size is 256MP (16000px by 16000px in any ratio).

Otázka: Môžem použiť rovnaký API kľúč na všetkých mojich webových stránkach?

Odpoveď: Áno, neexistujú žiadne obmedzenia. Môžete dať rovnaký kľúč všade.

Otázka: Môžem skryť môj API kľúč pred administrátorom?

Odpoveď: Áno, môžete skryť API kľúč pred administrátorom, takže ostatní administrátori ho nebudú môcť vidieť. Ak to chcete urobiť, musíte definovať API kľúč v súbore wp-config.php . Ďalšie informácie nájdete v pokynoch na inštaláciu.

Q: What happens when I reach my monthly limit?

Odpoveď: Všetko bude fungovať, no novo nahrané obrázky nebudú optimalizované. Samozrejme, odporúčame všetkým prepnúť na platený účet na pokrytie nákladov na hosting a vývoj.

Q: Can I optimize all existing images in my media library?

A: Yes! After installing the plugin, go to Media > Bulk Optimization, and click on the start button to optimize all unoptimized images in your media library.

Otázka: Ako sa prepnem na platený účet?

Odpoveď: Na platený účet sa dá prepnúť pridaním Podrobností o platbe (Payment details) v paneli Vášho účtu. Ďalšie dodatočné kompresie nad 500 budú účtované na konci každého mesiaca ako jednorazový poplatok.


14. marca 2024 1 reply
Good Plugins, my image 200kb > 103 kb
12. augusta 2023 1 reply
Hi the plugin is compatible with the Lazy Load thank you very much
29. augusta 2022
I usually use tinyPNG on the website, but with this WP plugin, it saves my time a lot. Great!
Prečítať všetkých 152 recenzií

Prispievatelia a vývojári

“TinyPNG – JPEG, PNG & WebP image compression” je softvér s otvoreným zdrojovým kódom. Do tohto pluginu prispeli nasledujúci ľudia.


„TinyPNG – JPEG, PNG & WebP image compression“ bol preložený do 15 jazykov. Ďakujeme prekladateľom za ich príspevky.

Preložiť „TinyPNG – JPEG, PNG & WebP image compression“ do vašho jazyka.

Máte záujem o vývoj?

Prehľadávajte zdrojový kód, preskúmajte SVN repozitár, alebo sa prihláste na odber vývojárskeho logu cez RSS.

Zoznam zmien


  • Removed more deprecated PHP syntax that was triggering a warning message.
  • Updated WordPress compatibility


  • Removed deprecated PHP syntax that was triggering a warning message.


  • Fixed a bug that sometimes prevented failing requests to the Tinify servers from being retried.


  • Correct filesize metadata retrieval for compressed images in WordPress 6.
  • Updated WordPress compatibility.


  • You can now optimise WebP images, in addition to JPEG and PNG.


  • Fixed bug that caused the original version of images that started with a special character to not be compressed.
  • Updated WordPress compatibility.


  • Support for WP Retina 2x Pro.
  • More capability checks for extra security.
  • Less resource intensive AJAX requests.
  • Fixed CSS issues from Analytify plugin.
  • Removed legacy Enhanced Media Library compatibility.


  • Remaining free compressions shown in settings page.
  • Easier way to upgrade a free account.
  • WPML and WPML Media compatibility in collaboration with the authors of WPML. Make sure to upgrade WPML to version 4.1.
  • Added a notice to the Bulk Optimization page for free accounts with not enough available free compressions.
  • Added a new hook after compression of an image useful for CDN cache flushing.


  • Fixed bug that caused an error when registering a new account.
  • No longer use create_function, which is deprecated in PHP 7.2. The plugin no longer supports PHP 5.2.
  • Rephrased incompatible plugins notice to avoid confusion.


  • Compress new images in the background to speed up your workflow.
  • Turbo-charged Bulk Optimization page with simultaneous image compression.
  • Improved memory usage for installations with extreme media libraries.
  • Detection of incompatible plugins.
  • Fallback to fopen whenever the curl_exec function is disabled.
  • Additional notices for WP Offload S3 users.
  • Several minor fixes and tweaks.


  • Fixed bug in compression of file types other than JPEG and PNG that have a thumbnail generated automatically.


  • Fixed bug in the Bulk Optimization page that sometimes caused it to stop.
  • Fixed a problem that would prevent dashboard widget from loading.
  • Tweaked styling of the dashboard widget for the latest version of WordPress.
  • Fixed a warning in the media library when certain plugins are used.


  • Fixed bug with drop-down menu in the Media Library.
  • Compression limit notice now links directly to your API dashboard.
  • Tweaked styling of the dashboard widget.


  • Changed links to make it easier to go directly to your API dashboard.
  • Fixed a compression issue for some fopen users.


  • Improved robustness in case an unexpected network error occurs.
  • Fixed false positive warning with Sucuri scanner.
  • Fixed compression issue for fopen users.


  • Fixed an error that was introduced in v2.2.0 where all custom image sizes did not show up.
  • Added support for image sizes with unspecified height or width.


  • New dashboard widget that shows your media library savings.
  • Support compressing medium_large image sizes.


  • Compression of retina images generated by WP Retina 2x.
  • Solved a bug which caused the API key to be cleared on the settings page.
  • Fixed an error that occurred with some PHP 7 installations.
  • Fixed an fopen error when preserving metadata.


  • Faster Bulk Optimization page with reduced memory usage (thanks to @esmus).
  • Fixed XML-RPC error (thanks @ironmanixs, @gingerdog, @quicoto and @isaumya).


  • Fixed a bug when searching from the admin interface (thanks to @bapcsuk).


  • Completely new Bulk Optimization page.
  • Better detection of image sizes with duplicate filenames.
  • Simplified account activation and API key creation.
  • Fix to the bottom drop-down menu in the Media Library.
  • Use the latest PHP client library for connecting to TinyJPG and TinyPNG.
  • Added fallback to fopen for older systems running PHP 5.2.


  • Show more information about compressed image sizes in details popup.
  • Add compression details to image overview.


  • Preserve GPS locations and creation dates in the original JPEG images.
  • Option to preserve copyright information in your original PNG images.
  • Improved detection of unsupported file types.


  • Option to preserve copyright information in your original JPEG images.
  • Added proxy support for cURL.
  • Support for translate.wordpress.org plugin translations.


  • Improved compression status in the Media Library with new details window.
  • Show total compression savings on the Media Settings page.
  • Moved Compress All Images from the Tools to the Media menu.


  • Resize original images by specifying a maximum width and/or height.
  • Support for the mobile WordPress app (thanks to David Goodwin).


  • Indication of the number of images you can compress for free each month.
  • Link to the Media Settings page from the plugin listing.
  • Clarification that original images will be overwritten when compressed.


  • Detect different thumbnail sizes with the same dimensions.


  • Media library shows files that are in the process of compression.


  • Added option to bulk compress your whole media library in one go.
  • Better indication of image sizes that have been compressed.
  • Detection of image sizes modified after compression by other plugins.


  • Prevent compressing the original image if it is the only selected image size.


  • Show if you entered a valid API key.
  • Display connection status and number of compressions this month.
  • Show a notice to administrators when the free compression limit is reached.
  • The plugin now works when php’s parse_ini_file is disabled on your host.
  • Avoid warnings when no image thumbnail sizes have been selected.


  • The API key can now be set with the TINY_API_KEY constant in wp-config.php. This will work for normal and multisite WordPress installations.
  • Enable or disable compression of the original uploaded image.
  • Improved display of original sizes and compressed sizes showing the total compression size in the Media Library list view.


  • Initial version.