PNG: lossless images with transparency
PNG is a lossless format: it stores every pixel exactly, and it supports smooth transparency. That makes it right for logos, icons, screenshots and anything with sharp edges — and wrong for photographs, which come out several times larger than the same picture as a JPEG.
PNG at a glance
- File extensions
- .png
- MIME type
- image/png
- Compression
- Lossless. Pixels are predicted from their neighbours and the remainder is zipped.
- Transparency
- Full alpha channel (256 levels at 8 bits), so soft edges and shadows stay smooth.
- Animation
- Only as APNG, an extension that current browsers play but many editors ignore.
- Colour
- Palette (up to 256 colours), greyscale or full colour, at up to 16 bits per channel.
- Browser support
- Every browser, operating system and image app.
- In ImageDoctor
- Opens, resizes, crops and converts PNGs, keeping transparency. PNG has no quality setting, so the compressor shrinks it by resizing or converting to WebP. Metadata is removed without re-encoding.
Lossless means exactly the same pixels
Save a PNG a hundred times and the hundredth copy is identical to the first. Compression works by predicting each pixel from the ones above and to its left, then zipping the (usually small) differences. That works brilliantly on flat colour and repeating structure — a screenshot, a diagram, a logo — because the predictions are nearly always right.
It works poorly on photographs. A photo is millions of subtly different colours with sensor noise on top, so the predictions keep missing and there is little to zip. A PNG of a phone photo is routinely several times the size of a good-quality JPEG — often five times or more — with no visible benefit.
Transparency that looks right
Each PNG pixel can carry an alpha value from fully transparent to fully opaque, in 256 steps (more in 16-bit files). That is what lets a logo's anti-aliased edge or a soft drop shadow blend into any background. GIF can only switch a pixel on or off, which is why GIF cut-outs have jagged, haloed edges and PNG ones do not.
PNG-8, PNG-24 and PNG-32
These are informal names for PNG's colour modes. PNG-8 uses a palette of up to 256 colours and is very small for simple graphics. PNG-24 is full colour; PNG-32 is full colour plus alpha. Browser-based tools, ImageDoctor included, write full-colour PNGs — so a carefully palette-optimised PNG can come out larger after any edit. That is not a fault in the edit; it is the palette optimisation being undone.
Why "compressing" a PNG does little
PNG has no quality dial, because there is nothing it is allowed to throw away. To make a PNG meaningfully smaller you have three options:
- Make it smaller in pixels. Size scales with pixel count; halving the width and height quarters the data. The Image Resizer does this.
- Convert it to WebP. WebP keeps the transparency and is usually much smaller — often around half the size for screenshots. See PNG to WebP.
- Reduce it to a palette with a dedicated PNG optimiser, if the image genuinely has few colours.
When to use PNG
- Logos, icons and graphics with transparency, especially where the file must work in any software.
- Screenshots and images of text or interfaces, where JPEG artefacts would blur the edges.
- Working copies you will keep editing, so nothing degrades between saves.
- Pixel art and diagrams, where every pixel is deliberate.
When not to
- Photographs. Use JPEG to share them, or WebP/AVIF on a website.
- Web graphics where size matters. WebP does lossless and transparency too, usually in fewer bytes. For flat logos and icons, SVG is often smaller still and stays sharp at any size.
- Print masters from a camera. A 16-bit TIFF or the camera's raw file keeps more editing headroom.
Convert PNG files
Each converter runs in your browser with the output format already chosen. Add one file or a whole folder.
- PNG to JPG ConverterTurn PNGs into smaller JPGs, with control over quality and the background behind transparent areas.
- PNG to WebP ConverterShrink PNG screenshots and graphics by converting them to WebP, with transparency kept.
- JPG to PNG ConverterSave JPG photos as lossless PNG files — singly or in bulk, processed in your browser.
- WebP to PNG ConverterConvert WebP to PNG and keep transparent backgrounds intact — for editing or for apps that don't take WebP.
Common questions
Tools for PNG files
Keep reading
- The JPEG formatPhotos you send, upload or printFormat
- The WebP formatImages on websites you controlFormat
- The SVG formatLogos, icons and diagrams on the webFormat
- JPG vs PNG: which image format should you use?The practical difference between JPG and PNG: transparency, text, file size and quality loss — with a simple rule for choosing, and how to convert either way.Article
- Lossy vs lossless compression, explained for imagesWhat lossy and lossless compression actually do to an image, which formats use each, what the difference looks like, and how to choose for photos and graphics.Article
- How to make an image background transparentWhat transparency actually is, which formats keep it, how to turn a white background into a real transparent one, and how to check the result before you use it.Article