Skip to main content
ToolstikToolstik
Images

How to Compress Images Without Losing Quality

ToolstikUpdated 6 min read
Illustration of a large photo being compressed into a smaller file with the same visual quality

To compress an image without visible quality loss, re-encode it at roughly 70-85% quality and cap its width at the largest size it will actually be displayed. The free Image Compressor does both in your browser: drop in JPG, PNG, or WebP files, keep the default Quality: 80% and Max width (px) of 2048, and click Compress images. Lossy compression always discards some data, so "without losing quality" really means "without losing quality you can see."

Try it now

Image Compressor

Open full tool

Loading tool…

How to compress images with Toolstik

  1. Open the Image Compressor and drop your files onto the area labelled Drop images to compress, or click to browse. It accepts JPG, PNG, WebP, up to 25 MB each, and you can add several at once.
  2. Check the file list. Remove anything you added by mistake.
  3. Under Compression settings, set the Quality slider (10-100%, default 80%).
  4. Set Max width (px). The default is 2048. Images wider than this are scaled down with their aspect ratio kept. Enter 0 to keep the original dimensions.
  5. Click Compress images. The status line shows "Compressing 1 of 5…" and so on.
  6. Review the summary: original size, compressed size, and savings, plus a per-file line such as 2.4 MB → 410 KB · 83% smaller.
  7. Click Download. If you compressed more than one file, the button says Download ZIP and gives you compressed-images.zip. Click Reset to start over.

Compressed files are named like photo-compressed.jpg. Files marked "already optimized" keep their original name.

What the compressor actually does

It helps to know what happens under the hood, because it explains most surprises:

  • Your quality setting comes first. The tool encodes at your chosen quality. If that result isn't smaller than the original, it tries lower steps (65%, 50%, 40%, then 30%) and stops at the first one that's smaller. If you set the slider below 30%, it's treated as 30%.
  • It never returns a bigger file. If nothing beats the original, you get the original back, marked already optimized.
  • The output format can change. JPGs stay JPG. WebP files stay WebP, or become JPG if that's smaller or your browser can't encode WebP. PNGs are tried as JPG, WebP, and PNG, and the smallest result wins.
  • It never upscales. Max width only ever shrinks an image.

Worked example: a phone photo for a blog post

You have IMG_2041.jpg, a 4032×3024 photo straight off a phone, at 3.8 MB. Your blog's content column is 800 px wide, and you want a sharp image on high-density screens.

  • Set Max width (px) to 1600 (2× the 800 px column).
  • Leave Quality at 80%.
  • The output is 1600×1200: 3024 × 1600 ÷ 4032 = 1200, so the 4:3 ratio is kept.

Cutting the width from 4032 to 1600 means the image has about one sixth as many pixels, which usually matters more than the quality setting does. You'll see the exact before and after sizes in the result list. They depend on the photo's content, since detailed scenes like foliage compress less than plain skies.

If you'd left the default of 2048, the output would be 2048×1536. That's fine for a full-width hero image but more than an 800 px column needs.

Quality settings: starting points, not rules

These ranges are where to start testing. Always check the result at the size it will be displayed.

UseQuality to tryMax width to try
Blog or article photos70-80%1600-2048
Product photos for a store80-85%Your platform's recommended size
Email attachments70-75%1200-1600
Screenshots with text85-90%Original (0)

Screenshots and graphics with sharp text show compression artifacts sooner than photos do. If text looks fuzzy, raise the quality or keep the file as PNG (see below).

Troubleshooting

My transparent PNG got a white background. The compressor draws every image onto a white canvas before encoding. A transparent logo or icon will come back with a white background, often as a JPG. For transparent graphics, skip this tool. Use the Image Converter with PNG output to keep transparency, or a tool like Squoosh that offers lossless PNG optimization.

The file barely shrank, or says "already optimized." The image was probably already compressed. Many phone cameras, social networks, and CMSs re-compress uploads. Lowering quality further gives you more artifacts for very little saving. Reducing Max width is usually the better lever.

A file disappeared when I dropped it. Files over 25 MB, or in formats other than JPG, PNG, and WebP, are skipped. iPhone HEIC photos need converting first with HEIC to JPG.

My WebP came back as a JPG. If your browser can't encode WebP (Safari has historically been the holdout), the tool falls back to JPG. Try Chrome, Edge, or Firefox if you need WebP output.

Edges look blocky or skies show bands. Raise quality by 5-10 points and compress again from the original. Don't re-compress an already compressed copy, because the losses stack up.

Resize first, or compress with a width cap?

If you need exact dimensions, such as 1200×628 for a social card or a fixed height, use the Image Resizer first. Our guide on how to resize images online explains the width and height rules. If you only need "no wider than X," the compressor's Max width does it in one step.

To switch formats deliberately, for example turning a JPG library into WebP for your site, use the Image Converter. Read WebP vs JPEG first to decide whether WebP is worth it for your case.

Other ways to compress images

  • Squoosh (squoosh.app) is a free browser app with a side-by-side preview and advanced encoders, including AVIF and MozJPEG. It's better when you're tuning one important image by eye. It's slower for batches.
  • macOS Preview: File > Export, choose JPEG, and drag the Quality slider. Fine for a one-off image on a Mac.
  • Your CMS or image CDN. If your site already resizes and compresses on upload, adding a second pass may gain little.

Privacy

Compression runs entirely in your browser using the built-in canvas encoder. Your images aren't uploaded to Toolstik servers, which makes the tool suitable for client work and screenshots with private information. For the rest of the image toolkit, see the best free image tools on Toolstik.

Frequently asked questions