Image Compressor & Converter - JPG, PNG, WebP
Compress a photo or convert it between JPG, PNG, and WebP without uploading it anywhere.
Maintained by Hirantha Sandaruwan Lakshan. Updated 31 July 2026.
About this tool
Pick a quality level, optionally cap the longest side, and download - processing runs on a background thread in your browser using the same canvas APIs a native app would use.
How it works
The image is decoded and drawn to an off-screen canvas, respecting the orientation stored in the file's metadata so portrait phone photos don't come out sideways.
JPEG and WebP are lossy formats - lowering the quality setting throws away visual detail your eye is less likely to notice, at the cost of it becoming visible on close inspection or heavy cropping. PNG is lossless, so its size only changes from resizing or switching format.
If your browser can't encode WebP natively, a small WebAssembly encoder loads automatically as a fallback - detected with a real encode test, not by checking which browser you're using.
Worked examples
A phone photo for email
Most phone cameras produce multi-megabyte JPEGs. Compressing at a mid quality setting and capping the longest side to 1920px typically gets it under the size most email providers reject as an attachment.
A screenshot for a bug report
PNG keeps screenshot text and UI edges sharp. If the file feels too large, converting to WebP at a high quality setting usually shrinks it noticeably without visible loss, since WebP handles flat colour and text better than JPEG.
A transparent PNG for a slide deck
Converting a PNG with transparency to JPEG fills the transparent areas white automatically, so the export doesn't come out with a black background - a common failure mode in cheaper tools.
Which output format to pick
| Format | Lossy | Transparency | Best for |
|---|---|---|---|
| JPEG | Yes | No - filled white | Photographs, camera images, anything without transparency |
| PNG | No | Yes | Screenshots, logos, line art, images with sharp edges or flat colour |
| WebP | Yes | Yes | Almost everything on the web - smaller than both at similar quality |
| Keep original | Unchanged | Unchanged | Resizing or recompressing without switching format |
Frequently asked questions
Is my photo uploaded anywhere?
No. The file is read directly from your device, decoded and re-encoded in your browser tab, and never leaves it.
Will my portrait photo come out sideways?
No - the tool reads the orientation tag stored in the photo and corrects it before drawing, a step a surprising number of free compressors skip.
What's the difference between JPEG and WebP?
Both are lossy, but WebP generally holds more detail at the same file size, especially for photos with flat colour or fine text. JPEG has near-universal compatibility; WebP is supported by every current browser but occasionally trips up older software.
Why did my PNG get bigger instead of smaller?
PNG is lossless, so if the source is already well-compressed, re-encoding it can add a few bytes of overhead. The tool detects this and keeps the original file rather than handing you a larger one.
Does it keep my photo's location and camera data (EXIF)?
Re-encoding through canvas strips EXIF metadata, including GPS location, automatically as a side effect.
Does it support HEIC (iPhone photos)?
Not for conversion yet - the tool detects HEIC files and tells you directly rather than failing silently. A dedicated HEIC to JPG converter is planned.
Is there a file size or batch limit?
You can queue multiple images at once. The practical limit is your device's memory, not an arbitrary cap - very large batches on an older phone may need to be split up.
What quality setting should I use?
82% is the default and is close to the point where lowering it further starts to show. Around 70% is still respectable for web use; below about 50% the artefacts become obvious.
Why does the same quality setting save more on one photo than another?
JPEG compresses smooth areas far better than detailed ones. A photo of a clear sky shrinks dramatically; dense foliage or film grain barely compresses at all.
Sources & references
Updated Jul 31, 2026