TabGarden

Compress Image

Make JPG, PNG and WebP files smaller with a quality slider.

🔒 Processed on your device. Nothing is uploaded.

or drop them here

How to use

  1. Click Choose files, or drag images onto the box that says "or drop them here". You can add JPG, PNG and WebP files, several at once. Each file appears in a list with its size, and a Remove button takes it back out.
  2. Set Quality with the slider. It goes from 30 to 95 and starts at 75.
  3. Pick a Format: Auto, JPG or WebP. If you are not sure, leave it on Auto.
  4. Click Start. The status line shows "Working…" and then "Done."
  5. For every image you get a download link that shows the original size and the new size, for example "Before 2.40 MB → After: holiday-small.jpg (612.5 KB)". If you added more than one image, a Download all (ZIP) link also appears at the end.

You can change the slider and click Start again as often as you like. Each run replaces the previous results, so it is easy to try 75, then 60, and compare the sizes before saving anything.

What happens to your files

The compression runs inside your browser tab. TabGarden reads each image with the browser's File API, draws it onto an HTML canvas, and asks the browser's own image encoder to save it again as JPG or WebP at the quality you chose. When you download several files together, the ZIP archive is built in the same tab with fflate, an open-source JavaScript library. The tool's code makes no network requests with your images: they are not uploaded to a server, and there is nothing for us to store or look at.

The results live in your browser's memory as temporary download links until you close or reload the tab. After that they are gone, so save the files you want to keep before you leave the page.

One side effect of re-drawing an image on a canvas is that the metadata stored inside the original file is not copied into the new one. That includes EXIF fields such as camera model, capture date and, if your phone recorded it, GPS location. For photos you plan to post publicly this is often a welcome extra; if you need the metadata kept, keep the original too.

Options explained

Quality (30–95)

This number is passed to the browser's JPG or WebP encoder. Lower values throw away more fine detail and give smaller files; higher values look closer to the original and are larger. Some practical starting points:

The same number does not produce the same file size for every picture. A detailed photo of leaves or gravel compresses less than a picture of a clear sky, so check the "After" size on each result.

Format

Examples and use cases

Output file names

Each result keeps the original name with -small added before the extension, and the extension matches the new format. beach.png compressed with Auto becomes beach-small.webp; scan.jpg becomes scan-small.jpg. The ZIP file is always named compressed-images.zip. Images inside the ZIP are stored as they are, without extra compression, because JPG and WebP data is already compressed.

Limits and troubleshooting

JPG, PNG and WebP in short

JPG is a lossy format designed for photographs; every save at a lower quality discards detail that cannot be brought back. PNG is lossless and supports transparency, which makes it ideal for screenshots, diagrams and logos but heavy for photos. WebP, developed by Google, supports both lossy and lossless compression and transparency; Google's WebP documentation describes it as producing smaller files than JPG and PNG for comparable quality. Because JPG and lossy WebP lose a little information on each save, always compress from the best original you have rather than from an already-compressed copy.

Frequently asked questions

Are my images uploaded anywhere?

No. The images are read and re-encoded by your browser on your own device. The tool sends nothing to a server, and the results disappear when you close the tab.

What quality setting should I use?

Start with the default of 75 and look at the result at the size it will actually be viewed. If you see no difference from the original, try 65; if you notice blur or blocky areas, go up to 80 or 85.

Why did my PNG become a WebP file?

With Auto selected, PNG files are saved as WebP because browsers cannot apply a quality setting to PNG output. If you need a JPG instead, choose JPG in the Format menu. This tool does not write PNG files, so it cannot make a smaller PNG. If the file has to stay a PNG, reduce its dimensions with Resize Image instead.

Does compressing change the width and height?

No. The output has exactly the same pixel dimensions as the input. Only the encoding changes. To make the picture itself smaller, use Resize Image first, then compress.

Can I compress many images at once?

Yes. Add as many as you like; they are processed one after another. Each gets its own download link, and a single ZIP is offered when there is more than one. Very large batches are limited by your device's memory.

Is the location data in my photos removed?

The re-drawn image does not carry over the original EXIF metadata, so GPS coordinates stored by the camera are not in the compressed file. The exception is when the result would have been larger than the original: then you receive the original file unchanged, metadata included.

Can I get the original back after compressing?

TabGarden does not change or delete the file on your device; it only creates a new copy. Your original stays where it was.

Does it work offline or on a phone?

It runs in any modern browser, including on phones and tablets, once the page has loaded. Large photos may take longer on mobile devices and can hit memory limits sooner than on a computer.