How to use
- 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.
- Set Quality with the slider. It goes from 30 to 95 and starts at 75.
- Pick a Format: Auto, JPG or WebP. If you are not sure, leave it on Auto.
- Click Start. The status line shows "Working…" and then "Done."
- 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:
- 75 (default): a good balance for photos on websites, in chat apps and in email. Most people cannot tell the difference at normal viewing size.
- 80–90: for images that will be viewed large or zoomed, such as product photos or portfolio pieces.
- 50–65: when you need to get under a strict upload limit and small softening is acceptable.
- 30–45: only when size matters far more than looks. Blocky patches and smeared edges become visible, especially around text and sharp lines.
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
- Auto keeps JPG files as JPG and WebP files as WebP. PNG files are converted to WebP, because browsers have no quality setting for PNG output: saving a PNG as PNG again would not make it meaningfully smaller.
- JPG turns every image into a JPG. JPG has no transparency, so any transparent areas (common in logos and screenshots of icons) are filled with white.
- WebP turns every image into WebP. WebP supports transparency and usually gives smaller files than JPG at similar visual quality. Check that the place you are uploading to accepts WebP before choosing it.
Examples and use cases
- Email attachments. A few photos straight from a phone camera can push an email past the attachment limit of many mail services. Compressing them at 70–75 in JPG keeps them sharp enough to view on screen while cutting the total size.
- Online forms with a size limit. Job portals, government sites and school systems often ask for a photo or a scanned document under a fixed size. Start at 75; if the result is still too big, lower the quality step by step, or first make the image smaller with Resize Image, which usually saves more than quality alone.
- Faster web pages. Images are often the heaviest part of a page. Converting PNG screenshots and photos to WebP with Auto can make them much lighter without changing their dimensions.
- Screenshots with transparent backgrounds. Choose WebP (or Auto for PNG) to keep the transparency. Choose JPG only if a white background is fine.
- Sharing a batch in a chat app. Add the whole set, click Start, and use Download all (ZIP) to save
compressed-images.zipin one go.
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
- Only JPG, PNG and WebP are accepted. Other files you drop, such as GIF, HEIC, BMP or TIFF, are silently left out of the list. Convert them to one of the supported formats first.
- "After" is the same as "Before". TabGarden never hands you a bigger file. If the re-encoded image comes out the same size or larger than the original, you get the original file back unchanged (with
-smallin the name). This happens with images that were already compressed hard, with tiny images, and sometimes with PNG graphics that have few colors. Try a lower quality, a different format, or reduce the pixel dimensions instead. - WebP did not get smaller. Not every browser can write WebP files. Under the HTML standard, a browser that cannot encode the requested format produces a PNG instead, which is usually larger, so you will get your original back. Choose JPG, or use a current version of a browser that supports WebP encoding.
- Transparent areas turned white. That is expected when the output is JPG. Use WebP or Auto to keep transparency.
- Animated WebP files lose their animation: only the first frame is drawn on the canvas and saved.
- Very large images. Every image is decoded at full resolution in memory. Very high-resolution files, or many large files in one batch, can fail on phones and older computers with "Something went wrong" because the device runs out of memory or exceeds the browser's canvas size limit. Process fewer files at a time, or resize them first.
- "cannot read image". The file is damaged or is not really the format its name says. The run stops at that file; the results already listed above it can still be downloaded.
- Clicking Start with nothing selected shows an error asking you to choose files.
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.