Image Compressor

Drop a photo, pick a format and a quality, get a smaller file back. The compression runs on your device — the original never leaves the tab.

Drop an image here, or click to choose

PNG, JPEG, WebP, GIF, BMP, AVIF, HEIC — up to 25 MiB

How this works
  • Drop a raster image — PNG, JPEG, WebP, GIF, BMP, AVIF, or HEIC. The file is read in your browser with FileReader; nothing is uploaded.
  • The image is decoded into an offscreen <canvas> sized to fit your Max width (or the original size if you leave it at 0).
  • JPEG and WebP are lossy — lower quality means smaller files but visible artefacts. PNG is lossless; the quality slider is disabled for it.
  • The browser re-encodes the canvas via canvas.toBlob with your chosen format and quality. The result lands on the right, with byte counts and the savings ratio.
  • Hit Download when you're happy. The output filename keeps the original stem and swaps the extension to match the chosen format.
  • Everything runs locally. There's no server, no upload, no analytics. The whole compressor works offline once the page is loaded.