Skip to content

Compress PNG on Windows

Compress PNG on Windows with Photos resize, oxipng lossless recompression, and GetCompress batch presets. Shrink screenshots without losing transparency.

By Petr Samokhin

A Figma export at 2880 px wide lands in Teams as an 8 MB PNG. The message sends, but the thread crawls on mobile data and the upload form rejects the same file on the second try. PNG is the right format for UI with transparency, yet full-monitor exports are almost never viewed at that size. You need smaller pixel dimensions, lossless recompression, or a format change when alpha is not required.

Why PNG files get large

PNG stores pixels without the blocky artifacts you see in heavy JPEG compression. That fidelity costs bytes, especially on photos and noisy gradients exported from design tools.

SourceTypical cause
Design tool exportFull artboard width at 2x or 3x
ScreenshotHigh-DPI capture at native resolution
Photo saved as PNGCamera roll converted without resize
Layered exportFlattened bitmap larger than the frame

Check pixel width before you tune anything else. A 4000 px PNG shown in an 800 px column still downloads like a poster. See how to compress images on Windows for the display-size rule across JPEG, PNG, and WebP.

Lossless vs lossy for PNG

PNG compression is lossless by default: every pixel survives re-save. You can still shrink the file by removing redundant data in the bitstream or by converting to a lossy format when transparency does not matter.

ApproachBest when
Resize pixelsImage displays smaller on screen
Lossless PNG toolsTransparency must stay; UI stays sharp
WebP or JPEGNo alpha; photos and heroes for web
Lower color depthFlat UI with few distinct colors

Read lossy vs lossless compression before you convert a screenshot to JPEG and lose crisp edges. When the destination is a website, PNG to WebP on Windows often beats aggressive PNG filtering alone.

Resize in Photos or Paint first

Photos (Windows 11) is the fastest built-in path for camera and screenshot files:

  1. Open the PNG in Photos.
  2. Choose … → Resize image, pick a width (for example 1920 for a hero), and save a copy.

Paint works on every Windows PC: open the file, choose Resize, set pixels, then Save as PNG if transparency matters.

Zoom on small type, icon edges, and semi-transparent overlays. If the image is a photo without alpha, Save as JPEG at a sensible quality instead and keep the original PNG archived separately.

Both apps are slow for thirty mockups in a row and lack saved presets.

Lossless recompression with oxipng

After resize, lossless recompression shaves extra bytes without changing pixels. oxipng rewrites the PNG bitstream more efficiently than most design tool exporters.

Open Command Prompt or PowerShell. Install oxipng with winget:

winget install oxipng
oxipng -o 4 --strip safe screenshot.png

The --strip safe flag removes non-critical metadata while keeping color profiles that affect display. Run oxipng on the resized file, not on a 4000 px original you plan to shrink later.

For flat UI with large solid areas, test PNG first. Feeding a photo PNG through oxipng alone rarely fixes a bloated export when dimensions stay oversized.

Batch PNG with FFmpeg

When a folder of mockups shares the same max width, FFmpeg scales efficiently. Install with winget:

winget install --id Gyan.FFmpeg -e

Resize every PNG to a max edge of 1920 px:

mkdir out
Get-ChildItem *.png | ForEach-Object {
  ffmpeg -i $_.Name -vf scale=1920:-2 "out\$($_.Name)"
}
cd out
Get-ChildItem *.png | ForEach-Object { oxipng -o 4 --strip safe $_.Name }

Document the scale flags in your repo so teammates do not guess different settings on the same asset folder. FFmpeg does not remember presets, and mixed folders still need scripting or a dedicated app.

Online PNG compressors see your unreleased UI when you upload. For client mockups and staging assets, keep processing local. See are online file compressors safe on Windows for what upload actually means.

Using GetCompress

GetCompress handles mixed image folders on Windows without upload. Useful when a handoff directory contains PNG, JPEG, and WebP from different sources.

  • Drop a folder of PNG screenshots and set max width plus output format in one panel.
  • Apply a saved preset (for example “web PNG 1920px”) instead of retyping FFmpeg and oxipng commands each sprint.
  • Preview before export when icon edges and text must stay sharp.
  • Batch compress PNG on Windows for Teams, CMS uploads, or email without opening each file in Photos.
  • Convert PNG to WebP or JPEG in the same pass when the destination no longer needs alpha.

GetCompress does not replace Paint for a quick one-off resize. It pays off when the same settings return every week. Folder monitoring can watch an export directory and compress new PNG files automatically when your design tool drops fresh mockups into a shared handoff folder.

Compare byte size before and after on one representative screenshot, then use the online image comparison slider to check text, icon edges, and transparency at the same position.

Buy GetCompress now for local media compression with reusable presets and no media upload.