All tools / Image

Image Compressor

Resize and compress an image to JPEG locally.

How to compress an image

  1. Choose an image from your device. Most formats your browser can display work, including JPEG, PNG and WebP, up to 25 MB.
  2. Set a maximum width in pixels. The image is scaled down to fit, keeping its proportions.
  3. Set the quality from 1 to 100.
  4. 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:

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:

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.

Related tools

Image

WebP Converter

Convert an image to WebP directly in your browser.

Open tool →
Text

Word Counter

Count words, characters, sentences and reading time.

Open tool →
Text

Case Converter

Convert text to uppercase, lowercase, title or sentence case.

Open tool →