Cookie preferences

Read our cookie policy

Strictly necessary

Required for the site to function. These cannot be switched off.

Always active

Analytics

Help us understand which pages are useful, so we can improve them.

Marketing

Used to measure our advertising and show you relevant content elsewhere.

Get started

What Is a PNG File? (2026 Guide)

Itamar Haim

View as Markdown (opens in a new tab)
Table of contents

What Is PNG File? (2026 Guide)

A PNG file is a raster image saved in the Portable Network Graphics format, a lossless image type that keeps every pixel intact and supports full transparency. If you have ever exported a logo with a see-through background, saved a screenshot, or downloaded a web graphic that stayed crisp no matter how many times you opened it, you have almost certainly worked with a PNG file. This guide explains what PNG is, how its lossless compression works, when to use it instead of JPEG or WebP, and how to open or convert one without losing quality.

PNG was created in the mid-1990s as a free, patent-unencumbered replacement for the older GIF format, and it has been a web and design staple ever since. It is the format you reach for when sharp edges, clean text, and transparency matter more than the smallest possible file size. Below, we walk through the format from the ground up so you know exactly when a PNG is the right choice and when another format serves you better.

What a PNG File Actually Is

PNG stands for Portable Network Graphics, and the format stores an image as a grid of pixels, which is why it is called a raster or bitmap image. Each pixel holds precise color information, and PNG can store that information in several depths, from simple palette-based color up to full 24-bit color with an extra 8-bit alpha channel for transparency. That alpha channel is one of the format’s defining features, because it lets a single pixel be fully opaque, fully transparent, or any level of partial transparency in between.

Because PNG is a raster format, a PNG file has a fixed pixel dimension. A 1200 by 800 PNG contains exactly 960,000 pixels, and enlarging it beyond that size forces the software to invent pixels, which softens the image. This is different from a vector format, which stores shapes as math and scales to any size cleanly. For photographs, screenshots, and detailed graphics, raster is the natural fit, and PNG is one of the most widely supported raster formats in the world. Every modern browser, operating system, and image editor reads it without a plugin.

Photographer working on a laptop at a bright wooden desk

How Lossless Compression Works in PNG

The single most important thing to understand about PNG is that its compression is lossless. When you save a PNG, the format shrinks the file by finding patterns and redundancy in the pixel data, then storing that data more efficiently using an algorithm called DEFLATE. Crucially, it throws nothing away. When the file is opened again, every original pixel is reconstructed exactly. Save, close, reopen, and resave a PNG a hundred times, and the image quality never degrades.

This is the opposite of lossy compression, which permanently discards image detail to reach a smaller file. Lossless compression is why PNG is trusted for anything with hard edges and flat color, such as logos, icons, user-interface elements, diagrams, and text screenshots. In those images, a lossy format would introduce faint halos and smudges around the sharp boundaries, while PNG keeps every edge razor clean. The trade-off is size. Because PNG preserves all the data, a detailed photograph saved as a PNG is usually much larger than the same photo saved in a lossy format.

PNG vs JPEG vs WebP

Choosing an image format comes down to matching the file type to the content. PNG, JPEG, and WebP each solve a different problem, and knowing the difference saves you both quality and bandwidth.

JPEG uses lossy compression tuned for photographs. It excels at continuous-tone images like landscapes and portraits, where the eye does not notice small amounts of discarded detail, and it produces very small files as a result. JPEG does not support transparency, and it struggles with sharp edges and text, where its compression leaves visible artifacts. Reach for JPEG when you need a compact photograph and transparency is not a concern.

PNG is lossless and supports transparency. It is the right pick for graphics with crisp edges, flat color, and areas that need to be see-through, such as logos, icons, screenshots, and web elements layered over a colored background. The cost is a larger file when the image is a busy photograph.

WebP is a newer format that can operate in both lossy and lossless modes and supports transparency in both. It often produces smaller files than either PNG or JPEG at comparable quality, which makes it attractive for the web. Its main drawback is compatibility with a small number of older tools and workflows, although support is now broad across modern browsers. A practical rule holds up well: use JPEG for standalone photos, use PNG when you need transparency or perfectly clean edges, and consider WebP when your top priority is the smallest web file and your audience uses modern browsers.

When to Use a PNG File

PNG is the correct choice in several clear situations. Use it whenever you need transparency, because a logo or product cutout that must sit on any background depends on PNG’s alpha channel. Use it for images dominated by text or sharp lines, such as screenshots, infographics, charts, and UI mockups, where lossless compression keeps every character legible. Use it when an image will be edited and resaved repeatedly during a project, since PNG never accumulates compression damage across saves.

