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.