How to Optimize Images for WordPress (Before and After Upload)

Illustration of a generic CMS dashboard whose image panel is being compressed, with a green done check

WordPress sites get slow one image at a time: a 4 MB camera photo here, an uncompressed PNG screenshot there, until the media library is the heaviest part of the site. The usual fix offered is a paid optimization plugin. It is not the only fix. This guide is the workflow version - what to do before upload, what WordPress does for you automatically, and how to rescue the library you already have - using free browser tools and settings that are already in your dashboard.

Before upload: win the fight early

An image optimized before upload needs no plugin afterwards. Three steps, in order. First, resize to the slot. Know your theme's content width (commonly 720-1200 px) and your largest actual use; export at twice that for retina sharpness and no more, with Resize Image. Second, pick the format: WebP for photos and most graphics, JPG when a workflow demands it, PNG only for transparency and pixel-exact screenshots. Third, compress once at around quality 80 - the Bulk Image Compressor does a whole post's worth of images in one pass and returns a ZIP. A folder treated this way typically uploads 70-90% lighter than the camera originals.

What WordPress already does (and does not)

On upload, WordPress generates several resized versions of each image (thumbnail, medium, large and theme sizes) and serves the closest one - genuinely helpful, and the reason a huge original sometimes still displays acceptably. Since version 5.8 it can also serve WebP if you upload WebP. What it does not do: compress your original well, convert formats for you (in core), or fix the full-size file that lightboxes, product zooms and search engines still find. The uploaded file itself is your responsibility - which is why the pre-upload steps matter more than any setting.

Settings worth changing (all free, all built in)

Rescuing the existing library

For the heavy images already live, work in order of impact: find your most visited pages, open their images at full size, and note the dimensions and weights. Download the worst offenders, run them through resize → convert → compress, and re-upload as new files - then update the posts to use them (or use a media-replacement approach carefully, keeping URLs identical where possible so nothing breaks). Converting a library folder by folder with the Batch Image Converter beats one heroic evening: check each batch at 100% zoom before swapping it in, and keep the originals in an offline archive until the new versions have survived a few weeks.

The honest note about plugins

Paid plugins earn their money on automation - thousands of images, zero workflow. If your site publishes a handful of posts a month, the manual workflow above achieves the same bytes for free, with the bonus that the files were never shipped to a third-party server: ImgBleu's tools run entirely in your browser. If you publish hundreds of images a week, automation is a legitimate business expense. Either way, the physics are identical: right pixels, right format, one careful compression. WordPress just displays the result.

Related tools

Resize ImageBulk Image CompressorBatch Image ConverterCompress JPG