OfflaneAI

Compress images —
smaller files, same look, no upload

Drop up to 50 photos, pick a quality and size, download them one by one or as a ZIP. Compression runs in your browser, so a 100 MB batch takes seconds and nothing is sent anywhere.

  • 🗜️ 50–90% smaller files
  • 📦 Batch + ZIP download
  • 🔒 Files stay on your device
  • 💸 Free, no limits

Loading the tool… (JavaScript required)

How much smaller will my images get?

Phone photos (3–8 MB) typically shrink to 300–800 KB at quality 80% with no visible change; resizing to 1920 px cuts another 60–75%. PNG screenshots shrink most when converted to WebP or JPG.

Will the quality drop?

At 80% most people cannot tell the difference on screen; 60–70% is fine for thumbnails and chat. Text and sharp lines keep best in PNG or WebP; photos in JPG or WebP. Use the before/after sizes in the list to judge.

Can I compress HEIC photos from an iPhone?

Yes — HEIC is decoded in the browser and saved as JPG or WebP, which every site and app accepts. Transparent PNGs keep their transparency unless you choose JPG.

How to compress images

  1. Add the files. Drop up to 50 images on the upload area, click it to choose them, or paste a picture from the clipboard with Ctrl+V. JPG, PNG, WebP and HEIC are the usual inputs.
  2. Choose how to control the size. Leave “Target file size” on “Use quality slider” to set the quality yourself, or pick a limit such as “Under 200 KB” and let the tool find the settings.
  3. Set “Resize” if the pictures are larger than you need. The value is the longest side in pixels. “Keep original size” changes nothing.
  4. Pick the “Output format”. “Auto (keep type)” is the safe choice; WebP gives the smallest files for websites.
  5. Press “Compress image”. With several files the button reads “Compress 12 images”. Each file in the list then shows its old size, new size, saving in percent and new pixel dimensions.
  6. Download. Save files one by one, or press “Download all (12) as ZIP”. To try other settings, change them and press the button again: the whole list is recompressed from the originals.

Three things that make an image file smaller

Fewer pixels

A 4000 px phone photo holds about four times as many pixels as the same photo at 1920 px. Nothing else saves as much, and on a screen the smaller version looks the same, because most screens cannot show 4000 px anyway.

Lossy quality

JPG and WebP throw away fine detail the eye barely notices. The lower the quality, the more they discard. Flat areas such as sky survive well; sharp edges and small text show the damage first, as faint smudges and blocks.

A more efficient format

WebP stores the same picture in fewer bytes than JPG. PNG is lossless: it keeps every pixel exactly, which is right for screenshots and logos and wasteful for photos.

The four controls

Target file size

Options: “Use quality slider”, “Under 50 KB”, “Under 100 KB”, “Under 200 KB”, “Under 500 KB”, “Under 1 MB” and “Custom…”. Custom opens a box where you type the limit in KB, from 5 to 50,000. While a target is selected the quality slider is switched off, because the tool chooses the quality for you.

Quality

The slider runs from 30% to 95% and starts at 80%. It applies to JPG and WebP output. It has no effect on PNG, which is always lossless.

Resize

“Keep original size”, “Max 3840 px (4K)”, “Max 2560 px”, “Max 1920 px (Full HD)”, “Max 1280 px” or “Max 800 px”. The number caps the longest side; the other side follows in proportion. Images that are already smaller are never enlarged.

Output format

  • Auto (keep type): PNG stays PNG, WebP stays WebP, and everything else, including HEIC, GIF and BMP, is saved as JPG.
  • JPG: the most widely accepted format. Transparent areas are filled with white.
  • WebP: 25–35% smaller than JPG and keeps transparency.
  • PNG: lossless. Only resizing makes a PNG smaller here.

How the target size is reached

For each file the tool first tries 95% quality. If that already fits, it stops there. Otherwise it searches between 95% and 30% for the highest quality that fits under the limit, so the result usually lands just below your number rather than far under it.

If even about 30% is too large, the picture is made 15% smaller on each side and the search starts again. This repeats up to 12 times. In the file list you can see the final pixel size next to the new file size.

Three details matter in practice:

  • Quality drops before dimensions do. A 4000 px photo squeezed under 200 KB at full size looks worse than the same photo at 1920 px with a higher quality. Choose a “Resize” value together with the target and the result is cleaner.
  • PNG cannot be used with a target. A lossless format cannot be steered to a size, so PNG files and PNG output are saved as JPG when a target is set, or as WebP if you chose WebP.
  • 1 KB is counted as 1,024 bytes. “Under 100 KB” therefore allows up to 102,400 bytes.

