Compress an image to a target file size, without uploading it
Set the size the file has to come in under — 500 KB for a fast page, 12 MB for an eBay photo — and the tool finds the highest quality that still fits. It runs in your own browser, so the image is never sent to a server.
- No upload — runs in your browser
- Free, no account
- JPEG, PNG, WebP, TIFF, GIF, BMP, SVG, AVIF, HEIC
- Up to 100 MB per file
Drop image here or click to browse
Accepted: JPEG, PNG, WebP, TIFF, GIF, BMP, SVG, AVIF, HEIC · Single image only
Nothing leaves this device.
The image is decoded and compressed by your browser. No upload, no server copy, no expiry timer.
Pick the size the file has to come in under. It is applied the moment your image loads.
Practical targets
Platform limits
Custom
How to compress an image to a target size
Drop your image in
It decodes on your device. The original and the compressed version sit one toggle apart, so you can see what the compression cost before you download anything.
Set the size it has to fit
Pick one of the common targets or type your own in KB. Auto mode then tries up to 12 quality levels and keeps the best one that still comes in under your number.
Download the compressed file
The result bar shows the new size and how much smaller it is. Keep the original format, or export as JPEG, WebP or PNG.
Common target file sizes
Two of these are published platform limits, read from the same rules the marketplace checkers use. The rest are practical targets for page speed, email and uploading — useful numbers, not rules anyone enforces.
| Target | File size | Why this number | Apply this target |
|---|---|---|---|
Practical targets Fast-loading page | 300 KB | A practical budget, not a rule. Images are usually the heaviest thing on a page, and keeping each one under this is what makes a product page open quickly on a phone connection. | |
Practical targets Web hero image | 500 KB | A practical target for the one large image at the top of a page, where a little more detail is worth a little more weight. | |
Practical targets Email attachment | 1 MB | A practical target for attachments. Most mail providers accept far more, but a 1 MB photo sends and opens without anyone waiting. | |
Practical targets Marketplace upload | 5 MB | A practical target for uploading a whole set of listing photos in one go, on a connection that is not fast. | |
Platform limits eBay listing photo | 12 MB | eBay's own limit for a listing photo: 12 MB per image. A file above it is refused at upload. Check a photo against eBay's rules | |
Platform limits Google Merchant image | 16 MB | Google Merchant Center's own limit for a product image: 16 MB per file. A larger file is not accepted into a product feed. Check an image against Google Merchant's rules |
- Practical targets
Fast-loading page
A practical budget, not a rule. Images are usually the heaviest thing on a page, and keeping each one under this is what makes a product page open quickly on a phone connection.
- File size
- 300 KB
- Practical targets
Web hero image
A practical target for the one large image at the top of a page, where a little more detail is worth a little more weight.
- File size
- 500 KB
- Practical targets
Email attachment
A practical target for attachments. Most mail providers accept far more, but a 1 MB photo sends and opens without anyone waiting.
- File size
- 1 MB
- Practical targets
Marketplace upload
A practical target for uploading a whole set of listing photos in one go, on a connection that is not fast.
- File size
- 5 MB
- Platform limits
eBay listing photo
eBay's own limit for a listing photo: 12 MB per image. A file above it is refused at upload.
Check a photo against eBay's rules- File size
- 12 MB
- Platform limits
Google Merchant image
Google Merchant Center's own limit for a product image: 16 MB per file. A larger file is not accepted into a product feed.
Check an image against Google Merchant's rules- File size
- 16 MB
What actually makes the file smaller
A file gets smaller in exactly three ways, and which one is available is decided by the format rather than by you. Knowing which lever is moving is what explains why a PNG behaves nothing like a JPEG here.
OriginalCompressed Quality — JPEG and WebP
Both formats are lossy: they discard the detail the eye is least likely to miss, and the lower the quality, the more they discard. The pixel dimensions never change. Pushed too far it shows as blocking — square edges around curves and flat patches where a gradient used to be.
Use when the image is a photograph and its dimensions are already right for where it is going.
OriginalCompressed Dimensions — PNG
PNG is lossless, so there is no quality dial to turn: every pixel is reproduced exactly. The only way to make one smaller is to store fewer pixels, which is why this tool reduces a PNG's width and height instead and tells you the dimensions it ended on.
Use when you need PNG for transparency or flat graphics — then check the result still meets any minimum dimension the destination asks for.
OriginalCompressed Format — the same picture in a smaller container
A photograph written as WebP is usually meaningfully smaller than the same photograph as JPEG at a comparable quality, and a photograph saved as PNG is often several times larger than it needs to be. Changing the container costs no visible detail at all.
Use when the destination accepts WebP, or when a photo arrived as a PNG — and confirm the format is accepted before you convert.
Picking a target that does not ruin the image
The target is a ceiling, not a goal. Auto mode looks for the highest quality that still fits under the number you set, so asking for 200 KB when 800 KB would have been accepted throws away detail for nothing. Start from the real limit of wherever the file is going, and go lower only when the page itself needs to be fast.
Most oversized files are oversized because of their dimensions, not their quality. A 6000 × 4000 phone photo dropped into a listing slot 1200 px wide carries five times the pixels anyone will ever see. Resizing it first gets the file under almost any limit without touching quality at all, and compression is what you reach for after that, not instead of it.
Compressing an already-compressed JPEG compounds the loss. Each re-encode starts from the previous one's artefacts and adds its own, so a file that has been through three tools looks worse than the same file compressed once at a lower quality. If you still have the original, compress that rather than the copy.
Keeping the original format is the safe default, but it is not always the smallest one. When the destination accepts WebP, converting the format often gets you under the limit with no visible loss at all — check what the platform actually accepts first, because not every marketplace takes it.
Formats and limits
- Input: JPEG, PNG, WebP, TIFF, GIF, BMP, SVG, AVIF, HEIC. Output: the original format, or JPEG, WebP or PNG.
- Files up to 100 MB. Auto mode re-encodes the image up to 12 times, so a very large photo takes a few seconds.
- GIFs and SVGs export as PNG; an animated GIF keeps only its first frame. A file that already fits the target is returned untouched, in its original format.
- A PNG cannot be compressed without being shrunk. The target is reached by reducing width and height, so the result holds fewer pixels than the original.
Compress image FAQ
Is my image uploaded to a server?
No. All compression happens in your browser. The image never leaves your device, and there is no copy to delete afterwards.
What image formats are supported?
Input: JPEG, PNG, WebP, TIFF, GIF, BMP, SVG, AVIF, HEIC. Output: the original format, or JPEG, WebP or PNG. Formats no browser can write — HEIC, HEIF, AVIF, BMP, TIFF, GIF and SVG — come out as PNG, and PNG is compressed by reducing dimensions rather than quality. A file that is already under your target is returned untouched instead, in its original format.
What is the maximum file size I can compress?
Files up to 100 MB. Auto mode re-encodes the image up to 12 times to find the best quality that fits, so a very large photo takes a few seconds.
How does auto mode work?
Auto mode searches for the highest quality that still produces a file at or under your target, testing up to 12 levels. You do not set the quality yourself — the slider shows what it settled on.
What does manual mode do?
Manual mode skips the search and encodes once at the value you set. For JPEG and WebP that value is quality; for PNG it is the scale factor, because a PNG's size comes off its dimensions. If the file is already under your target and you are keeping the original format, nothing is re-encoded at all and the slider is disabled.
Why does compressing a PNG change the image dimensions?
PNG is lossless — there is no quality to lower. The only way to make one smaller is to store fewer pixels, so the tool finds the largest dimensions that fit under your target and tells you what they are. If the dimensions have to stay, convert to JPEG or WebP instead.
What happens if the target size cannot be reached?
You get the smallest result the tool could produce, plus a warning with the actual size. It happens when a PNG at its minimum scale, or a JPEG at 10% quality, is still above the target. Raise the target, resize the image first, or switch to a more efficient format.
Does compression work on mobile?
Yes, on every modern mobile browser. A large photo takes longer, because the whole image is re-encoded on your own device — up to 12 times in auto mode.
Next steps
- Resize ImageCut the pixel count first — usually the cheapest way under a size limit.
- Convert Image FormatConvert to WebP or JPEG when the format, not the quality, is what costs you.
- Sharpen ImageRecover a little edge definition if compression left the photo soft.
- Brightness & ContrastFix a dark or flat photo before you compress it.
- eBay Listing Photo CheckerCheck a listing photo against eBay's dimension and file-size rules.
- Google Merchant Center Image CheckerCheck a product image against Google Merchant Center's requirements.
Get your image under the limit
No account, no upload, no watermark.