There are times when PNG is the wrong tool. A full-frame photograph headed for a fast-loading web gallery is usually better as a JPEG or WebP, because the PNG version can be several times larger with no visible benefit. And any artwork that needs to scale to billboard size belongs in a vector format, not a raster PNG. Matching the format to the job is the whole game, and once you know PNG’s strengths, the decision becomes quick.

How to Open and Convert a PNG File

Opening a PNG requires nothing special. Every operating system previews it out of the box, every web browser displays it, and every image editor from the simplest viewer to a professional layer-based application reads and writes it. Double-click the file and it opens. That universal support is a big part of why the format has stayed popular for so long.

Converting to or from PNG is just as straightforward. To turn a PNG into a JPEG, open it in any image editor and choose Export or Save As, then pick JPEG and set a quality level. Going the other direction, from JPEG to PNG, is possible but remember that it cannot recover detail the JPEG already discarded, and it will not add transparency that was never there. When you convert, keep an original copy of your highest-quality file so you always have a clean source to work from. For batch conversions of many files at once, most editors and many free online tools can process a whole folder in one pass.

Where PNG Fits in a Professional Photo Workflow

For working photographers, PNG plays a specific and limited role. The images that come off a camera are RAW files, and the finished images you deliver to clients are almost always JPEGs, because a full wedding or event gallery in PNG would be enormous and slow to share. PNG tends to show up around the edges of the job, for a watermark with a transparent background, a logo on a contact sheet, a graphic for a client’s web page, or a clean screenshot for a tutorial.

The heavier lifting in a photo workflow happens before any file is exported, during culling and editing across a whole shoot. This is where Imagen fits in. Imagen is a desktop app for Mac and Windows, and its new Studio is where you cull, edit, review, and export in one project. It grades an entire shoot in your own consistent style, applying color correction, exposure, and white balance across every frame, and it narrows down near-duplicate bursts during culling so you are not scrolling through ten versions of the same moment. It then exports finished, consistent JPG, TIFF, or PNG files straight from Imagen, or sends the edits back to Lightroom Classic. Pricing is pay on export, so you pay for the photos you export while exploring the tools is free. Imagen does not create the PNG assets around your gallery, but it does handle the grading and culling that turn a full card of RAW captures into a coherent, deliverable set.

If you work with image and design files often, two companion guides go deeper on formats you will meet alongside PNG. Read what is a PSD file to understand the layered editing format, and see the photo filters guide for how tone and color adjustments are applied. You can also browse the full library of photography workflow tips for more on editing, culling, exporting, and delivery.

What’s new in Imagen: Imagen is now an intelligent, agentic Studio for professional photographers, rolling out gradually as a beta. It gives you one project where you cull, edit, review, and export in any order. When the shoot is ready to deliver, you can export finished JPG, TIFF, or PNG files straight from Imagen, or send your AI edits back to Lightroom Classic as XMP. See how the Studio works at Imagen.

Frequently Asked Questions

What is a PNG file used for?

A PNG file is used for images that need lossless quality or transparency, such as logos, icons, screenshots, diagrams, and web graphics. Because PNG keeps every pixel intact and supports a transparent background through its alpha channel, it is the standard choice whenever sharp edges, clean text, or a see-through background matter more than reaching the smallest possible file size.

Is PNG better than JPEG?

Neither is universally better, because they solve different problems. PNG is lossless and supports transparency, which makes it best for graphics, logos, and text-heavy images with crisp edges. JPEG uses lossy compression and produces much smaller files for photographs, where a little discarded detail is invisible. Use PNG for transparency and clean edges, and use JPEG for compact standalone photos.

Does saving a PNG reduce its quality?

No. PNG uses lossless compression, so saving, closing, and resaving a PNG does not degrade the image. Every original pixel is reconstructed exactly each time the file is opened. This is why PNG is trusted for images that are edited and resaved many times during a project, unlike lossy formats that lose a little detail with each save.

How do I convert a PNG to a JPEG?

Open the PNG in any image editor, choose Export or Save As, select JPEG as the format, and pick a quality level. The editor writes a new lossy file while leaving your original PNG untouched. Keep in mind that a JPEG cannot store transparency, so any transparent areas in the PNG will be filled with a solid background color, usually white.

Can a PNG have a transparent background?

Yes. Transparency is one of PNG’s defining features. The format includes an alpha channel that lets each pixel be fully opaque, fully transparent, or partially transparent. This is what allows a logo or product cutout saved as a PNG to sit cleanly on any background color or photo without a visible box around it, which is why designers rely on PNG for overlay graphics.

Edit Less. Shoot More.

Join 10,000+ photographers getting weekly workflow hacks, business tips, and exclusive presets delivered straight to their inbox.

Be present for the work you care about.

Imagen applies your creative choices across every project, keeping your work consistent, personal, and unmistakably yours.

Try Imagen today

Accessibility options

These settings change how this site is displayed. They are saved on this device only.

Text size