Skip to content
All Tools

Compress PNG 100% local

Compress PNG

Shrink PNG file sizes — ideal for screenshots, logos and graphics.

Runs in your browser — your image never leaves your device Updated September 2026

Processed directly in your browser. Your image never leaves your device.

About this tool

Compress PNG shrinks PNG files through two routes. The first is a lossless re-encode that keeps every pixel identical while cleaning the file's internal structure and metadata. The second is an optional WebP export that trades the strict lossless guarantee for far smaller files, including full support for transparent areas. Both paths run locally in the browser, and both leave every transparent pixel exactly where it belongs.

The tool is built for the corners of the web where PNG still dominates. Screenshots awaiting documentation, logos that must sit on any background color, transparent product cutouts, contact sheets and archival graphics all live in PNG because the format guarantees pixel-perfect redelivery. That guarantee has a price - the files tend to be heavy - and this tool pays that bill down as far as lossless compression allows, then offers the WebP path for anyone who needs a more aggressive reduction.

The honest starting point is a constraint: PNG is a lossless format, so the size of the pixel data cannot be reduced without altering it. Lossless compression works by removing redundancy - unused palette entries, needless metadata, inefficiently arranged chunks - and once those are gone, further savings require a different format. That is precisely the decision the tool surfaces: keep the output as a lossless PNG for fidelity, or convert to lossy WebP for size, with transparency preserved in both cases.

For PNGs that contain photographic detail, the WebP route is usually the deciding factor. A photographic PNG exported by a tool that defaulted to PNG can be several times larger than the same image in JPEG-class compression, and WebP closes most of that gap while keeping alpha. For flat-color graphics and screenshots, the lossless pass is often all that is needed, and the quality slider stays out of the way because there is nothing lossy to tune.

Privacy is the same story as every tool in the suite: the file is decoded in browser memory and never uploaded, so screenshots of internal systems and unreleased interfaces stay on the device. Two boundaries keep expectations realistic. A source file is limited to roughly 25 MB, and the tool optimizes what is there rather than resizing or cropping - if a PNG also needs to be smaller in dimensions, pair this tool with a resize step before or after compression.

How to use Compress PNG

  1. Open the Compress PNG tool and drop your PNG file onto the page.

  2. Choose whether to keep the output as a lossless PNG or convert to WebP for bigger savings.

  3. If you chose WebP, adjust the quality slider to control the lossy tradeoff.

  4. Download the optimized file - your transparent PNG stays on your device unchanged.

What this tool does

  • Lossless PNG re-encode where possible.

  • Optional WebP export for sharper savings.

  • Transparency preserved.

Specifications

Input formats PNG
Output format(s) PNG or WebP
Processing Local browser (Canvas API)
Uploads None — files stay on your device
Max file size 25 MB per file
Original file Never modified
Input format PNG only
Output formats PNG (lossless) or WebP (lossy)
Transparency Preserved in both output modes
Quality range 1 - 100 (WebP mode only)

In-depth Guide

What PNG actually stores in those bytes

A PNG file is a stack of chunks around one essential payload: a stream of scanlines that describes every pixel. The encoder compresses that stream with the DEFLATE algorithm, the same one that powers ZIP files, which is why PNG behaves less like a codec and more like a compressed archive of raw image data. The room to shrink a PNG is therefore the room you can find inside that DEFLATE stream plus whatever structure surrounds it.

The byte cost depends heavily on the color type the file was written in. An RGB photo at 24 bits per pixel carries three full channels, an RGBA image carries four, and a palette-based image stores each pixel as an index into a short color table. Larger channel counts mean more data before compression ever begins, which is one reason the same visual content can weigh very different amounts depending on how it was exported.

Color type Data per pixel Typical use Compression headroom
Grayscale (8-bit) 1 byte Monochrome scans, barcodes Moderate
RGB (24-bit) 3 bytes Photos, no transparency Low once clean
Palette / indexed (8-bit) 1 byte index Logos, flags, simple icons Can be very compact
RGBA (32-bit) 4 bytes Transparent cutouts, UI assets Lowest - most data to carry

What the lossless re-encode pass actually changes

