cropshrinkIMAGE STUDIOImages stay on your device
CANVAS No image selected

From megabytes
to kilobytes.

Crop, resize & compress JPG, PNG, WebP and AVIF. Every pixel, in your control — and nothing leaves your device.

or drop an image anywhere · paste with ⌘ / Ctrl + V

No upload. Your images never leave this device.

JPG · PNG · WebP · AVIF input
Your next great image starts here.LOCAL PROCESSING

Convert PNG to AVIF

The editor above is set to export AVIF at quality 90. Open a PNG — a screenshot, a design export, a photo someone saved in the wrong format — and it usually comes back at a sixth of the size or less, with any transparency carried over exactly. The encoding runs on your device; the PNG is never uploaded.

AVIF is encoded by libavif, which your browser downloads from this site the first time you pick it (about 840 KB, then cached). Each conversion takes a second or two.

Two kinds of PNG, measured

How much a PNG shrinks depends on what is in it. We converted two through the editor: our sample screenshot of the CropShrink interface (1600 × 922, 1,429 KB), and our sample landscape photograph after saving its pixels as PNG (1920 × 1280, 4,420 KB). WebP at the same slider setting is shown for comparison:

PNGQualityWebPAVIFAVIF vs the PNG
Screenshot, 1,429 KB70124 KB103 KB92% smaller
Screenshot, 1,429 KB80162 KB131 KB90% smaller
Screenshot, 1,429 KB90247 KB213 KB85% smaller
Photo, 4,420 KB70326 KB287 KB93% smaller
Photo, 4,420 KB80423 KB349 KB92% smaller
Photo, 4,420 KB90649 KB494 KB88% smaller

These are far bigger savings than a JPEG ever gives, because nothing has been thrown away yet: PNG keeps every pixel exactly, so the first lossy encoder to touch the file gets all of the easy savings. A photograph stored as PNG is the extreme case — lossless compression barely works on camera noise, so the PNG is enormous, and AVIF cuts it to about a thirteenth at quality 80.

The quality slider is calibrated to look the same in both formats, so each row compares files of about equal quality. AVIF is smaller in all six, by 14% on the screenshot at quality 90.

Screenshots and text

PNG sources are often interface captures and diagrams, and lettering is where a lossy format shows its compromises first. Both lossy WebP and AVIF store colour at half the resolution of brightness, a trick borrowed from video that saves a great deal on photographs. On a hard edge between white text and a saturated background, the colour of the background leaks a pixel into the letters:

The words Download image in white on a magenta button, four times. The original PNG is crisp white. The WebP and AVIF versions at quality 90 have a faint pink tint inside the letter strokes; the AVIF at quality 70 is slightly softer again.
The Download button from the sample screenshot, enlarged three times with nearest-neighbour. Sizes are for the whole 1600 × 922 screenshot.

At normal viewing size the tint is invisible and the text reads perfectly well, which is why this page starts at quality 90 rather than 80: it keeps lettering clean with a file still under a sixth of the original. For documentation, slides and web pages, that is the right trade.

It is the wrong trade when the pixels themselves matter — a UI mock-up a developer will measure, a chart with one-pixel gridlines, a QR code. AVIF at quality 100 is not lossless here: the screenshot comes out at 647 KB, much smaller than the PNG but still not identical to it. For exact pixels, keep the PNG, or use lossless WebP at quality 100, which is pixel-perfect and, for a screenshot like ours, smaller than the PNG. The AVIF vs PNG guide compares all three on screenshots, photos and logos.

Transparency, kept exactly

AVIF has a full alpha channel, so cut-out logos, icons, product shots on transparent backgrounds and soft drop shadows all survive the conversion. The encoder is told to store that channel losslessly: the colour is compressed, but the outline of every shape and the fade of every shadow come back exactly as they were in the PNG. We checked by decoding the AVIF and comparing its alpha values to the original, pixel by pixel.

That costs a little size on images that have transparency, and nothing at all on ones that do not. It is also the one place a PNG with large transparent areas can shrink less than you expect: a mostly-empty logo was already small as PNG, and there is not much left to save.

When to convert, and when to leave it as PNG

If you are shrinking the file for a page, switch on Resize too. A 2560-pixel screenshot shown 1280 pixels wide is carrying four times the pixels it needs, and removing them saves more than any format change.

Questions about converting PNG to AVIF

Does AVIF support transparency?

Yes, with a full alpha channel, like PNG. CropShrink stores it losslessly, so transparent areas, anti-aliased edges and soft shadows come out exactly as they were in the PNG.

Is converting PNG to AVIF lossless?

No. AVIF as exported here is always lossy for colour, even at quality 100. At quality 90 our sample screenshot went from 1,429 KB to 213 KB with text that still reads cleanly. If you need every pixel exact, keep the PNG or use lossless WebP.

Is AVIF better than WebP for PNG files?

For lossy conversion, yes: at quality 90 it was 14% smaller on our screenshot and 24% smaller on a photo saved as PNG. For lossless conversion, WebP is the only choice here, because AVIF is always lossy in this editor.

Is my PNG uploaded to convert it?

No. The encoder is downloaded to your browser and runs there, and the image never leaves your device. The privacy policy shows how to confirm that in your browser’s network panel.

More image tools

Every one of these is the same editor, opened for a different job — and all of them run on your device.

Or start from the full editor, which does all of it at once.