Image & Video Compressor

What Is Image Compression?

The Image Compressor shrinks the file size of your photos and graphics right in the browser, with no upload required. Drag and drop an image (or click to select one), choose a quality level and an output format — JPEG or the more efficient WebP — and optionally cap the maximum width to resize large images. The tool re-encodes the picture using the HTML canvas and shows a before-and-after preview with the original and compressed sizes and the percentage saved, then lets you download the optimized file. Because everything runs locally, your images never leave your device, making it fast and completely private.

Image compression reduces file size by removing redundant or less perceptible data from an image. Smaller images load faster, consume less bandwidth, and improve Core Web Vitals scores — directly impacting SEO and user experience. This tool supports both lossy compression (JPEG/WebP, where some quality is traded for smaller size) and lossless compression (PNG, where all data is preserved). It also handles video compression, reducing clip size by re-encoding at a lower bitrate.

How to Use the Image Compressor

  1. Drag an image onto the drop zone or click to choose a file.
  2. Adjust the quality slider, pick JPEG or WebP, and optionally set a maximum width.
  3. Compare the before and after sizes, then download the compressed image.

Use Cases

  • Compressing product images before uploading to an e-commerce site to improve page load speed.
  • Reducing photo sizes for email attachments, portfolio uploads or social media posts.
  • Compressing a video clip to share via messaging apps with file size limits.
  • Optimising images for a website to improve Google PageSpeed scores and Core Web Vitals.

How Image and Video Compression Works

For images, the tool draws the original image on an off-screen HTML Canvas and then exports it using canvas.toBlob() with a quality parameter between 0 and 1. The browser's own codec (JPEG or WebP encoder) applies DCT-based lossy compression. PNG is lossless: the canvas PNG encoder applies DEFLATE compression without quality loss.

For video, the tool uses the MediaRecorder API with the VP8 or H.264 codec, targeting a bitrate calculated as a fraction of the source file's bitrate (file size divided by duration). This ensures consistent size reduction regardless of resolution. The resulting file is a Blob that can be downloaded directly.

Benefits and Use Cases

  • Reduce image weight for faster websites, emails and uploads without quality loss you can see.
  • Convert to WebP for smaller files, or resize oversized photos in one step.
  • Runs 100% in your browser — your images are never uploaded to a server.

Privacy

All compression happens entirely in your browser. Images and videos you upload are never sent to our servers — they are processed by your device's own CPU and GPU. Sensitive photos and confidential videos remain completely private.

FAQ

How are images compressed?

They are redrawn onto an HTML canvas and re-encoded as JPEG or WebP at the quality you choose — entirely in your browser.

Are my images uploaded?

No. Compression happens locally; your images never leave your device.

Which formats can I export?

JPEG and WebP. WebP usually gives smaller files at the same visual quality.

Should I use JPEG or WebP for web images?

WebP typically achieves 25-35% smaller file sizes than JPEG at the same visual quality. All modern browsers support WebP. Choose WebP for new web projects; use JPEG only when you need maximum compatibility with very old software or when a service requires JPEG specifically.