Image

Image Compressor

Shrink photos and screenshots for the web with JPEG or WebP quality control, optional max-side downscaling, and live before/after file size stats. Export PNG when you need lossless transparency (often larger for photos). Everything runs locally — your image never uploads to DroidXP.

Ad placement — top banner
Drop image here or click to browse — PNG, JPG, WebP, …
No image selected

JPEG flattens transparency on white. WebP may be unavailable in some browsers.

Downscales large images proportionally before compression (helps weight and speed).

82%

Disabled for PNG — PNG is lossless and ignores this slider.

Ad placement — mid rectangle

What does this tool do?

It decodes your image in the browser, draws it to a canvas, and re-encodes it with a smaller file size when you choose a lossy format (JPEG or WebP) and a sensible quality level. You can also limit the longest side to downscale huge camera photos before encoding — that often matters more than tweaking quality alone.

JPEG vs WebP vs PNG

JPEG is ideal for photographs and complex gradients; it does not support transparency, so alpha is composited on white. WebP often yields smaller files at similar visual quality when your browser supports encoding it. PNG preserves sharp edges and transparency but is usually larger for photo-like content — re-encoded PNG can even exceed the original file size.

Why is my file not smaller?

If the source is already heavily compressed, there is little left to remove. PNG output is lossless. Very small sources may show no savings or a larger output — try JPEG/WebP or reduce dimensions first.

Metadata and color

Canvas export produces a new bitmap: EXIF, location data, and ICC profiles are not carried over. Colors are handled in the browser’s typical sRGB pipeline — not a substitute for print CMYK workflows.

Privacy

Encoding runs entirely on your device. DroidXP does not receive your file.

Related tools

Use the Image Resizer when you need exact pixel width/height, or the Palette Extractor to sample colors from the same image.

How to use this tool

  1. Step 1: Upload an image (drag-and-drop or file picker).
  2. Step 2: Choose JPEG or WebP, adjust quality, and optionally set a max side for downscaling.
  3. Step 3: Check the size stats, then download the compressed file.
  4. Step 4: For huge batches or server-side pipelines, prefer desktop apps or CLI tools — browsers have memory limits.

Frequently Asked Questions

Does DroidXP upload my image?

No. Decoding and encoding happen in your browser. Only you get the downloaded file.

Why does JPEG add a white background?

JPEG has no alpha channel. Transparent areas are flattened on white so the file is valid.

Why is WebP disabled?

Some browsers or modes do not support WebP encoding from a canvas. Use JPEG or PNG instead.

Why did PNG make the file bigger?

PNG is lossless. Re-encoding can increase size versus an already-optimized PNG or a lossy JPEG source. Use JPEG or WebP for smaller photos.

Does compression run multiple passes?

No. This is a single encode with your chosen settings — not iterative optimization like some specialized compressors.

What is the maximum image size?

Output is clamped so the longest side does not exceed 8192 px to reduce the risk of GPU memory errors.

Are EXIF and camera metadata preserved?

No. Canvas output is a new image without embedded EXIF. Striping metadata can be a privacy benefit for sharing.

What localStorage keys are used?

Keys are prefixed with droidxp-ic-: format, quality, and max-side preset. Your image bytes are not stored. Clear removes them.

Can I compress animated GIFs?

Usually only the first frame is decoded. Use a GIF-specific tool for animation-aware compression.

Is this safe for confidential images?

Follow your policy. Nothing is sent to DroidXP, but screen capture and extensions can still expose content.

Can I use this offline?

After the page is cached, it can work offline. No network is required to compress or download.