Skip to main content
🇪🇸 Español 🇧🇷 Português 🇩🇪 Deutsch
Image Converter Video Converter Audio Converter Document Converter
Tools Guides Formats Pricing API
Log In
Guide

PNG: Portable Network Graphics — Complete Technical Deep Dive

PC By Pablo Cirre

Related conversions

Put what you just learned into practice — convert your files now in seconds, free and without registration.

Frequently Asked Questions

PNG uses lossless DEFLATE compression, while JPEG uses lossy DCT compression. For photographic images with millions of subtle color variations, lossless compression is inherently less efficient — there are no "similar" pixels to discard. A typical full-resolution photo might be 8–15 MB as PNG-RGBA vs 2–5 MB as JPEG at high quality. Use PNG only when you need pixel-perfect lossless quality or transparency. For photographic web content, use JPEG or WebP lossy.

PNG uses sem perdas DEFLATE compressão, while JPEG uses com perdas DCT compressão. para photographic images com millions of subtle color variations, sem perdas compressão is inherently less efficient — there are no "similar" pixels to discard. A typical full-resolution photo might be 8–15 MB as PNG-RGBA vs 2–5 MB as JPEG at alta qualidade. usar PNG only when you need pixel-perfect sem perdas quality ou transparência. para photographic web content, usar JPEG ou WebP com perdas.

PNG uses verlustfrei DEFLATE Komprimierung, while JPEG uses verlustbehaftet DCT Komprimierung. für photographic images mit millions von subtle color variations, verlustfrei Komprimierung is inherently less efficient — there are no "similar" pixels to discard. A typical full-resolution photo might be 8–15 MB as PNG-RGBA vs 2–5 MB as JPEG at hohe Qualität. verwenden PNG only when you need pixel-perfect verlustfrei quality oder Transparenz. für photographic web content, verwenden JPEG oder WebP verlustbehaftet.

PNG uses sin pérdidas DEFLATE compresión, while JPEG uses con pérdidas DCT compresión. para photographic images con millions de subtle color variations, sin pérdidas compresión is inherently less efficient — there are no "similar" pixels to discard. A typical full-resolution photo might be 8–15 MB as PNG-RGBA vs 2–5 MB as JPEG at alta calidad. usar PNG only when you need pixel-perfect sin pérdidas quality o transparencia. para photographic web content, usar JPEG o WebP con pérdidas.

Use <strong>lossy</strong> (JPG, WebP, AVIF) for photographs — the human eye barely notices the difference at quality 80–85, and file sizes are 5–20× smaller. Use <strong>lossless</strong> (PNG, WebP-lossless) for screenshots, UI mockups, logos and anything with sharp edges or text — lossy creates ugly artifacts around boundaries.

Using Python Pillow: `Image.open("input.png").save("output.webp", "WEBP", quality=80)`. Using cwebp: `cwebp -q 80 input.png -o output.webp`. For lossless WebP: `cwebp -lossless input.png -o output.webp`. Lossy WebP at quality 80 reduces PNG file size by 60–80% for most content. For logos and icons that require exact colors, use lossless WebP. Always verify transparency is preserved if the PNG has an alpha channel.

Using Python Pillow: `Image.open("input.png").save("output.webp", "WEBP", quality=80)`. usando cwebp: `cwebp -q 80 input.png -o output.webp`. para sem perdas WebP: `cwebp -lossless input.png -o output.webp`. com perdas WebP at quality 80 reduces PNG tamanho do arquivo by 60–80% para most content. para logos e icons that require exact colors, usar sem perdas WebP. Always verify transparência is preserved if the PNG has an alpha channel.

Using Python Pillow: `Image.open("input.png").save("output.webp", "WEBP", quality=80)`. Using cwebp: `cwebp -q 80 input.png -o output.webp`. für verlustfrei WebP: `cwebp -lossless input.png -o output.webp`. verlustbehaftet WebP at quality 80 reduces PNG Dateigröße by 60–80% für most content. für logos und icons that require exact colors, verwenden verlustfrei WebP. Always verify Transparenz is preserved if the PNG has an alpha channel.

