Your files are never uploaded. Everything is processed in your browser and nothing is stored.

Compress Image to a Target Size

Pick a target such as 100KB or 200KB and the tool finds the highest quality that still fits under it. Your photos never leave your browser: nothing is uploaded to a server, so ID photos and scanned documents stay on your device.

Tap to choose photos (multiple allowed)
On a computer you can also drag and drop here · JPG, PNG, WebP, GIF, BMP
No upload: processed only in this browser
Compression mode
KB
Smaller fileBetter quality

A PNG kept as PNG can only shrink by reducing its dimensions. For photos, choose JPG or WebP. Transparent areas are filled with white when saved as JPG.

Choose photos and tap Compress. You'll see the size before and after for each file.

    Common file size limits

    A photo straight from a modern phone is usually 2–6MB, which is far over the limit of many upload forms. Typical limits you'll run into:

    WhereTypical limitSuggested target
    US visa and DV Lottery photo (online form)240KB, JPEG, 600–1200px square240KB, after cropping to a square
    Job portals and application forms (profile photo, scanned ID)Often 100KB–2MB per imageThe stated limit, e.g. 100KB or 500KB
    Email attachments (Gmail, Outlook)About 20–25MB per message in total500KB–1MB per photo when sending many
    Blog, CMS and online store imagesNo hard limit, but heavy images slow pages down100–300KB, longest side 1920px or less
    Forum and marketplace uploadsOften 1–10MB1MB keeps photos sharp and fast

    Limits change, so always check the exact number on the site you're uploading to. Many forms reject a file that is even one byte over, which is why this tool aims slightly below the target.

    How target-size compression works

    JPG and WebP get smaller as their "quality" setting goes down. This tool runs a binary search between quality 40 and 92 to find the highest quality that stays under your target, testing seven times so the result lands close to the limit.

    If even quality 40 is too large, it reduces the pixel dimensions instead of lowering quality further. Very low quality causes visible blocky artifacts, while a slightly smaller image is hard to notice on screen. Each result shows the final dimensions and quality used.

    Approximate results for a 12-megapixel phone photo saved as JPG. Results vary a lot with content (landscape, portrait, text).
    TargetApproximate dimensionsGood for
    50–100KBAbout 800–1300pxProfile photos, application forms, thumbnails
    200–300KBAbout 1600–2000pxDocument uploads, blog posts
    500KB–1MBClose to the original sizeEmail, high-quality web images

    JPG or WebP?

    At the same visual quality, WebP files are typically 25–35% smaller than JPG, so WebP is a good choice for images shown on websites. Government portals, job sites, older software and many print shops still only accept JPG, so use JPG for anything you submit.

    PNG is lossless and has no quality setting; a photo saved as PNG is several times larger than the same photo as JPG. Unless it's a screenshot or a graphic with sharp text, converting to JPG is the most reliable way to save space. To change the format only, use the image converter; to hit exact pixel dimensions, use resize image.

    Frequently asked questions

    Are my files uploaded?

    No. Compression runs inside your phone's or computer's browser using the built-in canvas feature. Your photos are never sent to or stored on a server. You can even disconnect from the internet after the page loads and it keeps working (only the ZIP download needs a connection the first time).

    Does compressing remove location data (EXIF)?

    Yes. Newly saved files contain no EXIF metadata such as GPS location or camera model. Portrait photos are rotated correctly before saving, so they won't end up sideways. A file marked "left unchanged" (already under the target) is the original, so its metadata is still there.

    Does it work with iPhone photos (HEIC)?

    When you pick photos on an iPhone, iOS usually converts them to JPEG automatically, so they compress normally. A .heic file copied to a computer may not open in every browser; in that case export it as JPEG from the Photos app, or set Settings > Camera > Formats to "Most Compatible".

    Why is the result a bit smaller than my target?

    File size moves in steps as quality changes, and the tool picks the highest quality that does not exceed the target, so results usually land at 90–100% of it. Some sites count 1KB as 1,000 bytes and others as 1,024, so the tool uses the stricter one (100KB = 100,000 bytes). Sizes are displayed the way Windows File Explorer shows them (1KB = 1,024 bytes), so a 100KB target may read as about 97KB.

    What happens with very large photos?

    Photos are processed one at a time to protect your device's memory. If one is too big for the browser (about 16.7 megapixels on iPhone, iPad and Mac Safari, 50 megapixels elsewhere), it is scaled down to a size the browser can handle first, and the result says so.