Compress PNG

Lossless by default, with the alpha channel carried through untouched. Convert to WebP if you want a smaller file still.

  • Free forever
  • No signup
  • Files never uploaded
  • No watermark
  • Unlimited files

PNG compressor

PNG files are accepted. Transparency is preserved. Paste from clipboard with Ctrl+V (Cmd+V on a Mac).

Compression mode

Re-encodes the PNG without discarding a single pixel value. The saving comes from a more efficient encode, so it is modest but perfectly safe.

Lossless mode discards nothing, so there is no quality control here — no quality decision is being made.

Keep the original format, or convert on the way out to compare which one is smallest.

  • Removes text chunks, timestamps and color profile comments from the output.

  • Compress without changing the pixel size of the image.

  • Only used when the output format cannot store an alpha channel. Off means transparent areas become black in JPEG output.

Ready. Add a file to begin.

Results

Lossless mode · PNG output · 0 files

No files yet. Results will appear in this table as soon as you add one.

Your files are processed by your own browser. Nothing is uploaded to a server, so nothing can be stored, read or shared.

More tools

Other tools on this site

Each one runs in the browser the same way, with no upload and no account.

  • Compress JPEG

    Shrink JPG and JPEG photos with a quality slider or an exact target size in kilobytes.

    Compress JPEG
  • Compress WebP

    Re-encode WebP images at a lower quality, or convert JPEG and PNG into WebP.

    Compress WebP
  • Resize Image

    Change pixel dimensions by width, height or percentage, with the aspect ratio locked.

    Resize an image
  • JPG to PDF

    Combine several photos into one PDF, reorder the pages and choose paper size and margin.

    Build a PDF
  • Document Editor

    Write a formatted document in the browser and export it to PDF, DOCX or HTML.

    Open the editor

Specification

Technical specification

Every capability written out as text, including the ones where the answer is no. A specification that only listed the wins would not be worth reading.

Technical specification — what this tool supports, attribute by attribute.
AttributeThis tool
Supported input formatsPNG
Output formatsPNG, WebP, JPEG
Compression typeLossless by defaultPNG output preserves every pixel exactly. It becomes lossy only if you convert to JPEG or WebP.
Quality controlApplies to JPEG and WebP output onlyPNG output ignores it entirely, because lossless encoding makes no quality decision.
Exact output file sizeYes, for lossy outputA target size cannot apply to lossless PNG output, where the size is dictated by the content.
Resize / image dimensionsYes — max width and heightAspect ratio preserved. The resizer page adds exact pixel and percentage modes.
Batch / bulk processingUnlimitedFiles are encoded in parallel across a Web Worker pool and can be downloaded as one ZIP.
Maximum file sizeNo limit set by this siteBounded in practice by your device's memory, since each image is held uncompressed while it is processed.
EXIF and metadataStripped by defaultCamera model, timestamps and GPS coordinates are removed. You can switch it off.
Transparency / alpha channelFully preservedThe 8-bit alpha channel is carried through to PNG and WebP output untouched.
Chroma subsampling controlNot availableThe browser's encoder chooses it and exposes no setting. We will not add a control that cannot affect the output.
Progressive JPEG controlNot availablecanvas.toBlob gives no control over progressive encoding. Use MozJPEG or ImageMagick if you need it.
Color profile handlingConverted to sRGBA browser canvas works in sRGB, so wide-gamut images are converted. Correct for the web, wrong for print masters.
Bit depth8 bits per channelThe maximum a browser canvas provides. HDR and 10-bit output need AVIF, which browsers cannot write.
Animation supportNot supportedA canvas decodes only the first frame of an animated file, so animation is out of scope rather than half-supported.
Where processing happensIn your browserNo upload endpoint exists in the compression path. Disconnect from the network after the page loads and it still works.
File retentionNone — nothing is receivedThere is no copy to retain or delete, because no file is ever transmitted.
WatermarkNeverThe output contains your image and nothing else.
Account, quota or costNoneNo sign-up, no daily cap, no paid tier withholding a feature.
Browser supportChrome, Edge, Firefox, SafariDesktop and mobile. Requires Canvas and Web Workers, which every current browser provides.

See the difference

Drag the handle to compare, and zoom in to inspect the detail at full size.

Sample landscape photograph before compression — a low sun over a lake with distant ridges.
OriginalCompressed
50%
1.0×
Sample photograph, 1280 × 854 pixels. The original is a lossless PNG of 1.06 MB. Your browser re-encodes it with the settings shown and prints the measured result below — these are real figures produced on your own device, not a stored screenshot.
Dimensions
1280 × 854
Format
PNG → JPEG
Original size
1.06 MB
Compressed size
measured in your browser
Saved
measured in your browser

How it works