Using Python Pillow: `Image.open("input.png").save("output.webp", "WEBP", quality=80)`. Using cwebp: `cwebp -q 80 input.png -o output.webp`. para sin pérdidas WebP: `cwebp -lossless input.png -o output.webp`. con pérdidas WebP at quality 80 reduces PNG tamaño de archivo by 60–80% para most content. para logos y icons that require exact colors, usar sin pérdidas WebP. Always verify transparencia is preserved if the PNG has an alpha channel.

For new projects in 2026, WebP is supported by all modern browsers (95%+ of traffic) and saves 25–35% over JPG at the same visual quality. AVIF is even more efficient (40–50% smaller) but encoding is slower and Safari support is recent. Use WebP as the default and AVIF as the progressive enhancement via <code>&lt;picture&gt;</code> with JPG fallback.

PNG interlacing (Adam7 algorithm) stores image data in 7 passes of increasing resolution: 1/64 → 1/32 → 1/16 → 1/8 → 1/4 → 1/2 → full. A progressive browser can show a blurry low-resolution preview after downloading just 1/64 of the data, then refine it as more data arrives. The trade-off: interlaced PNG files are 10–20% larger than non-interlaced equivalents for the same content. For modern websites using HTTP/2 (which multiplexes requests efficiently), non-interlaced PNG is generally preferred since the initial load time difference is negligible.

It depends on the tool: ImageMagick and FFmpeg copy EXIF by default, while cwebp drops it unless you pass <code>-metadata all</code>. KaijuConverter strips metadata server-side after conversion to protect your privacy — if you need to keep camera or GPS data, use a desktop tool you control.

pngquant converts truecolor PNG (RGBA, 8 bits per channel) to 8-bit indexed PNG with a 256-color palette using lossy quantization. For many graphics — logos, UI elements, icons — this is visually lossless while reducing file size by 50–80%. The `--quality 80-95` parameter controls the quality-vs-size trade-off. Run with `--speed 1` for best quality quantization. The output maintains full alpha transparency support through the palette's alpha channel values. Always visually verify the output on critical images with complex gradients or subtle color transitions.

Pngquant converts truecolor PNG (RGBA, 8 bits per channel) to 8-bit indexed PNG com a 256-color palette usando com perdas quantization. para many graphics — logos, UI elements, icons — this is visually sem perdas while reducing tamanho do arquivo by 50–80%. The `--quality 80-95` parameter controls a qualidade-vs-size trade-off. Run com `--speed 1` para melhor qualidade quantization. The output maintains full alpha transparência support através de the palette's alpha channel values. Always visually verify the output on critical images com complexo gradients ou subtle color transitions.

Pngquant converts truecolor PNG (RGBA, 8 bits per channel) to 8-bit indexed PNG mit a 256-color palette using verlustbehaftet quantization. für many graphics — logos, UI elements, icons — this is visually verlustfrei while reducing Dateigröße by 50–80%. The `--quality 80-95` parameter controls die Qualität-vs-size trade-off. Run mit `--speed 1` für beste Qualität quantization. The output maintains full alpha Transparenz support durch the palette's alpha channel values. Always visually verify the output on critical images mit complex gradients oder subtle color transitions.

Pngquant converts truecolor PNG (RGBA, 8 bits per channel) to 8-bit indexed PNG con a 256-color palette using con pérdidas quantization. para many graphics — logos, UI elements, icons — this is visually sin pérdidas while reducing tamaño de archivo by 50–80%. The `--quality 80-95` parameter controls la calidad-vs-size trade-off. Run con `--speed 1` para mejor calidad quantization. The output maintains full alpha transparencia support a través de the palette's alpha channel values. Always visually verify the output on critical images con complex gradients o subtle color transitions.

Three common causes: (1) ICC color profiles dropped during conversion shift colors slightly; (2) chroma subsampling (4:2:0) reduces color accuracy in lossy JPG/WebP; (3) the new format may not support all features of the original (e.g. PNG → JPG drops transparency to white). For pixel-perfect results stick to lossless formats and preserve color profiles explicitly.