How to Open PNG Files on Windows, Mac, Linux and Mobile
Choose a safe PNG viewer or editor and diagnose files that refuse to open.
Platform-Specific PNG Viewers and Editors
PNG files are designed for broad compatibility, but the correct way to open one depends on your operating system and whether you need to view, edit, or diagnose the image. This guide covers safe, specification-compliant viewers for each major platform and explains what to do when a file refuses to open.
Windows: Built-in, Safe, and Specialized Options
Built-in Default
Windows 10 and 11 use the Photos app as the default PNG viewer. It handles standard 8-bit PNGs reliably but fails silently for specific sub-types:
- 16-bit grayscale or RGB PNGs — the app may display a blank, white, or posterized image.
- PNGs with embedded ICC profiles — color may appear desaturated or shifted.
- Animated PNGs (APNG) — only the first frame renders.
Validation check: Open a known 16-bit PNG in Photos. If the image appears blank but displays correctly in a browser, the file is valid and the viewer is at fault.
Safe fallback: Right-click the file → Open with → Microsoft Edge or Google Chrome. Both render all PNG color depths, alpha types, and APNG correctly per the W3C specification. For a dedicated offline viewer, IrfanView (free, with the PNG plugin pack) handles 16-bit depth, gamma correction, and embedded profiles.
macOS: Native Support and Thumbnail Limitations
Apple’s Built-in Tools
Preview (and the underlying Core Image framework) opens PNGs natively. It respects embedded color profiles and renders both 8-bit and 16-bit images correctly. For batch browsing, Finder with Icon view generates thumbnails from the file’s IDAT chunk (the compressed image data).
Thumbnail Failures Are Not Corruption
If a PNG uses an unsupported filter type or an interlacing method the thumbnail generator cannot parse, Finder displays a generic icon while Preview still opens the full image. This is a system-level limitation in the thumbnail daemon (quicklookd), not file corruption.
Validation check: Open the suspect file in Preview. If it displays correctly, the PNG is intact. To force thumbnail regeneration, run qlmanage -r cache in Terminal and restart Finder.
Safe viewer for advanced PNGs: GIMP (free) and Adobe Photoshop (paid) open every PNG sub-type defined in the specification, including palette-based alpha (PLTE with tRNS) and sBIT (significant bits) chunks.
Linux: Desktop Environments and Command-Line Validation
Desktop Environment Viewers
- GNOME:
eog(Eye of GNOME) supports all standard PNG chunks except APNG. - KDE:
gwenviewhandles ICC profiles and 16-bit depth. - Xfce:
ristrettois lightweight but skips gamma correction from thegAMAchunk.
Command-Line Validation
feh is the most reliable PNG viewer across Linux distributions. It respects the specification for gamma, chromaticity (cHRM), and transparency. To diagnose a file that will not open:
# Verify the PNG signature at the byte level
head -c 8 file.png | xxd
# Expected output: 89 50 4E 47 0D 0A 1A 0A
# Any deviation means the file is not a valid PNG.
pngcheck (available via apt install pngcheck) validates the entire chunk structure. A file that passes pngcheck but fails to open in a desktop viewer indicates a viewer bug, not file corruption.
Unsupported Features on Linux
- APNG is not supported by any default desktop viewer. Use
ffplayfrom FFmpeg or theapngasmtool suite. cHRM(chromaticity) chunks are ignored by most viewers outside of GIMP and Krita.
Mobile: iOS and Android
iOS / iPadOS
The built-in Photos app and Files app both open standard PNGs. For images with transparency, Photos renders the alpha channel against a black background. To view PNGs with full transparency over a checkerboard, use Affinity Photo or a third-party viewer.
Hard limit: iOS down-converts 16-bit PNGs to 8-bit for Camera Roll thumbnails. The original 16-bit data is preserved in the file, but the system preview will not reflect it. Open such files in a dedicated app to view the full bit depth.
Android
Android’s Gallery app (implementation varies by manufacturer) opens PNGs but often strips metadata on save. For viewing only, Google Photos is safe and preserves the original file. For editing, Krita (Android version) honors the full PNG specification.
Known viewer bug: Some OEM gallery apps ignore the pHYs chunk (physical pixel dimensions), causing images to display at incorrect DPI. To verify intended dimensions from a connected computer or terminal emulator:
identify -verbose image.png | grep -i "physical"
A mismatch between the reported physical dimensions and the on-screen display confirms a viewer bug, not a file defect.
Diagnosing a PNG That Refuses to Open
Before assuming corruption, eliminate three platform-agnostic causes:
- Wrong file signature. Renamed JPEG or WebP files carry a
.pngextension but lack the required 8-byte PNG signature. Verify with theheadcommand above. - Unsupported sub-type. The viewer may not support 16-bit depth, grayscale with alpha, or palette-based alpha. Test the file in a browser — browsers implement the full specification.
- Truncated download. Compare the local file size to the server-reported
Content-Length. A partial download fails at theIENDchunk.pngcheckreports “unexpected end of file” in this case.
Browsers as a Specification-Compliant Fallback
Every modern browser (Chrome, Firefox, Safari, Edge) implements the W3C PNG specification (Reference: PNG 3rd Edition) for:
- All color types: grayscale, truecolor, indexed, with or without alpha
- 8-bit and 16-bit depth per channel
- Gamma correction via the
gAMAchunk - sRGB and ICC color profiles
- Adam7 interlacing
Browsers are the most widely tested PNG renderers available. Drag any PNG file into a browser window for a standard-compliant render that bypasses platform-specific viewer limitations.