Skip to content

What Is a PNG File? – Lossless Image Format Explained

PNG preserves exact image quality with transparency support. Learn when to use PNG, how it compares to JPG, and how to optimize PNG files.

Updated PixelConvertor

Quick Answer

PNG (Portable Network Graphics) is a lossless image format: it keeps exact pixel data, so quality never degrades. It supports transparency, opens in every browser and application, and is the standard format for logos, icons, screenshots, and graphics with text.

What Is a PNG File?

PNG (Portable Network Graphics) is a raster image format created in 1996 as a free, patent-free replacement for GIF. Its compression is lossless, so no image data is lost when the file is saved. PNG supports full alpha-channel transparency, which makes it the standard format for images with see-through areas.

How PNG Compression Works

PNG compresses in two stages:

  1. Filtering, a pre-processing step that predicts each pixel's value from its neighbors and stores only the differences, which makes the data easier to compress
  2. Deflate compression, the same lossless algorithm ZIP files use, which finds repeated patterns and encodes them efficiently

Together they keep every pixel exact while making the file smaller than raw, uncompressed image data.

Key Characteristics

FeatureDetail
Full namePortable Network Graphics
Created1996
CompressionLossless (deflate/inflate)
TransparencyYes (full alpha channel, 8-bit)
Max color depth48-bit RGB + 16-bit alpha
AnimationAPNG (limited browser support)
Browser supportUniversal (all browsers)
LicensingFree and open (no patents)

When to Use PNG

  • Logos and branding, where edges and text must stay crisp
  • Icons and UI elements, which scale cleanly without artifacts
  • Screenshots, so text and interface elements render exactly
  • Graphics with transparency, which the alpha channel preserves
  • Images you will keep editing, since repeated saves lose no quality
  • Line art and illustrations, whose solid colors compress well

When to Use Something Else

  • Photographs: JPG or WebP produce much smaller files with acceptable quality
  • Web performance: WebP or AVIF make smaller files that load faster
  • Email attachments: JPG files are smaller and stay under size limits
  • Limited storage: lossy formats save a lot of space

PNG vs JPG at a Glance

AspectPNGJPG
QualityPixel-perfect, losslessDegrades with compression
TransparencyYesNo
Photo file sizeVery large (5-10 MB)Small (200-500 KB)
Text sharpnessPerfectMay show artifacts
Best forGraphics, logos, screenshotsPhotos, web images

Try It Now

Convert, compress, and optimize PNG files in your browser, with no software to install and no uploads to a server.

Convert and Optimize PNG

Frequently Asked Questions

What does PNG stand for?

PNG stands for Portable Network Graphics. It was created in 1996 as a free, open-source replacement for the GIF format, which was subject to patent disputes at the time. PNG supports lossless compression, full alpha transparency, and a wider range of color depths than GIF.

Is PNG lossy or lossless?

PNG is always lossless. It uses deflate/inflate compression (the same algorithm as ZIP files) to reduce file size without losing any image data. Every pixel is preserved exactly, no matter how many times you save and re-open the file.

When should I use PNG instead of JPG?

Use PNG for images with transparency, sharp text, logos, icons, screenshots, line art, and any image you plan to edit repeatedly. Use JPG for photographs where file size matters more than pixel-perfect accuracy. PNG photos are typically 5-10x larger than equivalent JPGs.

Can PNG files be compressed to be smaller?

Yes, PNG files can be optimized to reduce file size without losing quality. PNG optimization works by finding more efficient ways to encode the same data: stripping unnecessary metadata, optimizing the compression dictionary, and reducing color depth where possible. Our PNG compressor can typically reduce PNG file sizes by 20-40% with zero quality loss.