🎞️

Image & Video Compressor

Compress, resize, crop, rotate and trim images and videos in your browser. Files are processed on your device and are never uploaded.

πŸ“
Drop images or videos here, or click to choose JPEG, PNG, WebP, AVIF, GIF, BMP · MP4, MOV, WebM, MKV · several files at once · paste an image with Ctrl/⌘+V

πŸ“– Guide: Image optimisation for the web

About the Image & Video Compressor

This tool shrinks photos, screenshots and video clips without sending them anywhere. Images are decoded, cropped, rotated and resampled on a canvas, then re-encoded as JPEG, WebP, AVIF or PNG. Videos are decoded and re-encoded frame by frame with the video codecs built into your browser (WebCodecs), which usually use your device's hardware encoder, so a clip is processed faster than it plays.

Three settings do most of the work. Resizing removes pixels nobody will see: a 4000-pixel photo shown in a 1200-pixel column is carrying roughly ten times the data it needs. Format decides how the remaining pixels are stored: WebP and AVIF are typically much smaller than JPEG at the same visible quality. Quality, or bitrate for video, sets how much detail the encoder may discard. If you need a file under a specific limit, enter a target size and the tool searches for the highest quality that fits, reducing dimensions only when quality alone is not enough.

Questions

Are my files uploaded?

No. Every step runs in this browser tab using canvas, WebCodecs and MediaRecorder. You can load the page, disconnect from the network and it keeps working.

How does PNG get smaller if PNG is lossless?

Choose a colour count under "PNG colours". The tool picks the best palette for the picture with a median-cut search, optionally dithers to hide banding, and writes an indexed PNG that stores one small palette index per pixel in place of four bytes. Screenshots, logos and illustrations often shrink by 60 to 80 percent this way.

Which video formats can I export?

MP4 and WebM. The codec list shows what your browser can encode: usually H.264, and VP9, AV1 or H.265 where the device supports them. H.264 in MP4 plays almost everywhere; VP9 and AV1 give smaller files at the same quality.

Why did my video take as long as its running time?

Browsers without WebCodecs, or files the fast path cannot decode, fall back to recording the video as it plays. That path works in real time, so keep the tab visible until it finishes.

Is photo metadata removed?

Yes for images: re-encoding from a canvas drops EXIF data such as GPS position and camera model. The picture is rotated upright first, so it still displays the right way round.

Advertisement