Short answer: For one image that matters, such as a hero, Squoosh is the best free tool: it runs in your browser, uploads nothing and lets you compare settings against the original. For a batch of PNGs and JPEGs on a Mac, ImageOptim is free and lossless by default, and TinyPNG is the quickest drag-and-drop option if uploading is fine. If compression should happen inside Figma or in your codebase, use a Figma plugin or sharp, and expect to combine two of these tools.
Most designers think about compression only when something goes wrong. A developer flags the hero image in a performance review, or a CMS rejects an upload for being too large. Some compress on your machine and some on a server. Some only optimize the format you give them, others convert to WebP and AVIF. Below are eight, in four groups: web apps, a desktop app, a build library and Figma plugins.
How do you pick an image compression tool?#
Check five things: formats, lossy and lossless control, batch work, whether it uploads your files, and where it fits in your workflow.
A few terms first. Lossy compression throws away some image data to make the file smaller. Lossless compression shrinks the file without changing any pixels (web.dev: compress images). Quantization is a common lossy trick for PNG: it reduces the number of colors, so a full-color PNG can become a much smaller indexed one. WebP and AVIF are newer image formats that usually make smaller files than JPEG or PNG at similar quality, and both support transparency (MDN: image file type guide).
- Formats. Does it write WebP and AVIF, or only optimize the JPEG or PNG you have?
- Lossy and lossless control. A quality number, a lossless mode, a preview.
- Batch work. One image at a time is fine for a hero, painful for forty product shots.
- Uploads. On your device or on a server. For unreleased client work, that can decide it.
- Workflow fit. A browser tab, a Mac app, a build script or a Figma plugin.
One warning: quality numbers do not carry across formats. web.dev notes that quality 90 differs between JPEG and WebP. Compare the files, not the settings.
Quick comparison: which tool does what?#
Squoosh and ImageOptim are free and stay on your device, TinyPNG trades an upload for speed, and sharp is for code. Prices and limits are as of October 2026.
| Tool | Type | Output formats | Control | Batch | Uploads files? | Price |
|---|---|---|---|---|---|---|
| Squoosh | Web app | JPEG, WebP, AVIF, JPEG XL, PNG and more | Per-codec settings, side-by-side preview | One image | No | Free, open source |
| TinyPNG | Web app and API | AVIF, WebP, PNG, JPEG | Automatic lossy | 20 images, 5 MB each (free) | Yes, kept up to 48 hours | Free tier, paid yearly plans |
| ImageOptim | Mac app | Same format in and out: JPEG, PNG, SVG, GIF | Lossless by default, optional lossy | Drop many files at once | No | Free, open source |
| sharp | Node.js library | JPEG, PNG, WebP, GIF, AVIF, TIFF | Every option in code | Anything you script | No | Free, open source |
| TinyImage | Figma plugin | JPG, PNG, SVG, WebP, AVIF, GIF, MP4, PDF | Quality % or max KB, per image | Yes | No | 10 Pro trials, then $20/user/month |
| Image Compressor | Figma plugin | WebP, JPEG, PNG | Quality, max file size, iterations | Selected layers | No network access declared | Open source (MIT) |
| Tinify plugin | Figma plugin | JPG, PNG, WebP, AVIF, APNG | Automatic lossy | Frames at 1x to 4x | Yes, via the Tinify API | 250 images/month free |
| UIXport | Figma plugin | JPG, WebP, AVIF (Pro); PNG uncompressed; SVG, PDF | Quality 5 to 100, per item | Items × format rows, ZIP | No | Unlimited core exports + 10 Pro runs / month, Pro $4.99/month |
Squoosh: best for comparing settings on one image#
Squoosh is a free, open-source web app from Google Chrome Labs that compresses one image at a time in your browser and shows the result next to the original. Nothing here is better for finding how far quality can drop.
Its README says compression happens locally and images are never sent to a server, though Google Analytics records visitor data and before-and-after file sizes.
You open an image on squoosh.app, pick an encoder and adjust its settings. The encoders in the app include MozJPEG, WebP, AVIF, JPEG XL, OxiPNG, QOI, WebP v2 and the browser's own JPEG, PNG and GIF, and you can resize in the same view. OxiPNG is a lossless PNG optimizer, useful when a PNG has to stay pixel-identical.
- Best for: the hero image, a key product shot, or deciding what quality level a whole set can tolerate.
- Skip it if: you have twenty files to get through. It is built around one image: open, compare, save.
TinyPNG: best for quick drag-and-drop compression#
TinyPNG is a web service from Tinify that compresses and converts AVIF, WebP, PNG and JPEG images you drop onto the page and picks the compression settings for each image itself. It is quick, but your images go to its servers.
The TinyPNG homepage calls its method smart lossy compression, which for PNG means quantization (see above). It also lists JPEG XL and animated PNG.
As of October 2026, the web plans page says the free tier compresses 20 images per session, up to 5 MB each, with 3 format conversions. The yearly Web Pro and Web Ultra plans raise the file size limit to 75 MB and 150 MB. The Tinify API gives developers 500 free compressions a month.
The FAQ on TinyPNG's homepage says only you can access your uploads and that they are deleted after at most 48 hours. It is still an upload, so check your client contract before dropping unreleased work into it.
- Best for: a batch of images that need to be smaller now, when you don't want to tune anything.
- Skip it if: files must stay on your machine, or you want to set quality yourself.
Squoosh vs TinyPNG: which should you use?#
Use Squoosh for control and privacy on one image. Use TinyPNG for a stack of images when you are happy to upload them and let it choose the settings.
| Squoosh | TinyPNG | |
|---|---|---|
| Where it compresses | In your browser | On Tinify's servers |
| Settings | You choose codec and quality | Chosen for you |
| Batch | One image at a time | 20 at a time on the free tier |
| Cost | Free | Free tier, paid plans for larger files |
They also pair well: Squoosh to set the bar on a hero, TinyPNG to clear a folder of thumbnails.
ImageOptim: best for lossless batches on a Mac#
ImageOptim is a free, open-source Mac app that shrinks JPEG, PNG, SVG and animated GIF files without changing how they look, unless you turn on its lossy mode.
According to ImageOptim's page, it runs MozJPEG, pngquant, Pngcrush, 7zip, SVGO and Google Zopfli on whatever you drop onto its window. By default it exactly preserves image quality, and optional lossy minification gives the smallest files. It needs macOS 11 or later and is GPL licensed.
It also strips camera EXIF data, embedded thumbnails, comments and what it calls unnecessary color profiles, which you can turn off in its preferences. The page does not mention WebP or AVIF: ImageOptim makes your existing files smaller rather than converting them.
- Best for: a folder of PNG icons, screenshots or JPEG photos that must keep their format and look identical.
- Skip it if: you are on Windows or Linux, or you want WebP and AVIF output.
How do you compress a PNG without losing quality?#
Run it through a lossless optimizer, such as OxiPNG in Squoosh or ImageOptim on its default settings. They repack the file more efficiently and leave every pixel as it was.
Lossless optimization has a ceiling. Bigger drops come from quantization, which TinyPNG and sharp's palette option use, and that is lossy. Flat UI art and icons often survive it well. Gradients and soft shadows are where a smaller palette shows, so check those at 100% zoom.
Also ask whether it needs to be a PNG at all. A photo with no transparency will usually be much smaller as JPG, WebP or AVIF. See the best image format for each website asset.
sharp: best for compression in your build#
sharp is a Node.js library that resizes and compresses images in code, so a site's build or upload pipeline treats every image the same way.
The sharp docs describe a high-speed module built on the libvips library. It reads JPEG, PNG, WebP, GIF, AVIF, TIFF and SVG, writes JPEG, PNG, WebP, GIF, AVIF and TIFF, and runs on Node.js 20.9.0 or later, Deno and Bun. It is Apache 2.0 licensed. A minimal example:
import sharp from 'sharp';
await sharp('hero.png').resize({ width: 1600 }).avif({ quality: 50 }).toFile('hero.avif');The output options show the defaults: quality 80 for JPEG and WebP, 50 for AVIF, and lossless PNG unless you set palette: true to quantize. By default sharp removes all metadata, including EXIF orientation.
What does that mean for you? If the developers run sharp, ask whether they want finished files or high-quality sources. Already compressed files sent through a pipeline that compresses again get two lossy passes.
- Best for: sites with many images, image variants at several widths, and teams that want the same settings every time.
- Skip it if: nobody on the project writes build code. It is a library, not an app.
Can you compress images inside Figma?#
Partly. Figma's own export writes PNG, JPG, SVG and PDF, and only JPG and PDF have a quality setting (Figma help: export formats and settings). For WebP, AVIF or a compressed PNG, you need a plugin.
TinyImage Compressor#
TinyImage, by Hypermatic, has the widest range of the Figma options: JPG, PNG, SVG, WebP, AVIF, GIF, MP4 and PDF. You set a quality from 1% to 100% or a maximum size in KB, with overrides for individual images (TinyImage docs). Hypermatic says compression runs in the plugin without uploading your file content.
Its Downsize tool is free without limit. Everything else gives 10 Pro trials, then needs Pro (plans FAQ). As of October 2026, Hypermatic's TinyImage page lists Pro at $20 per user per month or $199 per user per year. It is the strongest choice here for compressed PNG and KB size targets. See UIXport vs TinyImage for a closer comparison.
Image Compressor#
Pavel Laptev's Image Compressor exports WebP, JPEG or PNG with a quality setting, a maximum file size and an iteration count (Community listing). The source code is MIT-licensed, uses the open-source browser-image-compression library, and its manifest declares no network access. It is a good pick when a CMS or ad platform rejects files over a size limit.
Tinify's official Figma plugin#
Tinify also makes a Figma plugin that compresses JPG, PNG, WebP, AVIF and APNG at 1x to 4x. It runs on the Tinify API with your own API key, so images are compressed on Tinify's servers, not in the plugin. As of October 2026, you get 500 free credits a month, and each exported image uses 2 credits, which makes 250 free images a month.
UIXport#
UIXport does not compress PNG. It re-encodes Figma frames, and images you upload, to JPG, WebP or AVIF at a quality you set, which is a different job from TinyImage's.
In the Exporter tab, each row in Export as is one format at one scale, from 0.5x to 4x. The Quality Level slider runs from 5 to 100, with presets from Best (95%) to Low (40%), and applies to JPG, WebP, AVIF and PDF rows. Each item can have its own quality. The browser's canvas encodes WebP and JPG, and AVIF uses libavif compiled to WebAssembly inside the plugin. SVG rows are cleaned with SVGO when Clean SVG Markup (Remove Figma properties) is on, which is the default. Your designs and exports never leave your computer: UIXport only contacts its license server with your Figma user ID (and your email or license key if you enter them).
Uploading a local file re-encodes images you already have (PNG, JPG, WebP, AVIF or PDF, up to 50MB each) and shows Original, Exported and Saved sizes for the run (image converter). In Asset finder, an Original row exports the image file Figma stores for an image fill (up to 4096 px), so you can take the source photo to Squoosh or ImageOptim.
Free has no cap on core exports, including WebP export. AVIF needs Pro, at $4.99 a month or $49.99 a year, or one of the Free plan's 10 free Pro runs a month.
- Best for: WebP, AVIF and JPG at a chosen quality straight from Figma frames, plus SVG and PDF in the same run.
- Skip it if: your deliverable is compressed PNG. Use TinyImage, or export PNG and run it through ImageOptim or TinyPNG.
Steps: a compression workflow that combines these tools#
No single tool covers every asset, so split the work by format.
- Export at the size you ship. Compression cannot fix an image three times wider than its slot. Set the scale first, as in our guide to image optimization from Figma.
- Find your quality floor in Squoosh. Lower the quality on one representative photo until artifacts appear, then step back up.
- Export photos as WebP or AVIF. In UIXport's Exporter, change the default row to WEBP 1x, click Add format and make the new row WEBP 2x. Pick High (80%) in Quality Level, or your own value, and click Export Selected (N Formats). Check the result at 100%.
- Keep PNG where transparency needs it, then optimize. Drop those PNGs into ImageOptim for lossless savings, or into TinyPNG if lossy is fine and uploading is allowed.
- Re-encode images you already have. Click Upload (or Upload local file when the list is empty), pick a format and quality, export, and compare Original, Exported and Saved.
- Agree on the build step. If the site runs sharp or a similar pipeline, settle who compresses, as in the sharp section above.
For more Figma export options, see the best Figma plugins for exporting images. If you want WebP and AVIF straight out of Figma with a quality slider, install UIXport from Figma Community, select a frame, switch the Export as row to WEBP and export.