Image Compressor
Shrink image file size in your browser. Files never leave your device.
Drag & drop, paste, or click to browse
Shrinks PNG, JPG, WebP, and more
A photo straight from a phone or camera is often far larger than a web page actually needs. This tool shrinks image file size - by lowering quality, resizing, or both - entirely in your browser, so you can see exactly how much you're saving before you download anything.
How it works
Your image is drawn onto an off-screen canvas at whatever size you choose, then re-exported through canvas.toBlob() at the quality you set. Lossy formats (JPG, WebP) trade a little visual detail for a smaller file; PNG is lossless, so its size only changes if you resize the image, not the quality slider.
Quality vs resizing - which saves more?
Resizing is usually the bigger win. Halving both dimensions cuts the pixel count - and roughly the file size - to a quarter, before quality even comes into it. Lowering quality helps too, but there are diminishing returns: going from 100% to 80% quality often looks identical while saving a lot of space, but pushing much lower starts to visibly degrade the image.
When to use it
- Shrinking photos before attaching them to an email or upload form with a size limit.
- Preparing web images so pages load faster.
- Reducing storage space for a large batch of photos (one at a time).
Common mistakes
- Compressing an already heavily-compressed JPG repeatedly - quality loss compounds each time you re-save.
- Choosing PNG output for a photo when trying to shrink it - PNG's lossless nature means the quality slider won't help; WebP or JPG will compress much further.
- Compressing to JPG without noticing the image had transparency - JPG has no alpha channel, so transparent areas fill with a solid color.
Frequently asked questions
Why doesn't the quality slider change anything?
You likely have PNG selected as the output - PNG is lossless, so quality has no effect on it. Switch to WebP or JPEG for real savings.
What's the best quality setting?
80-90% is a common sweet spot - visually close to the original but meaningfully smaller. Drop lower only if file size matters more than appearance.
Will compressing reduce the image dimensions?
Only if you set a max width/height - quality alone changes file size, not pixel dimensions.
Which format compresses best?
WebP generally produces the smallest file at a given visual quality, followed by JPEG. PNG is best reserved for graphics that need to stay lossless.
Is my image uploaded anywhere?
No - compression happens entirely in your browser using the Canvas API.
Related tools
Browse the rest of the Graphics & Media tools on NeatSize.
Runs entirely in your browser - nothing you enter or upload is sent to a server.
Need it to do something else? Request a tool