Because the pixels are untouchable in lossless mode, the pass works around the edges of the file. Unused palette entries get dropped so indexed files never carry index values for colors that no longer exist. Non-essential metadata - text chunks, comments, author records and embedded preview data - is removed, trimming bytes with zero visual cost. Chunk ordering is normalized and redundant chunks are merged, which lets decoders read the file in fewer, cleaner operations.

There is a hard limit to how far this can go. DEFLATE has already squeezed the pixel stream once, so the re-encode is mostly re-packing the same luggage into a better suitcase. When a PNG shrinks by 5-15 percent and then stops, that is the format working exactly as designed, not the tool underachieving. The main structural lever that remains is interlacing: Adam7-interlaced files carry extra ordering data and routinely weigh more than their progressive counterparts.

  • Metadata removal: text and comment chunks are stripped, which is pure size with no image cost.
  • Palette cleanup: unused and duplicated entries are removed from indexed files.
  • Chunk normalization: ordering is standardized and redundant structures are merged.
  • Interlacing: where present, the ordering data adds weight that progressive storage avoids.

PNG versus WebP when transparency is non-negotiable

For anything with alpha, the practical field narrows quickly. JPG cannot hold transparency at all, GIF is limited to a binary transparent-or-not choice and a thin palette, and PNG and WebP are the two real contenders for smooth, semi-transparent edges. PNG wins on universal compatibility - every image viewer, editor and print pipeline reads it. WebP wins on size, and by a wide margin when the transparent content is photographic or gradient-heavy.

The choice is not either-or in a workflow sense. Keeping the WebP output costs a little of the absolute fidelity guarantee, but for web delivery the difference is invisible at normal quality values while the payload shrinks to a fraction. When the destination is a website or app with up-to-date browsers, the WebP export is usually the right call; when the file must survive an older ecosystem, the lossless PNG path earns its larger size.

Property Lossless PNG WebP export
Pixel fidelity Exact - every pixel preserved Lossy - excellent at high quality
Transparency Full alpha channel Full alpha channel
Typical size Reference point Often 50-80% smaller
Compatibility Universal All modern browsers
Best for Archives, print, legacy tools Web delivery, app assets

Screenshots, logos and photographic PNGs: three different problems

A screenshot is mostly flat background with scattered text and UI, and it compresses remarkably well - the DEFLATE stream finds long runs of identical pixels. The gains are real but bounded, and the WebP path helps most when a screenshot holds gradients, blur effects or dark translucent overlays that defeat PNG's redundancy hunt.

A logo or flat icon is the format at its best: a handful of colors, clean edges and often an indexed palette, so the file is already small. Running such a file through a lossy encoder saves almost nothing, which is why the lossless pass is the right tool for most logo work. Photographic PNGs are the opposite extreme - raw pixels with no long runs - and they are the ones that benefit most from abandoning the lossless guarantee and taking the WebP route.

  • Screenshots with text and flat UI: lossless PNG pass, keep it simple.
  • Screenshots with gradients or translucent overlays: WebP export for real savings.
  • Logos and flat icons: lossless PNG - the file is probably already near its floor.
  • Photographic PNGs: WebP export, where the size gap to PNG is largest.
  • Archival or print-bound files: lossless PNG, because fidelity and compatibility outweigh a few hundred kilobytes.

Tuning the WebP export path

When the output is a lossy WebP, the quality slider becomes active and behaves like it does for a photograph in any codec: higher values keep more detail, lower values shrink the file. For transparent images there is an extra consideration, because the alpha edges are compressed too. At very low quality, the semi-transparent fringe where a cutout object meets its background can develop a thin halo or stair-step edge.

In practice the 75-85 band works as a starting point for photographic PNG converts, while transparent UI assets usually settle comfortably around 85-90 where the edges stay clean and the size is still far below the original PNG. If an edge artifact appears, the fix is to raise quality rather than lower it - the damage is in the encoding budget, not in the image itself.

WebP quality Pixels Alpha edges Best fit
90-100 Effectively invisible to the eye Clean Transparent UI assets and cutouts
75-85 Excellent on screens Clean at normal sizes Photographic PNG converts
60-70 Noticeable fine-detail loss Possible thin fringing Bulky screenshots and large photos
Below 60 Visible blocking Likely halo or jagged edges Avoid for transparent content

