What Is a PNG File?
Learn what a PNG file is, how PNG compression and transparency work, and how PNG compares with SVG when you need a different image format.
Answer the main question
A PNG file is a raster image saved in Portable Network Graphics format. This file format stores pictures as a grid of pixels, with each pixel carrying its own color or opacity value. PNG is often used for screenshots, exported photos, logos, web graphics, and images that need clean edges or a transparent background.
PNG is not tied to a camera brand or operating system. It is a widely supported still-image format that browsers, photo editors, document tools, and video-call software can usually open without extra setup.
Explain how it works
PNG stores a rectangular grid of pixels at a fixed pixel dimension, such as 1920 by 1080. This gives the image a set width and height in pixels, but it does not by itself describe physical size in inches or centimeters. The same PNG can be displayed larger or smaller depending on the screen, document, or print setting.
The format uses lossless compression. This means the decoded image keeps the original pixel data without the visible quality loss that can appear with heavily compressed photos. PNG compression is better suited to graphics with flat colors, text, lines, and repeated areas than to detailed photographic noise.
A key feature of PNG is transparency. A pixel can be partly or fully transparent, which allows an image to blend smoothly with whatever is behind it. This is useful for logos, icons, watermarks, and overlays used in image or video tools.
Apply the explanation
Choose PNG when image detail must stay sharp and pixel-exact. Screenshots, app interface elements, charts, diagrams, and graphics with text usually work well as PNG files. Choose it when a transparent background is required. For photos, PNG can be used, but file size may become large compared with formats designed around photographic image compression.
PNG and SVG serve different purposes. A PNG is a raster image with fixed pixel dimensions. An SVG is Scalable Vector Graphics, a vector format that describes lines, shapes, and text as geometry. When you see searches such as png convert svg or png to svg, the task is usually a format conversion, not a simple background or size change.
If you need to convert SVG into PNG, render the vector image at the chosen pixel dimensions. This turns scalable shapes into a fixed-resolution raster image. If you convert PNG to SVG, the converter must trace or redraw the raster pixels as vector paths. The result depends on the source image: clean logos and flat shapes trace more predictably than complex photos.
Limits and related questions
PNG does not store animation in the same way as a video file. The format is designed for still images. Some related formats may support animation, but a standard PNG should be treated as a single frame.
PNG is not inherently a vector format. Enlarging a PNG beyond its original pixel dimensions can reveal softness or blocky edges because the image contains a fixed number of samples. This differs from SVG, which can scale cleanly because its elements are described mathematically.
Conversion between PNG and SVG does not always preserve every visual property. During SVG to PNG conversion, transparency and aspect ratio should be maintained when the exporter or command is configured correctly. During PNG to SVG conversion, small text, gradients, and complex photo detail may become simplified or difficult to edit as vector objects.