How to compress a PNG

  1. Step 1: Add your PNG files

    Drag files onto the drop zone, click it to browse, or paste an image straight from the clipboard. Batches of any size are fine.

  2. Step 2: Choose your settings

    Pick a quality level, an exact target size in kilobytes, or a maximum width and height. Defaults are tuned for the web if you would rather not change anything.

  3. Step 3: Download the compressed files

    Every file is listed with its old size, new size and percentage saved. Save them one at a time or grab the whole batch as a ZIP archive.

Features

What this compressor does

  • Batch processing

    Queue as many PNG files as you like. A Web Worker pool runs them in parallel, so a large batch never freezes the page.

  • Real quality control

    The slider maps straight to the encoder setting. Move it and the output genuinely changes — nothing here is cosmetic.

  • Exact target size

    Ask for 200 KB and the encoder finds the highest quality that fits, then reports the size it achieved.

  • EXIF and metadata stripping

    Camera model, timestamps and GPS coordinates are removed on the way out — worth doing before publishing a phone photo.

  • Format conversion

    Write the result as JPEG, PNG or WebP whatever you put in, so you can test which is smallest.

  • Nothing is uploaded

    The whole pipeline runs in your browser through the Canvas API. Disconnect your network after the page loads and it still works.

  • No watermark, no sign-up

    The output is your image and nothing else. There is no account, no daily quota and no paid tier holding back a feature.

  • Works on mobile

    The layout, the drop zone and the results table are all usable on a phone, and mobile browsers run the same encoder as the desktop ones.

In depth

Understanding PNG compression

Lossy and lossless compression are not the same thing

Lossless compression rewrites the file so every pixel survives exactly — decode it and you get the original back, byte for byte. PNG, GIF, lossless WebP and ZIP all work this way.

Lossy compression discards detail on purpose. JPEG converts the image to a frequency representation and throws away the high-frequency detail your eye is least likely to miss. That is irreversible, and it is how lossy reaches sizes lossless cannot: a photograph saved as PNG is routinely five to ten times larger than the same photograph as JPEG.

Neither is better. Photographs suit lossy encoding; screenshots, logos and line art suit lossless, because lossy encoders leave haloes around hard edges.

Transparency and color JPEG cannot carry

JPEG has no alpha channel and cannot store transparency. Converting a transparent PNG forces those pixels to become something, and most tools fill them with black — which is why a logo exported to JPEG arrives in an unwanted dark box. Keep it as PNG, use WebP (alpha support, typically 25–35% smaller than PNG), or flatten onto a chosen background deliberately.

Color is the other gap. Screens mix additively in RGB; printing presses mix subtractively in CMYK, and converting between them always approximates. A CMYK JPEG is converted to RGB before a browser can display it, and saturated cyans and deep blues can shift noticeably. Compress and resize in RGB for screens, and keep a separate CMYK master for print.

Where PNG's savings actually come from

PNG compresses in two stages. First it filters each row of pixels, replacing each value with its difference from a neighboring pixel — so a smooth gradient becomes a long run of near-identical small numbers. Then it runs DEFLATE over the result, which is the same algorithm a ZIP archive uses.

That design explains exactly which images PNG is good at. Flat color, repeated patterns, sharp edges and text all produce long predictable runs after filtering, and DEFLATE collapses them dramatically. Photographic noise produces nothing predictable at all, which is why a photograph in PNG is enormous.

It also explains why re-compressing a PNG gives modest results: the algorithm is deterministic, and if the original encoder chose good filters there is little left to find.

How quality maps to file size

The quality number is not a percentage. It is an index into quantization tables that control how aggressively detail is discarded, and its relationship to file size is steep and non-linear.

  • 95–100 — near-original, often only 20–35% smaller. Rarely worth it.
  • 80–90 — photography you care about. 50–70% smaller, no artifact at normal viewing distance.
  • 70–80 — ordinary web images. Usually 70–85% smaller.
  • 50–70 — visible softening in smooth areas; thumbnails survive it.
  • Below 50 — blocking, ringing and color banding. Placeholders only.

Returns diminish fast at the top: 100 to 90 usually halves the file for no perceptible change, 90 to 80 saves far less. If you remember one number, use 80.

DPI, PPI and why they do not change file size

A digital image has exactly one physical property: its pixel dimensions. A 3000 × 2000 photograph holds six million pixels whether its metadata claims 72 DPI or 300 DPI.

DPI is a printing instruction in a metadata field. It tells a printer how many pixels to place per inch, which sets the printed size — 3000 pixels at 300 DPI is a 10-inch print, and at 72 DPI a 41-inch print of the same pixels.

So "save at 72 DPI for the web" does not shrink a file. Reducing pixel dimensions does. For A4 at 300 DPI, supply about 2480 × 3508 pixels.

Recommended settings for web, email and print

