vasilenko.info

Compress images directly in the browser

/en/tool/image-compressor/ works the file stays in the browser

Select images or paste a screenshot from the clipboard—the browser will recompress them automatically and show how much space was saved. Files aren't uploaded anywhere: they're decoded and encoded on your device, in a separate thread. You can set a target file size, then open any image at full width and move the slider between the original and the copy.

promoTwenty years of notes on websitesHow we did it in 2008 and what still works today.Open

Images and settings

You can select multiple files at once, drag them into the frame, or paste a screenshot from the clipboard. Originals remain unchanged—the tool creates copies.

JPEG, PNG, WebP, GIF, AVIF. HEIC from an iPhone opens only in Safari. Up to 40 files, each up to 30 MB
Drag images here or press Ctrl+V
Output format
“Automatically” checks the image itself: transparency — WebP, a diagram or screenshot — palette PNG, a photo — AVIF or WebP.
For JPEG, WebP, and AVIF. PNG has no quality setting: it compresses without loss, and the palette reduces its file size
Fit within a file size

Size
px

Aspect ratio is always preserved. An empty field or 0 leaves the size unchanged
PNG: palette

256 colors are safe for almost anything. Screenshots and diagrams usually lose nothing even at 64 colors, and their file size is noticeably smaller

Without a palette, the browser encodes PNG, and the copy is almost always larger than the original
Copy name
The extension always follows the format: photo.jpg → photo.webp. If the format and name are the same, the browser will place a copy next to the original and add a number automatically — “photo (1).jpg”. The page cannot rename or replace a file on disk because it has no access to the file system

Works for JPEG to JPEG: the EXIF segment is copied as is, except the orientation tag is reset because the image has already been rotated. The original color profile is intentionally not copied: the browser has already converted the image to sRGB, and applying another profile would distort the colors. Without this option, the copy is saved without metadata, including the photo location

Savings

%

Before
After
Captured
Files

The browser does the processing, with the heavy work in a separate thread, so the page does not freeze. Files are not uploaded anywhere: you can see this in the developer tools — there are no more requests after loading. The “Download” button returns a copy from the tab’s memory, not from the server.

Results by file

Click the preview or “View” to open the image full screen: a divider between the original and copy, 1:1 zoom with dragging, a “Difference” mode, and a quality slider that recompresses only this image.

A row will appear here for each file: its original size, new size, the number of colors or quality setting used, and where to get the copy.

promoCalculate ROI at the same timeCampaign payback based on spend and revenue.Open

How to use it

  1. Select files with the button, drag them into the dashed box, or paste a screenshot from the clipboard with Ctrl+V. You can select several at once.

  2. Leave the format set to “Automatic” if you are not sure what to choose: the tool examines the image itself—transparency sends it to WebP, diagrams and screenshots to palette-based PNG, and photos to AVIF or WebP. “Same as original” recompresses the file without changing its format.

  3. If you need to meet a size limit, turn on “Meet the size limit” and enter a number or click a preset. The quality will be selected automatically, and the table will show the value at which the file fit.

  4. Set the dimensions based on where the image is actually displayed. A 4,000 px-wide photo shown at 600 px on a product card is megabytes wasted. There are five options: by width, by height, by the long side, by percentage, and “fit within W×H.”

  5. Open the image with the “Preview” button and move the slider. The quality slider there recompresses only that image, immediately; the “Apply to all” button applies the selected settings to the entire batch.

  6. Get your results: “Download” in a table row saves one file, while “Download all” saves everything together as one ZIP. If only one file was recompressed, the button returns it without an archive.

promoBrowser task listNo account required—everything is stored on your device.Open

The formula and what it includes

Savings = (before − after) ÷ before × 100%

Lossy recompression is irreversible: quality removed once cannot be restored. Recompress the original rather than an already compressed copy, and keep the originals separately.

Example breakdown: a 2,400 KB photo

The input data is the same as the default field values: you can calculate it mentally and confirm that the tool is telling the truth.

  1. Amount removed: 2,400 − 600 = 1,800 KB.

  2. Share of the original size: 1,800 ÷ 2,400 = 0.75.

  3. As a percentage: 0.75 × 100 = 75.

Savings: 75%. The file became exactly four times smaller: 2,400 ÷ 600 = 4.

Frequently asked questions

promoAll toolsForty-four tools, all running in your browser.Open

Related tools

5

WCAG contrast checker

Calculates the contrast of a color pair and shows whether it passes AA and AAA.

Open