How to compress an image
- Choose an image from your device. Most formats your browser can display work, including JPEG, PNG and WebP, up to 25 MB.
- Set a maximum width in pixels. The image is scaled down to fit, keeping its proportions.
- Set the quality from 1 to 100.
- Press Run tool, check the preview and download the new JPEG.
The image is processed on your device using your browser's canvas. It is never uploaded. That makes the tool safe for client photos and screenshots that contain private information.
Picking the right width
Resizing saves far more space than quality settings do. A photo straight from a phone is often 4,000 pixels wide. Most blog content areas are 700 to 1,200 pixels wide. Uploading the full-size photo means every visitor downloads several times more data than their screen can show.
Good starting points:
- Images inside a blog post: 1,200 to 1,600 pixels wide. That covers the content width on high-density screens.
- Full-width hero images: 1,920 to 2,400 pixels.
- Thumbnails and author photos: 300 to 600 pixels.
The tool never enlarges an image. If your photo is smaller than the width you enter, it keeps its original size. It also limits height to 4,096 pixels, so very tall images are scaled to fit.
Picking the right quality
For photos, a quality of 70 to 82 usually looks the same as the original at normal viewing size, at a fraction of the file size. Below 60 you start to see blocky areas in skies and smooth gradients. Above 90 the file grows quickly for very little visible gain. Try 75 first, compare the preview with the original, and adjust.
When JPEG is the wrong choice
JPEG is ideal for photos, but it has two weak spots:
- Transparency. JPEG cannot store it. Transparent areas become white. For logos and icons with transparent backgrounds, use the WebP converter instead, which keeps transparency.
- Sharp text and flat colours. Screenshots and diagrams can look fuzzy around text at low quality. Use a higher quality setting or WebP.
Image compression and WordPress speed
Images are usually the largest files on a page, so shrinking them is one of the easiest speed wins. Smaller images help your Largest Contentful Paint score, which is one of Google's Core Web Vitals, and they use less of your hosting storage and bandwidth.
WordPress creates several smaller copies of each upload and serves the right one through srcset. It still keeps your original, and it uses that original as the base for every copy. Uploading a sensibly sized, compressed image keeps your media library lean.
For sites with thousands of images, an optimisation plugin that compresses on upload saves time. The image optimisation plugins guide and how to improve WordPress speed on WPSekar.com go into more detail.
Frequently asked questions
Is photo metadata removed?
Yes. Re-encoding through the canvas drops EXIF data such as camera details and GPS location. That is usually a good thing for privacy.
Why is my compressed file bigger than the original?
This can happen when the original was already well compressed, or was a small PNG with flat colours. Lower the quality, or keep the original.