Image Tools

Image Compressor

Shrink an image's file size right in your browser. Use the quality slider, or set a target size such as 100 KB or 20 KB for form-upload limits. JPG, PNG, WebP and GIF are accepted, and nothing uploads to any server.

Runs in your browser. Your files and text never leave your device - nothing is uploaded.

Click or drag an image here
JPG, PNG, WebP, GIF supported

Compress Images in Your Browser

This free image compressor reduces the file size of JPG, PNG, WebP and GIF images so they upload faster, fit under form limits, and load quicker on websites. You can set the quality yourself with a slider, or type a target size in KB and let the tool find the highest quality that fits.

Everything happens on your device. The image is re-encoded with your browser’s canvas API, the before and after versions are shown side by side, and the compressed copy is saved straight to your computer or phone. Nothing is uploaded, stored, or watermarked.

How to Compress an Image

  1. 1

    Add your image

    Click the upload area or drag a JPG, PNG, WebP or GIF onto it. The file opens in your browser and is not uploaded anywhere.

  2. 2

    Choose how to compress

    Pick "Quality slider" to set the quality yourself, or "Target file size" to enter a size limit in KB and let the tool find the quality for you.

  3. 3

    Set the quality or the target

    Drag the slider between 10% and 100% (80% is the default), or type a target such as 100 or 50 KB.

  4. 4

    Compress and compare

    Click Compress Image. The compressed version appears next to the original with its new size and the percentage saved.

  5. 5

    Download the result

    Click Download Compressed to save the new file. Your original image is left untouched.

iPhone photos saved as HEIC need converting first; run them through HEIC to JPG and then compress the JPG here.

Quality Slider vs Target File Size

Quality slider gives you direct control. It runs from 10% to 100% in steps of 5 and starts at 80%, which usually cuts a camera JPG substantially with no visible change at screen size. Lower it for smaller files, raise it if you see blockiness or smeared edges.

Target file size is for hard limits. Enter a number of KB and the tool compresses the image repeatedly, halving the range of possible quality levels on each of 8 passes, and keeps the highest-quality version that is at or under your target. You get the best-looking file that fits rather than one that is needlessly small.

The tool counts 1 KB as 1,024 bytes, so a 100 KB target allows up to 102,400 bytes. Some upload portals count 1 KB as 1,000 bytes and would reject that file. If a form is strict, enter a slightly lower target such as 95. The data storage converter shows the difference between the two definitions for any size.

Why Resize Before You Compress

Compression changes how the pixels are stored, not how many there are. A 4,000 × 3,000 phone photo has 12 million pixels. Fitting it into 100 KB (819,200 bits) leaves about 0.07 bits per pixel, which forces the quality so low that the photo turns blocky.

Resize the same photo to 1,200 × 900 first and it has 1.08 million pixels, giving each pixel about 0.76 bits of the same 100 KB, more than ten times the budget. The result looks far better at the same file size. Use the image resizer to bring the width down to what the page or portal actually displays, or the image cropper to cut away background you do not need, and then compress the smaller image here.

For application and ID photos with fixed dimensions, the passport photo maker crops and sizes the photo to the standard first, after which a target of 50 KB or less is usually easy to reach.

Output Formats: JPG and WebP

The format of the compressed file depends on what you upload. JPG photos stay JPG. PNG, WebP and GIF images are saved as WebP, because WebP keeps transparent backgrounds and supports a quality level, while PNG does not. For photographic PNGs the saving is often dramatic. An animated GIF is saved as a single still frame.

If you need a specific format, convert it separately: PNG to WebP for a straight format switch, or the image format converter to turn the compressed WebP back into a JPG or PNG for sites that do not accept WebP.

Because the image is redrawn on a canvas, camera metadata such as EXIF and GPS location is not carried into the compressed file. To inspect what a photo contains, or to strip it without changing the quality, use the EXIF remover.

Common uses

  • Meeting exam, job, and government portal limits of 20, 50, or 100 KB for photos
  • Emailing photos without hitting attachment size limits
  • Speeding up a website or blog by slimming its images
  • Shrinking product and listing photos for online marketplaces
  • Saving storage space on your phone or in cloud backups

More tools for editing, converting, and preparing pictures are in Image Tools.

Image compression terms explained

TermWhat it means here
Lossy compressionEncoding that discards detail the eye is least likely to notice; JPEG and WebP at under 100% quality are lossy
Quality settingHow much detail the encoder keeps, from 10% to 100% on the slider; lower means a smaller file and more visible artifacts
Target file sizeA size ceiling in KB; the tool searches for the highest quality whose output fits under it
KB (kilobyte)In this tool, 1 KB = 1,024 bytes, so a 100 KB target means 102,400 bytes
Pixel dimensionsThe width and height of the image in pixels; compression does not change them, resizing does
Compression artifactsBlocky patches, smeared edges or halos that appear when quality is set too low
WebPA modern image format that supports transparency and usually produces smaller files than PNG for photos

Frequently Asked Questions

Reviewed by Raja Jahangir · Last reviewed: October 7, 2026

How do you compress an image?

To compress an image, upload the JPG, PNG, or WebP file, choose a quality level, and download the smaller version. Compression removes data the eye is least likely to notice, so a photo can often drop well over half its file size before any visible difference appears.

Can you compress a JPG without losing quality?

Not entirely - JPG uses lossy compression, so every re-save discards some data permanently. At high quality settings the loss is invisible at normal viewing size, which is why most photos compress substantially with no perceptible change. For genuinely lossless results, use PNG or WebP lossless instead.

Sources and standards

Guides for Image Compressor