Skip to main content
QuickToolsWorld

Compress Images Online for Smaller File Sizes

Make JPEG, PNG and WebP images smaller for websites, email and messaging. Adjust the quality, compare the result with the original, and download it.

Runs entirely in your browser. Nothing you enter is uploaded.

Drag and drop an image here

or

Supported formats: JPEG, PNG and WebP · Up to 25.00 MB

How to compress an image

  1. Drag an image onto the upload area, or select Choose an image.
  2. Pick an output format and move the Quality slider. The preview and file size update automatically.
  3. Need the file under a limit, such as 100 KB for an online form? Choose it under Target size instead of setting the quality yourself.
  4. Optionally choose a maximum size under Resize. Reducing pixel dimensions often saves more space than lowering quality.
  5. Drag the comparison slider to check the result against the original, then select Download.

Compress an image to 100 KB, 200 KB or another size limit

Job applications, admission forms, exam registrations and government portals often reject images above a fixed size, commonly 20 KB, 50 KB, 100 KB or 200 KB. Choose the limit under Target size and the tool does the rest:

  1. It tries a high quality first. If the file is already small enough, you get the best-looking version.
  2. Otherwise, it searches for the highest JPEG or WebP quality that still fits under the limit.
  3. If even a low quality is too large, it reduces the image’s dimensions step by step until the file fits, and tells you the new size in pixels. Nothing is resized without a message.

Targets use 1 KB = 1,000 bytes, so a file made “under 100 KB” is at most 100,000 bytes. That passes forms that count 1 KB as 1,000 bytes and those that count it as 1,024 bytes. The result shows the exact byte count. Very small targets, such as 20 KB, work best for small images like passport-style photos and signatures. For larger photos, start by choosing a smaller size under Resize, such as 800 px. Some forms also set required pixel dimensions or a file type (usually JPEG), so check the form’s instructions.

How the compression works

The tool draws your image onto an HTML canvas inside the browser and exports it again with the format and quality you choose. JPEG and WebP are lossy formats: at lower quality settings they discard fine detail that is hard to notice, which can shrink files dramatically. The size you see is the exact size of the file you will download.

Because the image is re-encoded, metadata such as camera details and location is not carried over. Results vary between browsers, as each uses its own encoder.

Settings and limits

SettingOptions
Input filesJPEG (.jpg, .jpeg), PNG and WebP, up to 25.00 MB. HEIC photos and GIFs aren’t supported; animated WebP files are saved as a single still frame.
Output formatJPEG and PNG in every modern browser, and WebP where your browser can save it (the option is disabled if not).
Quality10% to 100%, starting at 75%. Applies to JPEG and WebP only, because PNG is lossless.
Target sizeUnder 20 KB, 50 KB, 100 KB, 200 KB, 500 KB or 1 MB
ResizeKeep the original, or limit the longest side to 3840, 2560, 1920, 1280 or 800 pixels
Very large imagesAbove about 16.7 megapixels, images are scaled down to stay within browser memory limits, and the tool tells you

Quality, dimensions and file size

Two things decide the file size: the number of pixels and how heavily they are compressed. Halving the width and height leaves a quarter of the pixels, which usually saves more space than any quality setting, so resize first if the image is bigger than it will be displayed. Then lower the quality until you can see a difference in the comparison view, and go back up a step.

Choosing a format matters too. Use JPEG for photos that must open everywhere, WebP for the smallest files on websites (it also keeps transparency), and PNG when you need an exact, lossless copy, for example a screenshot with sharp text. A PNG can only get smaller here by being resized or converted.

Results differ from image to image. A detailed photo of leaves compresses less than a plain sky, and an image that was already compressed may barely shrink, or even grow. The tool shows the exact size before you download, and tells you when the new file is larger than the original. In our test of a screenshot and a graphic, WebP was 43% smaller than JPEG for the screenshot, while JPEG was slightly smaller for the graphic.

Tips for smaller files

  • For photos on a website, a quality of 70–85% usually looks almost identical to the original at normal viewing size.
  • Phone photos are often 4000 pixels wide or more. Resizing to 1920 or 1280 pixels is plenty for most web pages and email.
  • Screenshots and logos with flat colors often compress better as WebP than as JPEG, without the blurry edges JPEG can create.

Our guide to compressing images online explains lossy and lossless compression, the right dimensions for websites, and how to reduce photo size on a phone.

Frequently asked questions

How do I compress an image to 100 KB?
Choose your image, select JPEG output, and set Target size to “Under 100 KB”. The tool picks the highest quality that fits and, if necessary, reduces the dimensions. Check the result in the preview, then download it. The same steps work for 20 KB, 50 KB, 200 KB, 500 KB and 1 MB.
Why does a file “under 100 KB” show as 97.7 KB?
Targets use 1 KB = 1,000 bytes, so “under 100 KB” means at most 100,000 bytes. The size display counts 1 KB as 1,024 bytes, so 100,000 bytes appears as 97.7 KB. This way the file is accepted by forms that use either definition.
Does compressing an image reduce its quality?
JPEG and WebP compression removes some fine detail, but at quality settings around 70–85% the difference is usually hard to see. PNG output is lossless, so quality is unchanged and only resizing makes it smaller. After compressing, drag the before-and-after slider over the preview to check the result at full size before you download.
Are my images uploaded to a server?
No. Your browser decodes and re-encodes the image on your device using the Canvas API. The file never leaves your computer or phone.
Why did my compressed image get bigger?
Images that are already heavily compressed, very small, or simple graphics saved as PNG can grow when they are re-encoded. The tool tells you when this happens and lets you keep the original. Lowering the quality, resizing, or switching to WebP usually helps.
Does compressing remove photo metadata?
Yes. Re-encoding through a canvas does not copy EXIF metadata such as camera details or GPS location into the new file. The image is rotated correctly before saving, so photos stay the right way up.
Browse all tools

QR Code Generator

Create static QR codes for links, text or Wi-Fi, checked to scan, as PNG or SVG.

Word Counter

Count words, characters, sentences, and paragraphs in text or PDFs.

Case Converter

Convert text to title case, sentence case, uppercase, lowercase, camelCase and more.