Home / WordPress plugin
Free plugin · v0.1.0 beta

Free Image Compression Plugin for WordPress

Compress your Media Library and create WebP and AVIF versions, right in your browser. No credits, no account, no uploads to third parties.

Download the plugin (ZIP, 1.5 MB)

Beta (version 0.1.0). This is the first public version. Try it on a test copy of your site first and keep a backup of your uploads folder, as you would with any plugin that edits files.

What it does

  • Compresses JPEG, PNG and WebP images, including every thumbnail size WordPress created.
  • Creates WebP and AVIF versions and shows them only to visitors whose browser supports them.
  • Optimizes new uploads automatically while you work in the admin area.
  • Bulk optimizes your existing Media Library with a progress bar and a Stop button.
  • Removes camera and GPS metadata from the optimized files.
  • Keeps a backup of every original and can restore one image, or all of them.
  • Leaves animated images alone, so GIF-style animations are not flattened.

Why it is different: it runs in your browser

Most image plugins either need server libraries that your host may not provide, or send your pictures to a paid service that counts credits. This plugin does the compression in the browser you are using, with the same WebAssembly engine that powers Image Compressor Now. The smaller file is then saved back to your own website. No account, no API key, no credits, and no images sent to a third party.

Server-library pluginsCloud (credit) pluginsImage Compressor Now plugin
Where compression runsYour web serverThe vendor's serversYour browser
Needs host support for WebP/AVIFYesNoNo
Images leave your siteNoYesNo
Credits or quotaNoUsuallyNo
Admin tab must stay open for bulk runsNoNoYes

How it works

  1. Activate the plugin and open Media > Image Compressor Now.
  2. Press "Optimize all images". Each image is downloaded into your browser, compressed in a background worker and uploaded back to your site through the WordPress REST API.
  3. Visitors get smaller files. The WebP and AVIF copies are delivered with the standard picture element, and browsers that do not understand them keep the original.

Install

  1. Download the ZIP.
  2. In WordPress go to Plugins > Add New > Upload Plugin and choose the ZIP.
  3. Activate it, then open Media > Image Compressor Now.

Requirements: WordPress 6.0 or newer, PHP 7.4 or newer, and a current browser (Chrome, Edge, Firefox or Safari) in the admin area.

Good to know

  • Keep the tab open during a bulk run. You can press Stop and continue later; finished images stay finished.
  • Uploads that bypass the browser (FTP, WP-CLI, the REST API) are optimized the next time an administrator opens the admin area.
  • Files stored outside your server (cloud offload) are skipped.
  • Very large images are skipped: above about 100 megapixels, and above about 40 megapixels for AVIF.
  • Backups are stored in an unguessable folder inside your uploads directory. On Apache servers the folder is also blocked from web access; on other servers, make sure that folder is not publicly served if your originals contain private data.
  • Themes that style images with very specific CSS may look different inside a picture element. Switch off "Show them to visitors" in the settings if that happens.

Frequently asked questions

Is it really free?

Yes. There are no credits, quotas or paid tiers.

Are my images uploaded to Image Compressor Now?

No. The plugin does not connect to our servers or to any other service. The encoders are included in the plugin and run in your browser.

Can I undo the compression?

Yes. With the default setting, every original is backed up first and can be restored from the Media Library list or the settings page.

Does it change my image URLs?

No. Optimized files replace the originals at the same address. The WebP and AVIF versions are stored next to them, for example photo.jpg.webp.

Why is no WebP or AVIF file created for some images?

A modern-format copy is only kept when it is smaller than the optimized original.

What happens if I delete the plugin?

The generated WebP and AVIF files are removed and your optimized images stay as they are. Your backups are kept unless you turn on the option to delete them.

Will you add it to the WordPress.org plugin directory?

That is the plan once the beta has been tested on more sites.

Changelog

0.1.0 — First public beta: browser-based compression for JPEG, PNG and WebP, WebP and AVIF versions, bulk and automatic optimization, backups and restore.

More about image optimization

Choosing a plugin: how to pick a free image compression plugin for WordPress. To shrink a single picture without installing anything, use the online image compressor.