PNG Converter
/png-converter/
Related tools
Comments
About this tool
When to use a PNG converter
PNG is the default for images whose background must show through: logos, icons, stickers with transparent backgrounds and shapes for presentations. When a WebP saved from the web or an iPhone HEIC photo will not open in an older image editor or office program, converting it to PNG, which opens almost everywhere, often solves the problem. PNG is also used to keep work in progress that will be edited and saved many times without losing quality.
Read moreShow less
This converter takes several images in any format the browser can open, including JPG, WebP, GIF, BMP, AVIF and HEIC, and saves them as PNG. Files are never sent to a server; they are processed only in the browser on this device, and each file's original and new size is shown.
This is also why the Windows Snipping Tool and the macOS screenshot feature save PNG by default. Text and lines on a screen show even slight blurring, and PNG preserves every pixel exactly, so letters stay sharp even when zoomed in.
How PNG lossless compression and transparency work
PNG was published as a W3C Recommendation in 1996. It was created as a free replacement for GIF after patent issues arose over the LZW compression GIF used. Each row of pixels first passes through a filter that turns values into differences from neighboring pixels, and the result is compressed with DEFLATE, the same family as zip. Decompressing it returns every original pixel value unchanged. Images with large flat areas and repeating patterns shrink the most.
Transparency is stored as an alpha value with 256 levels per pixel. GIF can only mark pixels as fully transparent or opaque, which gave edges a jagged look, whereas PNG can hold the partial transparency of shadows and soft borders. This tool draws the image on a canvas and saves it with canvas.toBlob('image/png'). Because the format is lossless there is no Quality setting, and transparent areas are kept as they are.
Every PNG file begins with the same 8 bytes, which deliberately include line break characters so that a file mangled by a text mode transfer is detected immediately. Inside, the file is divided into chunks, each carrying a CRC value for error detection, so damage can be spotted too.
Deciding whether PNG suits each kind of image
Text heavy screenshots, tables, charts and illustrations with crisp edges and few colors come out small and sharp as PNG. Camera photos are the opposite: neighboring pixels differ subtly, so lossless compression does little, and the same photo can be several times larger as PNG than as JPG or WebP. For photos going on the web, JPG or WebP is the better choice.
Designers and bloggers who edit in several stages can save intermediate versions as PNG and convert only the final published version to JPG or WebP, so the loss happens just once. When transparency is essential, as with product images with the background removed or signature images, PNG has the widest compatibility.
SVG is increasingly used for icons and logos on the web, but in places that do not accept SVG, such as office documents and messaging apps, PNG remains the standard. If you add an SVG here, the browser renders it as a pixel image at the size it reads and saves it as PNG.
PNG conversion myths and limits
Converting JPG to PNG does not improve quality. Information lost when the image was saved as JPG does not come back; PNG only keeps the current state from getting any worse. So converting a JPG photo to PNG usually gives the same quality in a larger file.
The browser canvas saves 8 bit per channel RGBA, so a 256 color palette PNG can come out larger than the original, and a 16 bit PNG is saved as 8 bit. The compression level is chosen by the browser, so a dedicated PNG optimizer will produce smaller files if you need every last byte. Metadata such as EXIF is dropped, and only the first frame of an animated GIF or APNG is saved.
Because PNG files are large, putting them on web pages as is can slow loading. For web images that need transparency, WebP supports transparency too and is worth comparing.
Popular tools
FAQ
Does converting JPG to PNG improve image quality?
No. Information lost when the image was saved as JPG cannot be recovered. PNG only preserves the current state so it does not get worse, and photos usually get larger.
Why is there no quality setting for PNG?
PNG is lossless, so compression never changes pixel values and there is no notion of quality. To make the file smaller, reduce its dimensions or convert it to JPG or WebP.
Is the transparent background kept?
Yes. Transparency and partial transparency in the original are kept as they are. An original without transparency, such as a JPG, becomes an opaque PNG.
Why did the file get bigger after converting to PNG?
Photos saved losslessly can be several times larger than JPG or WebP. Palette PNGs with few colors can also grow because the browser saves them again as full RGBA.
Which files can be converted to PNG?
Any image your browser can open: JPG, WebP, GIF, BMP, SVG, ICO, AVIF (Chrome, Edge, Firefox and recent Safari), and iPhone HEIC and HEIF. Only the first frame of a GIF is converted.
Are my files uploaded to a server?
No. All conversion happens in your browser and files are never sent to a server. Camera metadata (EXIF, location and so on) is removed from the converted files.