Home / Image tools / Image compressor / WordPress

Compress Images for WordPress

Prepare images for the WordPress media library: smaller files, sensible dimensions, WebP by default.

Drop images here, click to choose, or paste
JPG, PNG, WebP, AVIF, HEIC, GIF, BMP. Up to 100 files. Stays in your browser.

Everything runs in your browser. Your images are not sent to our server. Sizes are shown with 1 KB = 1,000 bytes.

Compress Images for WordPress

WordPress accepts WebP uploads since version 5.8 and AVIF since 6.5. It also scales images above 2,560 pixels down on upload, and it creates several smaller copies of each image. Uploading a smaller, well-compressed original saves disk space and makes every copy lighter. The preset here is WebP at quality 80 and a 1,920 pixel width.

Settings this page uses

  • Output: WebP. Switch to JPG if your theme or plugin needs it.
  • Quality: 80.
  • Max width: 1,920 pixels.

You can change any setting above the results.

Checklist before you upload

  • Compress before upload, even if you use an optimization plugin. Plugins work on top of what you give them.
  • Name files with words, such as red-running-shoes.webp, not IMG_2034.
  • Fill in the alt text for each image in the media library.
  • Do not upload a 5,000 pixel original if the theme shows 1,200.

If something goes wrong

If an old plugin or theme does not accept WebP, choose JPG as the output. If a regenerate-thumbnails plugin is used, run it after replacing images.

Other sizes and purposes

Sizes: 20 KB, 50 KB, 75 KB, 100 KB, 150 KB, 200 KB, 250 KB, 300 KB, 400 KB, 500 KB, 750 KB, 1 MB, 2 MB, 3 MB, 5 MB.

Purposes: Passport photo, Visa photo, Job application, Exam photo, ID photo, Email, Website, Ecommerce. See also the image compression guide.

Frequently asked questions

Should I compress images before uploading to WordPress?

Yes. It keeps the media library small and every size variant lighter.

Does WordPress support WebP?

Yes, since version 5.8. AVIF is supported since 6.5.

Will WordPress compress the image again?

It re-encodes the resized copies with its own quality setting, so start from a good, not over-compressed, file.