Smart Image Compressor & WebP Studio
The Beje Smart Image Compressor & WebP Studio compresses JPEG, PNG, WebP, and GIF images in bulk, converts them to JPEG, PNG, or WebP through the Canvas API, and shows the before-and-after byte size for each file. It runs 100% client-side, so your images are decoded and re-encoded on your device and never uploaded or logged.
Your images are never uploaded. Each file is decoded into a canvas in this tab and re-encoded there, so photos and logos stay on your machine.
Compression controls
Pick a target format and a size, set the quality, then add your images. Every image is re-encoded each time a setting changes, so the sizes you see stay honest.
WebP is usually the smallest and still keeps transparency. JPEG has no transparency, and PNG is lossless, so the quality slider does nothing to it.
Resizing is where the biggest savings come from. Aspect ratio is always preserved and images are never scaled up.
Leave a bound blank to ignore it. The image is scaled to fit inside whichever bounds you set.
Drop JPEG, PNG, WebP, or GIF files here
or
Up to 20 MB per file. An animated GIF is compressed from its first frame, since the canvas encoder writes a single image.
Preview and results
Drag the handle to compare the original against the compressed image. Select any file in the list below to load it here.
Add an image and select it to compare the two versions.
No images queued yet.
Getting the best result
Choosing settings
- For photographs, WebP at 75 to 85 percent quality usually matches JPEG at a smaller size.
- Keep PNG for logos and screenshots with sharp edges or transparency. Switching a PNG to WebP is the reliable way to shrink it.
- Re-encoding is lossy, so compress from the original each time. Re-compressing an already compressed file stacks the damage.
- The ZIP contains every compressed file at once. If a browser blocks the archive script, the files download one by one instead.
- Only your settings are remembered: the format, quality, and dimension option. Images are never saved.
Image Format and Batch Reference
The studio accepts four input formats and writes three output formats. The table states what each format is good for, and the list records the batch limits the page enforces.
| Format | Input | Output | Best for |
|---|---|---|---|
| JPEG | Yes | Yes | Photographs and gradients; the quality slider applies |
| PNG | Yes | Yes | Lossless images, flat graphics, logos, and screenshots |
| WebP | Yes | Yes | Smallest file at a similar visual quality |
| GIF | Yes | No | Accepted as an input and re-encoded to the chosen output format |
- Batch limit: up to 60 files at once.
- File limit: up to 20 MB per image.
- Output quality is set by one slider; PNG is lossless, so the quality setting does not change it.
- Re-encoding does not guarantee that the original metadata is preserved, so do not treat it as a metadata scrubber.
- All decoding and encoding uses the browser Canvas API; no image is uploaded to a server.
How to Use the Smart Image Compressor & WebP Studio
Add a batch, set one quality level, and compare every result against its original before downloading.
-
Add images
Choose JPEG, PNG, WebP, or GIF files. The queue shows each file with its original size.
-
Set the output
Pick the target format, choose a dimensions mode (percentage or max width and height), and move the quality slider.
-
Compress
Press Compress. Each file is decoded, resized, and re-encoded in the tab, and the result appears beside its original.
-
Compare before you keep
Check the preview and the before and after sizes. A file that got larger is shown as larger rather than hidden.
-
Download
Download a single result, or Download all (ZIP) to get the batch in one archive. Clear all empties the queue and its results.
Why Use This Tool?
Uploading a folder of client images to a compression site is a needless disclosure. The Canvas API can do the same work in the tab.
- Decoding, resizing, and re-encoding happen with the Canvas API on your device. No image is uploaded.
- The size comparison is measured from the actual output blob, not estimated from the slider position.
- The ZIP is assembled in the browser by a client-side library. If that library fails to load, the page falls back to downloading the files one by one.
- Saved settings are local preferences, and Clear saved settings removes them.
- The queue keeps every original in memory until you clear it, so a result can be compared, discarded, or downloaded without touching the source file.
Related Beje tools: Smart Image & Favicon Studio.
The queue is held in memory only. Reloading the page clears it, so download the results you need before you leave.
Frequently Asked Questions
Does compression always make a file smaller?
No. Re-encoding can produce a larger file, especially when the original was already optimized or the quality is set high. The page shows the real before and after size so you can discard a larger result.
Are my images uploaded?
No. The files are read in the tab and processed with the Canvas API. Beje has no upload endpoint for this tool.
What happens to animated GIFs?
The Canvas API re-encodes a single frame, so an animated GIF is treated as a still image and loses its animation. Keep the original if the animation matters.
Which format should I choose?
JPEG is small for photos, PNG is lossless and better for flat graphics, and WebP usually gives the smallest file at a similar quality. The page lets you compare the result before you download.
Does it remove metadata?
Re-encoding through the Canvas API does not preserve the original metadata in the new file. That usually removes camera and location data, but do not rely on it as a guarantee for every format.
Is there a batch limit?
No fixed count. Large batches and high-resolution images consume memory, so a phone may need smaller batches or a lower resize setting.
No questions match that search. Try a shorter word.