PNG vs BMP: technical differences
To convert PNG to BMP, drop your PNG file into the converter above and download the BMP: an uncompressed bitmap that almost any program can open. It is free, needs no sign-up, and runs in your browser, so the file is never uploaded.
Both formats are lossless, so nothing about the image's detail changes — what changes is the packaging. PNG compresses its pixels with DEFLATE; Pixohub's BMP writes them raw at 24 bits per pixel, three bytes each, with every row padded to a multiple of four bytes. File size becomes completely predictable: width × height × 3 plus a 54-byte header. A 1920×1080 image is about 6.2 MB as BMP no matter what it shows, even if the PNG was only 80 KB.
The other change is transparency. BMP technically has 32-bit variants with alpha, but support in other programs is unreliable, so Pixohub writes plain 24-bit BMP and blends any transparent pixels onto white. The pixel rows are stored bottom-up, the classic Windows DIB layout that almost every BMP reader expects, and the resolution field is set to 72 DPI.
| PNG (Portable Network Graphics) | BMP (Bitmap Image File) | |
|---|---|---|
| Compression | Lossless (DEFLATE with per-row prediction filters) | Usually none (raw pixels); optional RLE for palette images |
| Colour depth | 1–16 bits per channel; truecolor, greyscale or 256-colour palette | 1–32 bits per pixel; typically 24-bit RGB |
| Transparency | Full 8/16-bit alpha channel | Rarely supported (32-bit variants only) |
| Animation | Only via the APNG extension | None |
| Metadata | Text chunks, ICC profile, gamma; EXIF via the newer eXIf chunk | Essentially none beyond resolution |
| Typical file size | Large for photos (often 2–3× a JPG); tiny for flat graphics | Very large — width × height × 3 bytes |
| Support | Universal — every browser, OS and editor | Universal on Windows; opens almost everywhere |
When to convert PNG to BMP
Images for microcontroller TFT displays
Arduino and similar hobby projects often load pictures from an SD card onto a small TFT screen using libraries that parse 24-bit uncompressed BMP, because decoding it needs almost no memory. If your splash screen or icon is a PNG, resize it to the display's exact resolution first, then convert to BMP here.
Legacy Windows software and industrial tools
Older Windows programs — in-house VB6 or Delphi tools, some label printers, engraving and machine-control software — may only import BMP. Converting a PNG logo to 24-bit BMP is the most compatible thing you can hand them.
Simple test inputs for your own code
Students writing their first image filter in C or Python often start with BMP because the header is easy to parse and the pixels are uncompressed. Converting a PNG test image gives a predictable 24-bit, bottom-up file to work with.
What converting PNG to BMP keeps and loses
What you keep
- Every opaque pixel exactly — PNG and BMP are both lossless, so there is no compression damage (a PNG with an embedded colour profile, such as Display P3, is first converted to sRGB, which shifts its values slightly).
- Pixel dimensions.
- Anti-aliased edges, blended smoothly onto white where they were semi-transparent.
What you lose
- Transparency — transparent areas become white in the 24-bit BMP.
- Small file size: expect the BMP to be many times larger than the PNG.
- 16-bit precision and any palette (indexed) structure; output is always 24-bit truecolour.
- PNG metadata, gamma and ICC profiles.
Our test: PNG to BMP on two real files
BMP size is pure arithmetic: 1600 × 1200 × 3 bytes plus a 54-byte header is 5,760,054 bytes, exactly what we measured, and the 800 × 600 graphic came to 1,440,054. That is 2.8 times the photo PNG but 6.4 times the graphic PNG, because PNG compresses flat graphics far better than photos while BMP compresses neither.
The graphic matched the PNG flattened onto white bit for bit. The photo did not (33.56 dB, SSIM 0.9996), only because the browser converted its Display P3 colours to sRGB before the BMP was written; the BMP step itself lost nothing. Each conversion took about a second.
Method: this converter in Chromium (Playwright 1.64.1) on an Apple M2 Mac, default 85% quality for lossy output. The photo is an iPhone 14 Pro Max shot scaled to 1600 × 1200, metadata intact; the graphic has a transparent background, soft shadow, gradients and text. SSIM and PSNR compare each result with the decoded original on white (how we test).
| Test file | PNG in | BMP out | Pixels vs original | Transparency | Camera EXIF | Time |
|---|---|---|---|---|---|---|
| Photo, 1600 × 1200 | 2.1 MB | 5.8 MB (2.8× larger) | SSIM 1.000 · 33.6 dB | None in source | Removed | 1.1 s |
| Graphic, 800 × 600, transparent | 225 KB | 1.4 MB (6.4× larger) | Identical pixels | Flattened onto white | None in source | 1.0 s |
Last updated
Apps and sites that work with PNG and BMP
Microsoft Paint
Paint opens and saves BMP natively and, in its Save as dialog, offers monochrome, 16-colour, 256-colour and 24-bit bitmaps. If a device needs one of the smaller variants, open the 24-bit BMP from here in Paint and re-save it; note that Paint's lower colour depths reduce the palette crudely.
Visual Basic 6 and other legacy runtimes
VB6's LoadPicture and many tools built on it read BMP, ICO, GIF and JPG but not PNG, which is why old in-house utilities, label designers and machine panels refuse PNG logos. A 24-bit BMP is the format such programs were written around.
Code that reads images without a library
The single-header C library stb_image reads BMP (except 1-bit and RLE-compressed files), and Python's Pillow and OpenCV both read 24-bit BMP. For anyone writing a parser by hand, a 54-byte header followed by bottom-up rows is about as simple as an image file gets.
Common PNG to BMP problems and fixes
Your own code draws the image upside down
The BMP stores its bottom row first, and its height field is positive to say so. A hand-written reader that copies rows in file order produces an upside-down picture. Read row height − 1 − y into position y, or check the sign of the height field: a negative height would mean top-down.
The picture is slanted or striped in your reader
Each BMP row is padded to a multiple of four bytes. A 1600-pixel row (4,800 bytes) needs no padding, but a 1001-pixel row needs one extra byte, and a reader that ignores it drifts sideways on every line. Compute the stride as floor((24 × width + 31) / 32) × 4 rather than width × 3.
A transparent logo gets a white rectangle in the legacy app
That is the 24-bit format: there is nowhere to keep alpha, so Pixohub blends edges onto white. If the program shows the logo on a grey or coloured panel, composite the PNG onto that exact colour in an editor before converting, so the anti-aliased edges blend into the right background instead of a white halo.
Tips for better PNG to BMP results
- Size the image to its final pixel dimensions before converting — BMP size grows with every pixel, compressed or not.
- If the target device needs a 16-bit (RGB565) or 1-bit BMP, this converter's 24-bit output will need a further conversion in a dedicated tool.
How this converter works
Pixohub decodes your PNG and encodes the BMP entirely inside your browser. Nothing is uploaded, so the conversion is private by design and as fast as your device.
Need more? Shrink the result with the image compressor, change its dimensions with the image resizer, or convert a whole folder at once with bulk format convert.