Skip to main content
UB UtilBayHQ

Image Compressor & Resizer

Compress, resize, and convert PNG, JPEG, and WebP images 100% locally in your browser with zero server uploads.

100% Client-Side • Zero Server Uploads • Updated

Drop a PNG, JPEG, or WebP image here

100% private — your image is processed locally and never uploaded.

80%

Original Size

—

Compressed Size

—

Space Saved

—

Dimensions

—

How to Compress & Resize Images Locally

Large images slow down websites, fail email attachment limits, and hurt Core Web Vitals. Use this free client-side Image Compressor & Resizer to shrink photos in four steps:

  1. Drag and drop a PNG, JPEG, or WebP file—or click Choose Image.
  2. Select your target Output Format (WebP offers the smallest size for web pages) and adjust the Quality slider.
  3. Optionally set Max Width or Max Height in pixels; aspect ratio is preserved automatically without distortion.
  4. Review the compressed size and savings percentage, then click Download Image.

Client-Side Compression Logic

This tool decodes your image directly in browser memory, draws it onto an offscreen HTML5 <canvas> at the target dimensions, and encodes the result using canvas.toBlob(). When converting transparent PNG or WebP images to JPEG, a clean white background is applied automatically so transparent areas do not turn black.

Zero-Upload Image Privacy

Unlike traditional online compressors that upload your photos to remote servers, every pixel is processed locally on your device. Personal documents, product prototypes, and client assets never leave your browser tab.

Frequently Asked Questions

Are my photos uploaded to a server?

No. Compression and resizing happen 100% inside your browser using the HTML5 Canvas API. Your images never leave your device.

Which output format gives the smallest file size?

WebP typically produces 25–35% smaller files than JPEG at the same visual quality and supports transparency like PNG.

Why does PNG ignore the quality slider?

PNG is a lossless format, so browsers ignore lossy quality settings for PNG. To shrink PNGs significantly, switch the output format to WebP or JPEG or reduce the dimensions.