Web page content images
Quality 75–82, longest edge 1600–2000 px, progressive, EXIF stripped, 4:2:0. Expect 100–250 KB.
Hero and banner images
Quality 78–85, longest edge 2000–2560 px. WebP with a JPEG fallback is usually 25–30% smaller.
Thumbnails
Quality 70–75, longest edge 400–600 px. Below about 40 KB there is little left to win.
Email attachments
200–500 KB per image, message under about 10 MB.
Forms and uploads
Target-size mode just under the cap — 95 KB for a 100 KB limit.
Print
Quality 92 or higher, no downscaling, about 300 pixels per inch of final size. A4 is roughly 2480 × 3508 px.
Archival originals
Do not re-compress. Keep the camera original and compress copies.

Questions

Frequently asked questions

Every answer below is present in the page source, expanded, so it can be read without opening anything.

Is PNG compression here lossless?

In the default Lossless mode, yes: the image is decoded to raw pixels and re-encoded as PNG, so every pixel value and every alpha value survives exactly. That mode discards nothing. If you switch the output format to JPEG or WebP with a quality setting, you are no longer doing lossless compression, and the tool labels it accordingly rather than pretending otherwise.

Is transparency preserved?

Yes, for PNG and WebP output — both formats carry a full alpha channel and it is copied across untouched. JPEG output cannot store transparency at all, so if you choose it, transparent pixels must be filled. The Flatten transparency option decides whether they become white or black; leaving it off and exporting to JPEG is what produces the black box people see around badly converted logos.

How much can a PNG actually shrink?

It depends entirely on the content. Screenshots, diagrams, logos and anything with large flat areas often drop 20–60% in lossless mode. A photograph saved as PNG will barely move, because there is almost no repetition for a lossless algorithm to exploit — for a photograph the real win is converting it to WebP or JPEG, which routinely cuts it by 80% or more.

Why is my PNG so large in the first place?

Usually because it is a photograph in the wrong container. PNG stores every pixel exactly, so a 12-megapixel photo has to record twelve million distinct color values with no shortcuts. Screenshots are also larger than people expect when they are taken on a high-density display, since a screenshot of a 1440-point-wide window on a 2× screen is really 2880 pixels wide.

Should I convert my PNG to WebP?

For the web, usually yes. Lossless WebP is typically 25–35% smaller than PNG for the same image with the same alpha channel and no visual difference whatsoever. Every browser released in the last several years supports it. Keep PNG when the file has to be opened by older desktop software, or when it is a source asset you will edit again.

Does resizing help more than compressing?

For screenshots, almost always. A screenshot captured at 2880 pixels wide and displayed in an 800-pixel column is carrying more than three times the pixels it needs, and no encoder setting will fix that. Cap the dimensions first, then compress.

Are my PNG files uploaded anywhere?

No. The file is read into memory by your browser, decoded onto a canvas, re-encoded, and handed straight back to you as a download. There is no server involved in the processing at any point, and no copy of your file exists outside this browser tab.

Does this reduce the number of colors, like an 8-bit PNG?

No. This tool does not perform color quantization or palette reduction, so it will not introduce the banding you sometimes see from tools that convert to 8-bit PNG. That means the savings in lossless mode are more modest than a quantizing tool would claim, but the output is genuinely identical to the input.

What happens to metadata in a PNG?

With the Strip metadata option on, text chunks, creation timestamps and embedded comments are not carried into the output, because the file is rebuilt from raw pixels. Screenshots in particular can carry the application name and window title, which is worth removing before publishing.

Can I compress several PNGs at once?

Yes. Add as many as you like — they are queued and processed in parallel across Web Workers, so the interface stays responsive. Each file gets its own row in the results table, and Download all packages the finished batch into a single ZIP.

Will the compressed PNG look different?

In lossless mode, no — not at any zoom level, because no pixel has changed. If you convert to JPEG or WebP at a quality setting, then yes: sharp edges and text will soften slightly, which is exactly why lossless mode is the default here.

Why does my compressed PNG sometimes come out larger?

Because the original was already encoded by a very well-optimized tool, and a browser's PNG encoder does not always beat it. When that happens the tool reports the increase honestly instead of hiding it — and the sensible response is either to keep the original or to switch the output to WebP.

From the blog

Related reading

Longer explanations from the blog.

  • Image Formats

    PNG vs JPEG: When to Use Each, With the File Sizes to Prove It

    PNG stored the same photograph in 1274.1 KB where JPEG needed 67.5 KB — nineteen times larger. On a flat graphic PNG won. On a smooth gradient PNG lost to JPEG by a factor of two, which surprises most people.

    9 min read

  • Practical Guides

    How to Compress Images for a Website Without Wrecking Them

    Resize before you compress. Measured on one photograph: half the width at quality 80 produced a 16.4 KB file, while full width at quality 40 produced 20.6 KB and looked far worse. The order of operations matters more than the settings.

    8 min read

  • Practical Guides

    How to Strip EXIF Data From Photos, and What Breaks When You Do

    A photograph from a phone can carry the coordinates of the place it was taken, the camera serial number and the exact timestamp. Removing that data is straightforward. Removing it carelessly rotates your photos sideways.

    9 min read