Compress an Image
Re-encode any image as JPEG or WebP to cut its file size. Runs entirely in your browser, so your data never leaves your device.
Runs on your device, nothing uploaded
Drop images anywhere on this page
or paste with Ctrl / ⌘ + V ·
Accepts any image · several at once
Your images never leave this tab
Compress an Image is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, 200 photos straight off a camera means 1.6 GB uploaded, a wait in somebody's queue, and 240 MB downloaded again. Here it means 0 bytes up and 0 bytes down.
- No upload
- No file size limit
- Works offline once loaded
- Nothing stored or logged
How to use Compress an Image
- 1. Drop in the image. Add a photo or a batch of them. It is compressed straight away at the default quality, and the size saving appears under the picture.
- 2. Choose JPEG or WebP. JPEG works everywhere; WebP is usually a third smaller at the same look and is supported by every modern browser.
- 3. Limit by quality or by file size. With Quality, move the slider and the new size updates a moment after you let go. With Target size, type a size or tap a preset such as 100 KB or 1 MB, and the tool finds the best quality that fits, shrinking the picture only if it has to.
- 4. Compare and download. Drag the compare divider to check for artifacts, then click Download. Several files download together as one ZIP.
When to use Compress an Image
Compress an Image re-encodes any picture as JPEG or WebP at a quality level you control, cutting its file size while reporting how much was saved. It targets the everyday problem of images being too large for an email, upload form or page budget.
- Attaching photos to an email. A mail server rejects an attachment because a batch of full-resolution photos pushed the message over its size limit. Compressing each one with WebP at a moderate quality gets them under the cap.
- Speeding up a portfolio site. A photography portfolio loads slowly on mobile because every image is uncompressed straight from the camera. Running each through at 70 to 80 percent quality trims load time without visible loss.
- Fitting a marketplace listing limit. An online marketplace caps product photo uploads at a fixed file size, and a seller's photos come in over that limit. Compressing them here brings each file back under the threshold.
Examples
Shrink a photo
Input
photo.png + JPEG, quality 70
Output
photo.jpg: smaller, with % saved reported
About the Compress an Image tool
Compress an Image does its work locally, right in the browser. Re-encode any image as JPEG or WebP to cut its file size. There is no upload step, no queue and no account, and your data never travels over the network.
It belongs to the Image Tools collection on EditSafely, a set of 207 small, focused Image utilities that share the same instant, private workspace.
You can shape the output with 5 settings, including Output format, Limit by, Quality (%) and Smallest file size (KB); the result is redone automatically when you change one. The finished file is put together in browser memory and saved with the Download button, so it never touches a server on the way to your disk. A worked example further down the page shows exactly what the tool produces for a real input.
Running locally also makes the tool fast and dependable: the image is read straight from your device the moment you drop it, there is no server outage that can take it down mid-task, and private pictures stay private.
Frequently asked questions
Is Compress an Image free to use?
Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.
Are my files uploaded to a server?
Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.
Which files does Compress an Image accept?
It accepts images in any common format (PNG, JPG, WebP, GIF and more). There is no file size cap imposed by a server; very large files are limited only by your device's memory.
Do I need to sign up or install anything?
No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.
How do I save the output?
Click the Download button once the result is ready. The file is built in your browser's memory and handed straight to your downloads folder, without passing through a server.
Related tools
All Image Tools →Increase Image File Size (KB)
Make a photo at least the KB size an upload form asks for, without changing how it looks.
Recompress a JPG
Re-encode a JPG at a new quality to shrink its file size.
Convert Image to Base64
Encode any image file (PNG, JPG, WebP, GIF…) as a Base64 string.
Pad an Image
Add equal padding around an image, transparent or any color.