Replace Image


The Replace Image plugin adds a button to the Attachment Details screen which allows you to upload or select an image to replace the current image while retaining the URL and attachment ID. This allows you to easily swap in an updated version of an image without having to re-select it in theme settings pages, post/page content, or anywhere else where it might be referenced.

Important: Disable your browser’s cache and any WordPress caching plugins before use; otherwise, the plugin may appear not to work. See Tools > Replace Image for instructions.

If you like this plugin, please consider making a donation.


  • The Replace Image button in the Attachment Details screen (opened by clicking on an image in the Media Library).


  1. Click “Plugins” > “Add New” in the WordPress admin menu.
  2. Search for “Replace Image”.
  3. Click “Install Now”.
  4. Click “Activate Plugin”.

Alternatively, you can manually upload the plugin to your wp-content/plugins directory.


I tried to replace an image but nothing happened.

Your browser is likely still caching the old image. Try doing a hard refresh (Ctrl + F5 on Windows, Apple + R / Command + R on Mac) while viewing the page on the frontend. Note that the backend seems to retain cached image thumbnails even after a hard refresh.


A real share-saver!

Many of my attachment images have been shared dozens of times on social media, so if I should ever get a better picture (which I often do) , I don’t want to delete and replace the old one because I lose those shares, not to mention the date based order of the attachments. Now, this is no longer an issue!

Very useful

Very useful, and works most of the time with no fuss! I use it all the time.

didnt replace all smaller versions

I love the concept of this plugin. I love completely free plugins. I love developers who make plugins and keep them upgraded. You guys are awesome!

It’s unfathomable that “replace image” isn’t a built-in feature by default. needs to jump on that.

I give this plugin 2 stars because although it does replace some of the images, it doesn’t replace all of them. There’s like 10 different sizes of the original image, it replaced 6 of them but not the other 4. I have woocommerce installed and woo might have been the origin of the other 4 that didnt get replaced.

Super ├║til

Funciona excelente y muy sencillo de utilizar. Evita cargar la misma imagen varias veces y reemplaza directamente la versi├│n anterior.

Read all 30 reviews

Contributors & Developers

“Replace Image” is open source software. The following people have contributed to this plugin.




  • Plugin now deletes files associated with the old image prior to replacement


  • Fixed non-critical PHP warning


  • Fixed undefined offset error per


  • Added support for image replacement where the image file being replaced doesn’t exist
  • Removed anonymous functions


  • Added functionality to prevent image caching in the Media Library


  • Fixed a bug where the upload UI would temporarily stop working properly after replacing an image.


  • Initial release