FormatterHQ

Image Compressor

Shrink photos and screenshots for the web: set the quality, optionally resize, compare before and after with a slider, and download one file or a ZIP of all.

Loading tool…
Ready.

How to use the Image Compressor

  1. Drop one or several images onto the page or click to choose them.
  2. Move the Quality slider — 70–80% is a good starting point for photos.
  3. Choose an Output format and, optionally, a Max width to scale large photos down.
  4. Drag across the preview to compare original and compressed, then download each file or Download all (.zip).

An image compressor that runs in your browser

Large images are the most common reason web pages load slowly. This image compressor re-encodes JPG, PNG and WEBP files with the quality you choose, optionally scales them down, and shows the saving for every file. Because the work happens in your browser with the Canvas API, there is no upload queue, no file-size cap and no waiting for a server.

How compression works

JPG and WEBP are lossy formats: the encoder discards detail the eye is unlikely to notice, and the quality setting controls how aggressively it does so. Going from 100% to 80% often halves the file size with no visible change, while below about 60% blocky artefacts and colour banding start to appear. PNG is lossless, so the quality slider has no effect on it; the tool therefore converts PNG to WEBP by default, which keeps transparency and is usually much smaller.

Options explained

  • Quality (5–100%): applies to JPG and WEBP output. The preview updates a moment after you release the slider.
  • Output format: "Same as input" keeps JPGs as JPG and turns PNG into WEBP; you can also force JPG, WEBP or lossless PNG. Transparent areas become white when saving as JPG.
  • Max width: scales wider images down proportionally. A 4000-pixel phone photo shown at 1200 pixels wastes most of its bytes, so resizing is often the biggest saving of all.

Before/after comparison

The preview overlays the original and the compressed image. Drag across it (or use the arrow keys when it has focus) to move the divider and check faces, text and gradients — the areas where compression shows first. The statistics panel lists original and new size, dimensions, format and the percentage saved; if the result is larger than the original, you get a hint to lower the quality or choose another format.

Recommended settings

ImageFormatQuality
Photos for blogs and shopsWEBP or JPG70–82%
Hero imagesWEBP75–85%, max width 1920–2400
Screenshots with textPNG or WEBP90%+ (or lossless PNG)
ThumbnailsWEBP60–75%, max width 400–600

Batch compression

Add as many images as you like; each gets its own row with the saving. Changing a setting recompresses the whole batch, and Download all (.zip) packs the results into a single archive with "-compressed" file names. Note that re-encoding through the canvas also removes EXIF metadata such as camera details and GPS location — a privacy bonus for images you publish. If you want to keep the pixels untouched and only strip metadata, use the EXIF remover instead.

Need exact dimensions rather than a maximum width? Use the image resizer. To convert formats without compressing, see PNG to WEBP or JPG to WEBP.

Why image size matters

Images typically make up the largest share of a web page's bytes. Heavy images delay Largest Contentful Paint, one of Google's Core Web Vitals, cost mobile visitors data and slow down e-mail delivery when attached. Compressing before upload is also kinder to content management systems, many of which keep the original file forever even when they generate smaller variants.

Privacy

Everything happens locally in your browser with JavaScript and the Canvas API. Your images are never uploaded to our servers, so the tool also works with confidential screenshots and personal photos.

Frequently asked questions

How much can I compress an image without losing quality?
For typical photos, a JPG or WEBP quality of 75–85% is visually very close to the original while being several times smaller. Use the comparison slider to find the lowest setting you are happy with.
Why did my PNG get bigger?
If you force PNG output, the browser re-encodes it losslessly and may compress less efficiently than the original tool did. Choose WEBP, or keep the original if it is already optimised.
Does compressing remove EXIF data?
Yes. Images are redrawn on a canvas and re-encoded, which drops EXIF, GPS and other metadata. Colour profiles are converted to sRGB.
Is there a file size or number limit?
There is no server limit because nothing is uploaded. Very large images (tens of megapixels) depend on your device’s memory.
Can I compress GIF animations?
No. The canvas only sees the first frame, so animated GIFs lose their animation. Convert them with a dedicated GIF or video tool instead.

Last updated October 3, 2026

Related tools

Base64 to Image Preview and download images from Base64 strings or data URIs. Detects PNG, JPEG, GIF, WebP, BMP, ICO and SVG. Flip Image (Mirror) Flip an image horizontally or vertically — mirror selfies, reverse text in photos or turn images upside-down — in your browser. Image Average Color Finder Find the average and dominant colour of an image — useful for placeholders, card backgrounds and theme colours. Runs in your browser. Image Color Palette Extractor Extract the dominant colours of any photo or screenshot as a palette with percentages, then copy HEX codes or export CSS variables. Image Color Picker Pick exact pixel colours from an uploaded image with a zoom loupe. Get HEX, RGB and HSL values and keep a list of picked colours. Image Cropper Crop images online with a draggable selection, aspect ratio presets (1:1, 4:3, 16:9…) and exact pixel values. Private and free. Image Filters (Photo Effects) Adjust brightness, contrast, saturation, grayscale, sepia, hue and blur, apply photo presets and download the edited image. Image Resizer Resize images to exact pixel dimensions in your browser. Keep the aspect ratio, change format and compare file sizes. Image to ASCII Art Converter Turn any photo or logo into ASCII art. Choose the width and character set, preview it in colour and copy the text. Image to Text (OCR) Extract text from images, screenshots and scanned PDFs with OCR in 28 languages. Edit, copy or download it, or make a searchable PDF. No upload. JPG to BMP Converter Convert JPG images to BMP online for free. Fast, private, in-browser conversion with preview and size comparison. JPG to PNG Converter Convert JPG images to PNG online for free. Fast, private, in-browser conversion with preview and size comparison.