FormatSwap › Formats › PNG
The PNG format
Born out of a patent dispute, PNG became the web's dependable lossless image format.
- Full name
- Portable Network Graphics
- Appeared
- 1996
- File extensions
- .png
- Our verdict
- Keep it See why
History
Why it was invented
PNG started with a patent. In 1983, Terry Welch of Sperry developed LZW, a fast compression method, and patented it.[1] When CompuServe's Bob Berry designed GIF in 1987, he chose LZW. CompuServe's Tim Oren later wrote that the algorithm “was incorporated from an open publication, and without knowledge that Unisys was pursuing a patent”.[1]
For years, Unisys, which Sperry had merged into, pursued only hardware makers. That changed with an agreement, quietly announced on 28 December 1994, to begin collecting royalties from authors of software that supported GIF.[1] Usenet erupted the following week. Out of the noise came an informal working group led by Thomas Boutell, whose purpose “was not only to design a replacement for the GIF format, but a successor to it: better, smaller, more extensible, and FREE”.[1]
What it was first used for
Boutell posted the first draft, then called PBF, on 4 January 1995. Within a week, most of PNG's major features had been proposed, including deflate compression and the PNG name itself, suggested by Oliver Fromme.[1] Greg Roelofs posted tests showing that simply replacing LZW with deflate improved compression by 10%. When the group couldn't agree, Boutell decided, as what Roelofs calls a “benevolent dictator”.[1]
It moved fast. On 7 February 1995, CompuServe announced that PNG would be the designated successor to GIF, and the specification was frozen at draft 9 in early March, just over two months after the first draft.[1] Fromme's first working viewer followed on 11 March. On 1 May, Jean-loup Gailly and Mark Adler released zlib, and Guy Eric Schalnat released the reference library that became libpng.[1]
What happened next
The W3C made it a Recommendation on 1 October 1996, and the IETF published it as RFC 2083 on 15 January 1997.[1] Browsers were the hard part. Microsoft added native support with Internet Explorer 4.0 in October 1997, and Netscape followed with Communicator 4.04 on 11 November 1997. At that point, Roelofs wrote, PNG could “truly claim to be a success”.[1]
Roelofs saw the group's main failure as animation. The team was burned out by May 1995 and didn't seriously return to multi-image support for a year, while Netscape 2.0's animated GIFs gave the older format a huge resurgence.[1] Version 1.2 became ISO/IEC 15948 in 2004, and the W3C's third edition, published on 24 June 2025, finally covers animated PNG.[2][3]
Pros and cons
Pros
- Lossless, with no quality loss however often it's re-saved.
- Full alpha transparency.
- Universally supported and royalty-free.
- Built-in checksums detect corrupted data.
Cons
- Much larger than JPEG or AVIF for photos.
- No lossy mode in the format itself.
- Newer features such as HDR aren't yet supported everywhere.
Use cases
- Screenshots, logos, diagrams and text.
- Images with transparent backgrounds.
- Working copies of images you plan to edit.
Pitfalls
- Saving a phone photo as PNG can make it 5–10 times bigger, with no visible gain.
- Converting a JPEG to PNG doesn't restore lost quality. It just preserves the damage perfectly.
- PNGs can include hidden metadata, including text comments, so check before publishing sensitive images.
Should PNG be discontinued?
Keep it
Keep it. PNG is what happens when a community gets a format right on nearly the first try: lossless, royalty-free, self-checking and readable everywhere. Its 2025 update shows that it can evolve without breaking old files.
Better lossless compression exists, and JPEG XL can beat it noticeably. But PNG's simplicity, its checksums and its universal support mean it should stay the default for screenshots and graphics for a long time yet.
This verdict is FormatSwap's opinion. “Discontinue” means stop creating new files, not stop reading old ones. How we decide.
PNG files in FormatSwap
Media Converter opens and creates PNG files.
Related formats
Sources
Numbers in the history above link to these pages. They cover the history section only; the pros, cons and verdict are our own assessment.
- History of PNG, Greg Roelofs, libpng.org
- Portable Network Graphics, Library of Congress, Sustainability of Digital Formats
- Portable Network Graphics (PNG) Specification (Third Edition), W3C