How it works

Lossless PNG re-encode

The browser decodes and re-encodes the PNG, applying structural optimizations such as removing unused palette entries, optimizing chunk ordering, and stripping non-essential metadata.

WebP export path

When you select WebP output the browser re-encodes the pixels using the WebP encoder, which supports lossy compression. This is especially effective for photographic PNGs that contain no actual transparency.

Transparency preservation

Both the PNG and WebP output paths preserve the alpha channel. Transparent pixels remain transparent in the downloaded file.

Example result

Before After
File size: 820 KB File size: 610 KB (PNG)
Dimensions: 1200 x 800 px Dimensions: 1200 x 800 px
Format: PNG Format: PNG

Lossless PNG savings are modest. Converting to WebP produces much larger reductions.

Pro tips

Check palette and color depth first

An RGB PNG that only needs 256 colors should be a palette PNG. Exporting properly at the source prevents paying for channels the image never uses.

Let the WebP route do the heavy lifting

Do not fight for the last 5 percent on a lossless pass. When a PNG holds photos or gradients, the WebP export at 80 will routinely beat the lossless result by a factor of two or more.

Keep a master for editability

PNG is the right container for future editing. Preserve the lossless original and ship the WebP, so a future change never has to start from a lossy copy.

Strip metadata as a default

Author, software and URL chunks hide in PNG text fields. For published files the lossless pass removes them as a side effect that saves bytes too.

Match the format to the destination

Print and legacy software want PNG; modern sites want WebP. Decide by the consumer of the file, not by which looks more advanced in a folder listing.

Verify transparency survives

After exporting, drop the result back on a page with a colored background or open it in a viewer showing the checkerboard - a missing alpha channel is the one failure mode a size number will not reveal.

When to use it

Great for Compress PNG

  • Optimize screenshots before uploading to a wiki or documentation site.
  • Shrink logo files that need transparency but are dragging down page speed.
  • Prepare PNG assets for a CMS that has strict file-size upload limits.
  • Convert photographic PNGs (exported by tools that defaulted to PNG) to a smaller WebP while keeping any transparent edges.

Watch out for

  • PNGs of simple graphics with large flat-color areas are already very small - compression gains may be negligible.
  • If you do not need transparency, converting the PNG to JPG will typically give the smallest file for photos.
  • This tool does not change image dimensions or crop the image.

Privacy

This tool runs entirely in your browser using the Canvas API. Your image is never transmitted — there is no upload endpoint involved. Clearing the page removes the file from memory.

Edits never overwrite your original file. Every result is a new download, so you always keep the source image. Read the privacy policy.

Troubleshooting

PNG uses lossless compression so there is less room to cut size without altering pixels. Try the WebP output mode for much bigger reductions.

Yes. WebP supports alpha transparency so transparent areas are carried over to the output.

Never. The tool produces a new download and your source file remains exactly as it was.

Frequently asked questions

PNG is lossless by design. Converting to WebP usually gives much smaller files for photos.

Both support transparency. WebP achieves smaller files because it uses more modern compression, but PNG has broader compatibility with older software and editing tools.

Yes. Drop multiple PNGs and each is processed separately with its own download link.

If the target system does not support WebP (legacy email clients, certain printing workflows, older design tools) a PNG output ensures compatibility.

PNG is lossless, so the only savings available come from structure and metadata. If the source was already clean, the file was already near its floor. Converting to WebP is the route to larger reductions.

Yes. WebP supports a full alpha channel, and the tool carries the transparency through the re-encode, including semi-transparent anti-aliased edges.

Never. Every run produces a new download, and the source file on your device stays exactly as it was, transparent pixels and all.

PNG is the only universal raster format that guarantees pixel-perfect redelivery with alpha. Choosing the lossless path keeps that guarantee intact by writing PNG.

Yes. Drop several files and each is processed individually with its own result and download, which is convenient for cleaning an asset folder in one pass.

When the file must open in legacy viewers, print workflows or editing tools without WebP support, or when absolute pixel fidelity is the requirement. Those cases call for the lossless PNG path.

Tool last updated: September 2026. Browse all image tools.