BMP vs PNG - Lossless Compression Explained, and How to Convert

Why a PNG can hold exactly the same pixels as a BMP in a fraction of the space, which images shrink most, and how to convert bitmaps to PNG safely.

Updated September 29, 2026 5 min read

Use the free BMP to PNGConvert BMP bitmaps to lossless PNG files that are often many times smaller

Converting a BMP to PNG is one of the few image conversions with no downside for the picture itself. Every pixel comes out exactly as it went in, and the file is usually much smaller. That makes it the right move for bitmap screenshots, scanned documents, diagrams, technical images and archives of old graphics, anywhere you cannot accept the quality loss of JPG.

This guide explains how PNG manages to be smaller without discarding anything, which kinds of images shrink dramatically and which barely change, how to convert in bulk, and how to verify that nothing was altered.

Same pixels, different storage

A BMP and a PNG of the same image describe identical pixels. The difference is purely in how they are written to disk.

  • BMP normally stores each pixel's colour in turn with no compression. A 1920 × 1080 screenshot at 24 bits per pixel is about 6 MB, whatever it shows.
  • PNG runs the pixel data through a two-stage process before storing it, and reverses it exactly when the file is opened.

How PNG compression works

  1. Filtering. For each row, PNG can replace each pixel's value with the difference from a neighbouring pixel (left, above, or a prediction from both). In smooth or flat areas, these differences are mostly zeros and small numbers.
  2. DEFLATE. The filtered data is then compressed with DEFLATE, the same algorithm used in ZIP files. It finds repeated sequences and encodes them compactly.

Because both steps are fully reversible, the decoder recreates every original value. That is what "lossless" means: not "barely visible loss", but none at all.

Which images shrink the most

The saving depends on how repetitive the image is.

Image type Typical result as PNG
Screenshots of apps and websites Dramatically smaller; large flat areas compress extremely well
Diagrams, charts, line art Dramatically smaller
Scanned text documents Much smaller, especially with clean white backgrounds
Photographs Smaller than BMP, but still large; JPG would be far smaller
Images full of random noise Little or no saving

So for photographs, PNG is a safe lossless option but not a space-efficient one. If a photo only needs to be viewed or shared, BMP to JPG produces much smaller files. Our guide on shrinking BMP files with JPG covers that route.

Other advantages of PNG

  • Universal support. Every browser, operating system, office suite and image editor opens PNG, and upload forms accept it.
  • Transparency. PNG supports full alpha transparency. 32-bit BMPs with alpha exist, but many programs ignore their alpha channel; PNG handles it reliably.
  • Metadata and colour. PNG can carry text notes, colour-space information and gamma data.

Convert BMP to PNG with our tool

The BMP to PNG converter decodes each bitmap in your browser and writes a lossless PNG. Files stay on your device.

  1. Open BMP to PNG and drop your .bmp or .dib files onto the upload box, or click to choose them. You can add many files at once, up to 50 MB each.
  2. Click Convert to PNG. There are no settings to worry about: output is always lossless, and transparency is carried over whenever the bitmap has an alpha channel your browser can read.
  3. Compare the sizes shown beside each file and in the batch summary.
  4. Download individual files with the PNG button, or the whole set with Download all (ZIP).

Other ways to convert

Paint on Windows

Open the BMP and choose File > Save as > PNG picture. Paint's PNG output is lossless, so this is a perfectly good method for a few files.

macOS Preview

Open the images, select them in the sidebar and use File > Export Selected Images with PNG as the format.

Command line: batch and verify

magick mogrify -format png *.bmp

To prove the conversion changed nothing, ImageMagick can compare the pixels of the two files:

magick compare -metric AE scan-001.bmp scan-001.png null:

A result of 0 means zero pixels differ. This check is worth doing once when you move an archive from BMP to PNG, before deleting originals.

Optimising further

PNG encoders differ in how hard they search for the best compression. Tools such as optipng or oxipng can squeeze existing PNGs by several percent more, still losslessly. For web use, the Image Compressor can reduce PNGs further, although it may use lossy colour reduction to do so.

Tips and pitfalls

Colour-indexed bitmaps

Old BMPs with 16 or 256 colours use a palette. The converted PNG displays identically. It may be saved as a full-colour PNG rather than a palette PNG, so a very small palette bitmap can occasionally produce a PNG that is not much smaller.

Very old or unusual BMP variants

The BMP format has several header versions and some rare encodings. If a file fails to decode in the browser, open it in Paint or an image editor and re-save it as PNG there.

Archiving

PNG is a well-documented open format and a sound choice for long-term storage of lossless images. Keep the file names identical apart from the extension to make cross-checking easy.

Going back to BMP

Some embedded devices and legacy programs require BMP. PNG to BMP writes standard 24-bit or 32-bit bitmaps from PNG files.

Web publishing

For a web page, even a PNG screenshot can often be made smaller by converting it with PNG to WebP. Check that small text stays sharp.

Frequently asked questions

Is converting BMP to PNG lossless?

Yes. PNG uses lossless compression, so every pixel in the PNG is identical to the BMP. Only the way the data is stored changes.

Why is the PNG so much smaller than the BMP?

BMP usually stores pixels without any compression, while PNG filters and compresses them with DEFLATE. Images with flat areas and repeated patterns shrink the most.

Is PNG or JPG better for converting BMP files?

PNG is better for screenshots, diagrams and anything with text, because it is lossless. JPG is better for photographs when a small file matters more than exact pixels.

Can I verify that no pixels changed?

Yes. Image comparison tools, such as ImageMagick's compare command, report how many pixels differ between two files. A lossless conversion reports zero.

Does PNG support transparency from 32-bit BMPs?

Yes, when the bitmap stores a proper alpha channel that the browser decodes. Some 32-bit BMPs leave the fourth byte unused, in which case the image is simply opaque.

Try it now: BMP to PNG

Loading tool…