getPNGgetSVG

Compress PNG

Smaller PNG files with the transparency kept, one or two hundred at a time. Give it a size limit and each file is fitted under it.

PNG · JPG · WebP · AVIF · GIF · HEIC · as many as you like · nothing is uploaded

nothing was uploaded

Why a PNG is so big, and what actually makes it smaller

A PNG stores every pixel exactly as it was given: three bytes of colour and, if it has transparency, a fourth byte of alpha. That is why it is the right format for a cutout and the wrong one for a photograph. A 12-megapixel photo saved as PNG is tens of megabytes, and the same picture as JPG is two.

The PNG format also has a second, quieter mode: instead of a colour per pixel it can store a table of up to 256 colours and then one number per pixel saying which of them to use. For a photograph that sounds ruinous, and for a cutout it usually is not: put the two side by side and the difference is hard to find, while the file is between a half and a fifth of the size. That is what this page does, and it is what every PNG compressor worth using does.

Transparency survives it

The thing most palette compressors get wrong is the alpha. A cutout's edge is not opaque or transparent, it is a ramp through every value in between, which is what makes hair look like hair. A compressor that treats transparency as an afterthought spends its whole table on the opaque middle of the subject and leaves that ramp in three or four steps, which shows as a hard, stepped outline.

Here transparency is part of the colour from the start, so the table is spent where the picture needs it. A cutout keeps its soft edge, and a picture with no transparency at all is not given any.

Many files at once

Drop a folder's worth. Files are compressed one after another rather than all at once, on purpose: quantising is the heaviest thing this site does on the page's own thread, and a queue that finishes a file and shows you what it saved is better company than a frozen tab. Each row carries its own before and after, and the Save all button puts every compressed file into one ZIP.

There is no limit on the number of files and no limit on their size, because there is no server to pay for: the work happens on your machine. The tools that upload have to cap both, which is why they do. The practical limits here are your own: the tab's memory on a very large batch, and the few seconds each big picture takes. It runs in any modern browser on Windows, macOS, Linux, Android and iOS, with nothing to install.

A size to fit inside

Most of the time the question is not "how many colours" but "how do I get this under 200 KB", because an upload form, an email limit or a visa portal gave somebody a hard number. Set a size limit above and each file is searched for the largest palette whose PNG fits under it, which is a handful of encodes and a few seconds. The picture is never resized to reach the number, and when even the smallest palette will not fit, the row tells you what it managed rather than quietly handing back something the wrong shape.

What it will not do

It will not make a file bigger. Artwork with few colours, and a PNG somebody has already compressed, can come back larger after a round trip; when that happens the original is handed back untouched and the row says so, rather than quietly growing your file.

It will not resize your picture either. The dimensions that went in are the dimensions that come out, because a compressor that silently shrinks a photo is solving a different problem from the one you asked about. If a smaller picture is what you want, the PNG to WebP converter will usually beat any PNG for a website, and the background remover has canvas sizes for social media.

And it cannot tell you which pictures on your website are the heavy ones, because it only sees the file you drop on it. For that, getReport's image size checker loads a page you have published and lists every picture on it by weight, by the size it is displayed at against the size it was saved at, and by whether it has alt text. Compress the ones it names and you have spent the effort where it counts.

Guides that go further

Part of the formats behind your photos. What each format is, when to use it, and what to do when a file will not open.

Questions

Can I compress PNG files in bulk?

Yes, and there is no cap on how many. Drop a folder's worth and they are compressed one after another, each with its own before and after, then Save all puts them in one ZIP. The tools that upload your files limit the batch (and the file size) because they are paying for the machine that does the work; here your own machine does it, so the only real limits are the tab's memory and the few seconds each large picture takes.

Do I need to install anything, or is it Windows only?

Neither. It runs in any modern browser on Windows, macOS, Linux, Android and iOS. There is nothing to download, no account and no extension, and after the first visit the page works with no connection at all.

Can it get a picture under a size limit?

Yes. Set a size limit (100 KB, 240 KB, 500 KB, 1 MB, 2 MB, or type your own in kilobytes) and each file is searched for the largest palette whose PNG fits under it. 240 KB is there because the US visa and DV lottery uploads use that number. It never resizes your picture to reach a limit, so when even eight colours will not fit, the row says so and gives you the smallest it managed.

How many colours does it use?

Auto asks what a full 256 colour palette would achieve on your picture and then takes the smallest palette that comes within a tenth of it, per file. Flat artwork usually needs sixteen or thirty-two, a photograph usually needs all 256, and the row tells you which it chose. Best, Smaller and Smallest force 256, 128 and 64 if you would rather decide yourself.

How do I compress a PNG for free?

Drop the PNG files on this page, or choose them. Each one is compressed in your browser and appears in the list with its old size, its new size and how much smaller it got, with a Save button, or Save all to get them in one ZIP. There is no account, no limit on the number of files and no watermark.

Does compressing a PNG lose the transparent background?

No. The transparency is kept, including the soft edges of a cutout. The palette this tool builds treats transparency as part of a colour, so a hair edge that fades out stays a fade rather than becoming a hard line.

Is this lossless?

No, and nothing that makes a photographic PNG much smaller is. The saving comes from storing at most 256 colours instead of sixteen million, which for a photo or a cutout is usually impossible to see side by side and is what every PNG compressor does. The shape of the picture, its size in pixels and its transparency are untouched.

How much smaller will my file get?

Most photographic PNGs come back between a half and a fifth of what they were. A screenshot of flat colour is often already small and may barely change. The page shows the before and after for every file, so you can see rather than guess.

Why did one of my files not get smaller?

Because it was already at least as small as this could make it, which happens with artwork that has few colours or a PNG somebody has already compressed. When that happens the original file is handed back untouched rather than a larger one, and the row says so.

What does Smooth gradients do?

It spreads the rounding error from each pixel into its neighbours, which turns the banding you would otherwise see across a sky or a soft shadow into a fine texture. It is applied where it helps and held back where it does not: across a smooth area in full, across a busy one hardly at all, and not at all on a pixel that is already within a shade of its palette colour. That matters for the file as well as the picture, because the texture it adds is the one thing compression cannot pack. Leave it on for photographs; turn it off for flat artwork.

Are my pictures uploaded?

No. The compression happens inside this browser tab and getPNG has no server that could receive a picture. You can check it: open the browser's network tab while you compress a file and no request carries the image.

Can I compress a JPG here?

You can drop one and you will get a PNG back, but that is rarely what you want: a JPG is already compressed for photographs and a PNG of the same picture is usually larger. This page is for PNGs that are bigger than they need to be.

Your files never leave this device

Most online converters upload every file to a server, convert it there and keep it for a while. Here your browser decodes and encodes the picture itself, so there is nowhere for the file to go. You can check it: load this page, switch the browser to offline, and convert a file. How to check a site is not uploading your photos.