Images & SVG
Image Compressor
Shrink JPEG, PNG, and WebP images and compare the result side by side before you download. Everything is processed in your browser — your image is never uploaded.
Choose an image
Stays on your deviceChoose or drop an image to compress it locally.
Compression settings
Lower quality means a smaller file. 75–85% is usually visually identical.
Advanced options
Leave blank to keep the original dimensions. Aspect ratio is preserved.
JPEG has no transparency, so transparent pixels are filled with this color.
Result
LiveHow it works
The image is decoded in the browser and redrawn to an offscreen
<canvas>, then re-encoded at your chosen quality with the
browser’s own encoder. The result you compare and download is produced locally,
so no image data ever leaves your device. Formats the browser cannot encode are
reported with a friendly message instead of failing silently.
Practical uses
Re-encode a JPEG, PNG or WebP image in the browser at a chosen quality and optional maximum width, then compare and download the result.
Common ways to use it
- Shrink a large JPEG before uploading it.
- Export a screenshot as WebP at a chosen quality.
- Cap a photo at 1920 pixels wide while keeping its aspect ratio.
- Compare the compressed size against the original before downloading.
A 4.2 MB 4000 × 3000 JPEG planned for WebP at 80% and 1920 px wide
Input
File: beach.jpg, image/jpeg, 4200000 bytes Format: WebP Quality: 80 Max width: 1920 px
Output
Output name: beach.webp Quality fraction: 0.8 (lossy) Scaled size: 1920 × 1440 (was 4000 × 3000)
Verified with the tool's pure planning and scaling functions. The exact compressed byte count is produced by the browser encoder at export time and cannot be predicted in advance.
Options that matter
- Output format — WebP (default), JPEG, or lossless PNG. The quality slider is disabled for PNG.
- Quality — 10 to 100, default 80, applied only to WebP and JPEG. Presets are High 92, Balanced 80, Small 60, Tiny 40.
- Max width in pixels — optional cap of 16 to 12000; aspect ratio is preserved and images are never enlarged.
- Background for transparency — shown for JPEG only; transparent pixels are filled with this hex colour.
- Drag to compare, Download compressed image, Copy summary.
Things to keep in mind
- JPEG has no alpha channel, so transparency is flattened to the chosen background colour.
- Output is limited to WebP, JPEG, or PNG; an uploaded GIF, BMP, or other format is re-encoded into one of those three.
- SVG input is rejected because a vector graphic cannot be re-encoded as a raster.
- Files over 30 MB are refused, and an animated image is drawn as a single canvas frame so animation is not preserved.
- Encoding happens on a local canvas, so the exact compressed size depends on the browser and cannot be predicted in advance.