Guide · PNG to JPG

What is a PNG file? The format explained, and when to convert it

What is a PNG file? What the letters stand for, why PNGs keep sharp edges and see-through backgrounds, how to open one, and when to convert it to JPG.

By Kola O. · Updated November 2026 · 5 min read
.PNG89 50 4E 47losslessalpha

A PNG file is an image saved in the Portable Network Graphics format, the one with the .png ending. PNG stores every pixel exactly, with no loss of quality, and it can have a see-through background. That makes it the usual format for screenshots, logos and graphics with text in them. PNG files are bigger, though: a photo saved as PNG is several times bigger than the same photo as a JPG, which is why people often convert PNG to JPG before emailing or uploading.

What PNG stands for, and where it came from

PNG stands for Portable Network Graphics, and the official way to say it is ‘ping’. The W3C’s PNG specification describes it as a format for the ‘lossless, portable, well-compressed storage of static and animated raster images’ and calls it ‘a patent-free replacement for GIF’.

That last part is the reason PNG exists. In the mid-1990s the web leaned on GIF, whose compression was tied up in patents, so an independent group wrote a free alternative. According to the Library of Congress format record, version 1.0 became the W3C’s first Recommendation on 1 October 1996, and the format was published as the international standard ISO/IEC 15948:2004 in March 2004.

PNG is still being updated. The third edition, a W3C Recommendation since 24 June 2025, brought animated PNG into the main specification, added support for high dynamic range (HDR) images and moved the eXIf chunk, which holds camera-style metadata, into the core format.

What’s inside a PNG file

Every PNG starts with the same eight bytes, which is how software recognises one even when the file has the wrong name. We checked one of the share images on this site: its first bytes read 89 50 4E 47 0D 0A 1A 0A. Bytes two to four spell ‘PNG’ in plain text, which is why you’ll see those letters if you ever open a PNG in a text editor.

After that signature the file is a run of labelled blocks called chunks. The first, IHDR, records the width, height and colour type, and our file reported itself as 1200 × 630 pixels with an 8-bit palette. Later chunks hold the compressed pixels, and optional ones can carry text such as Title, Author, Copyright or Creation Time.

PNG offers five colour types, which is part of why some PNGs are tiny and others are huge:

Colour typeWhat it storesTypical use
GreyscaleShades of grey onlyScanned text, simple line art
True colourFull red, green and blue values per pixelScreenshots, detailed graphics
Indexed colourUp to 256 colours from a paletteIcons, flat illustrations, small web graphics
Greyscale with alphaGrey plus a transparency valueSingle-colour shapes on a see-through background
True colour with alphaFull colour plus a transparency valueLogos and cut-out images that sit on any background

Sample depths range from 1 to 16 bits (1, 2, 4, 8 or 16, depending on the colour type), so a PNG can be a one-bit black-and-white image or a 16-bits-per-channel file for detailed editing work.

What PNG does well, and where it struggles

PNG compresses with DEFLATE, the same method gzip uses, and all of its compression is lossless. Open a PNG, save it again and the pixels come back exactly as they were, however many times you do it. JPG works the other way: it throws detail away each time it saves, which is how it gets files so small.

That difference decides which format suits a picture. MDN’s image format guide advises lossless encoding for ‘screenshots, diagrams, logos, and line art’, because blurring and coloured fringes around text and sharp edges are easy to spot. It calls JPEG a good choice for photographs and says PNG is ‘the fallback for any image needing transparency, as JPEG has no alpha channel’.

Photos are where PNG struggles. When we saved four photographs as PNG and converted them with our PNG to JPG tool at its default 90% quality, the JPGs came out 83–84% smaller. Screenshots and flat graphics shrink far less, and can even get bigger as JPGs. Our PNG vs JPG guide goes through that choice case by case.

How to open a PNG file

You almost certainly have something that opens PNGs already.

  • Any web browser. MDN lists PNG support in every version of Chrome, Edge, Firefox, Opera and Safari. Drag the file onto an open browser window and it displays straight away.
  • Windows. Microsoft says its Photos app supports JPEG, PNG, GIF, BMP and TIFF, so double-clicking a PNG normally opens it there.
  • Mac. PNG is the Mac’s own screenshot format: on macOS Tahoe 26 or later, Apple’s guide to taking a screenshot on Mac says the SDR (Most Compatible) setting captures in PNG. Double-click a PNG and it opens without any extra software.

If a PNG won’t open at all, the file is often damaged or mislabelled. A file that ends in .png but doesn’t begin with the eight signature bytes above isn’t really a PNG.

When to convert a PNG, and to what

Keep the PNG as your master copy if you might edit it again. Convert a copy when the file has a job to do:

Your situationWhat to do
A photo saved as PNG is too big to email or uploadConvert it with PNG to JPG
A form only accepts JPGConvert to JPG and pick a fill colour for any transparent areas
The PNG must stay a PNG but is over a size limitShrink it with Compress Image, or reduce the dimensions
You have a JPG and a site insists on PNGUse JPG to PNG; it changes the format but can’t restore lost detail
You have an SVG logo and need a normal imageRender it with SVG to PNG

JPG has no transparency, so when you convert, every see-through pixel has to become a solid colour. The PNG to JPG converter fills them with white unless you choose another colour, so pick the colour of the page or slide the image will sit on and you won’t get a white box around your logo. It runs in your browser, so the image isn’t uploaded anywhere.

Questions people ask

Is a PNG file safe to open?

A PNG holds picture data and a few optional labels, not a program. The PNG Working Group says it intends never to register chunks that contain executable data, and the specification recommends filtering control characters out of a PNG’s text labels before they are displayed. As with any file, open PNGs from strangers in an up-to-date browser or photo viewer.

What are PNG and JPG called?

PNG is short for Portable Network Graphics and is pronounced ‘ping’. JPG, also written JPEG, stands for Joint Photographic Experts Group, the committee behind the format. The .jpg and .jpeg endings mean the same thing.

Is a PNG file better than a JPEG file?

It depends on the picture. PNG is better for screenshots, logos, diagrams and anything with a see-through background, because it keeps every pixel and supports transparency. JPEG is better for photographs, where its lossy compression makes files far smaller with little visible difference at normal quality settings.

How do I make a PNG file?

Most apps can save or export as PNG: look for PNG in the Save As or Export menu. Screenshots are often PNGs already. On a Mac running macOS Tahoe 26 or later, screenshots are saved as PNG when the capture format is set to SDR (Most Compatible). To turn a JPG into a PNG, run it through a JPG to PNG converter, though that won’t bring back detail the JPG has already lost.

Can a PNG file be animated?

Yes. Animated PNG, known as APNG, is part of the PNG specification and works in Chrome, Edge, Firefox, Opera and Safari. An animated PNG can keep the .png ending, and the specification says software that can’t play animation shows a still image instead.

More guides