Tolket

Skip to content

How to Compress Images Without Losing Quality

Large images are the most common reason a web page feels slow. The good news: most photos can lose 60–80% of their file size with no difference you can see. Here is exactly how to do it.

By Tolket Editorial Team 7 min read
Image compression guide cover

Why image size matters

Images usually make up the largest share of a web page’s weight. A single photo straight from a modern phone is often 3–6 MB, while the same picture displayed on a blog post rarely needs more than 150 KB. Oversized images slow down your pages, use up visitors’ mobile data, fill your hosting storage and can make email attachments bounce.

Speed also affects search. Google’s Core Web Vitals measure how fast the main content of a page appears (Largest Contentful Paint), and on most pages that main element is an image. Lighter images are one of the easiest ways to improve that score.

Lossy vs lossless compression

There are two ways to make an image file smaller:

“Without losing quality” in practice means without visible loss. A well-tuned lossy setting produces a file that looks identical at normal viewing size, which is why it is the standard choice for photos on the web.

Step 1: Choose the right format

FormatBest forNotes
JPEGPhotosUniversally supported, great lossy compression, no transparency.
PNGLogos, screenshots, graphics with sharp edges or transparencyLossless, so photos saved as PNG are very large.
WebPPhotos and graphics on websitesTypically 25–35% smaller than JPEG at similar quality, supports transparency, works in all modern browsers.
AVIFWebsites that want the smallest filesEven smaller than WebP, but slower to encode and less widely supported by editing software.

A quick rule: use WebP or JPEG for photos and PNG only when you need lossless edges or transparency. Converting a photographic PNG to WebP alone can cut its size by 80% or more.

Step 2: Resize before you compress

Pixel dimensions affect file size more than any quality setting. A 4000 × 3000 photo has 12 million pixels; resized to 1600 × 1200 it has under 2 million, about one-sixth of the data, before any compression at all.

Resize to the largest size the image will actually be displayed at. For most websites:

Our Image Resizer lets you set exact dimensions with the aspect ratio locked, so nothing gets stretched.

Step 3: Find the quality sweet spot

For JPEG and WebP, quality is set on a scale from 0 to 100. Image quality drops very little between 100 and about 80, while file size drops a lot. Below about 60, artefacts such as blocky skies and halos around edges start to appear.

Always zoom in to 100% on one or two compressed images and compare them with the original before compressing a whole batch.

Step 4: Remove hidden metadata

Photos carry EXIF metadata: camera model, settings and sometimes the exact GPS location where the picture was taken. It adds kilobytes and can reveal private information. Re-encoding an image in the browser, as our compressor does, writes a fresh file without that metadata.

How to compress images with Tolket

  1. Open the free Image Compressor.
  2. Drag in up to 30 JPG, PNG or WebP files, or click to choose them.
  3. Pick WebP or JPEG output and set the quality, around 80 is a good start.
  4. Optionally set a maximum width to resize while compressing.
  5. Compare the before and after sizes, then download each image or all of them together.

Everything happens inside your browser, so your photos are never uploaded to a server. If an image is already optimised and would get bigger, the original is kept automatically.

Target file sizes for the web

Image typeGood target
Hero or banner imageUnder 200 KB
Image inside an articleUnder 100 KB
Product photo80–150 KB
Thumbnail or card imageUnder 30 KB
Whole email newsletterUnder 1 MB of images in total

These are guidelines, not hard limits: a detailed photograph may need a little more, while a flat illustration can be far smaller.

Extra tips for faster websites

Filling in an online form with a strict limit? See how to compress an image to 20KB, 50KB or 100KB for a step-by-step method that hits an exact file size.

Frequently asked questions

Does compressing an image always reduce its quality?

Lossless compression never changes pixels. Lossy compression does remove some information, but at sensible settings (around 75–85) the difference is not visible at normal viewing size.

Can I compress an image twice?

You can, but each lossy pass removes a little more detail. Keep your originals and always compress from the original file rather than from an already compressed copy.

Is WebP safe to use on my website?

Yes. WebP is supported by all current versions of Chrome, Edge, Firefox and Safari. Keep JPEG or PNG copies if you also need to send the images to older software.

Why did my PNG barely shrink?

PNG is lossless, so the savings are limited. If the image is a photo, convert it to WebP or JPEG for a much smaller file. If it is a logo or screenshot, PNG may already be the right choice.

Tolket Editorial Team

We build free online tools and templates and write practical guides that help you get everyday digital tasks done faster.

Share this article
Scroll to Top