Settings by job

JobTarget file sizeQualityResizeOutput format
Photos for emailUse quality slider80%Max 1920 px (Full HD)Auto
Blog or website imagesUse quality slider75–80%Max 1920 px or Max 1280 pxWebP
Marketplace or shop listingUnder 200 KB or Under 500 KBset automaticallyMax 1920 pxJPG
Upload form with a KB limitThe matching limit or Custom…set automaticallyMax 1280 px or Max 800 pxJPG
Chat pictures and thumbnailsUse quality slider60–70%Max 1280 pxAuto
Screenshot with textUse quality slider85–90%Keep original sizeWebP
Logo with transparencyUse quality slider85–90%Max 800 pxWebP
Archive of phone photosUse quality slider85–90%Keep original sizeAuto

What Auto does with each file type

SourceSaved asNote
JPGJPGQuality slider applies
PNGPNGStays lossless; shrinks noticeably only when “Resize” is set
WebPWebPQuality slider applies
HEIC or HEIF from a phoneJPGOpens everywhere afterwards
GIFJPGFirst frame only; animation is lost
BMPJPGUsually a very large saving
Any file, with a target sizeJPGOr WebP if you selected WebP

Reading the file list

Each row shows the original size, the new size in bold, the saving in percent and the output dimensions, for example 1920×1440. The line next to the buttons adds up the whole batch: total before, total after and “saved 78%”.

A row with −0% means the file could not be made smaller with the current settings. When re-encoding in the same format would produce a larger file, the tool keeps your original bytes instead of handing back a bigger copy. This is common with PNG in Auto and with JPGs that were already compressed hard.

Downloads are named after the source with -compressed added, and the ZIP is called compressed-images.zip.

Smaller files without visible damage

Resize first, then lower quality

For a picture that will be viewed on a screen, 1920 px at 80% beats 4000 px at 40% in both size and appearance. Reach for the quality slider only after the dimensions are sensible.

Crop away what you do not need

Empty margins cost bytes. Cut them off with the image cropper before compressing; this matters most for the smallest targets.

Treat text and line art differently

Screenshots, scans of documents and diagrams suffer at low JPG quality. Keep them at 85% or more, or use WebP. For exact social-media or pixel sizes, prepare the picture in the image resizer and compress the result.

Compress once, from the original

Every lossy save removes a little more. Keep the original and produce each smaller version from it, not from an earlier compressed copy.

What this compressor does not do

  • No colour reduction for PNG. Dedicated PNG optimisers shrink files by cutting the palette to 256 colours. This tool does not; for PNG it offers resizing, or WebP as the output.
  • No metadata in the output. Camera data, date and GPS position are not copied to a recompressed file. The photo is rotated the right way up first, so it still displays correctly. Good for privacy, bad if you need the capture date.
  • No animation. An animated GIF or WebP is reduced to its first frame.
  • No PDF. Use the PDF compressor for documents.
  • No format change beyond JPG, WebP and PNG. For AVIF output or other conversions use the image converter.

Where the work is done

There is no AI model in this tool and nothing to download. Each picture is decoded, scaled and re-encoded by the image encoder built into your browser. The only extra code is a HEIC decoder, fetched the first time a HEIC photo is processed. Because every browser ships its own encoder, the same photo at 80% can differ by a few kilobytes between Chrome, Firefox and Safari. Files are read from your disk and written back to it; they are not sent to a server, so the batch size is limited by your device’s memory, not by an upload cap.

Troubleshooting file sizes

My PNG is exactly the same size

PNG is lossless and Auto keeps it as PNG. Set “Resize”, or switch “Output format” to WebP, or to JPG if the picture has no transparency.

The form still says the file is too large

Some upload forms count 1 KB as 1,000 bytes, so a file the list shows as 100 KB can be a little over their limit. Choose “Custom…” and type a value about 5% lower, for example 95.

The background turned white

JPG has no transparency. Select WebP as the output format, or PNG without a target size.

The result is over the target

This happens only with extreme targets, such as 5 KB for a detailed photo: after 12 size reductions the tool stops. Crop the picture or pick “Max 800 px” and run it again.

Letters look smudged

The quality is too low for text. Raise the slider, choose a larger target, or reduce the pixel size instead of the quality.

WebP is greyed out

Your browser cannot write WebP files. Use JPG, or open the page in a current version of Chrome, Edge or Firefox.