Bitmap to PNG Converter
Convert BMP bitmap images to PNG format instantly. Free online tool with transparency support, batch processing, and lossless quality conversion.
Drop BMP files here
or click to browse
Converting...
Quick Test:
About
BMP files consume excessive storage due to their uncompressed pixel data structure - a 1920×1080 image at 24-bit depth requires approximately 6.2MB, while the equivalent PNG compresses to under 2MB without quality loss. This converter performs genuine pixel-level transformation using the Canvas API, not simple file renaming. Critical distinction: BMP lacks native alpha channel support in most variants, whereas PNG provides full 8-bit transparency per pixel. The tool detects 32-bit BGRA bitmaps and preserves their alpha data during conversion. Processing occurs entirely in your browser - no server uploads, no compression artifacts, no metadata stripping unless the source lacks it.
Formulas
The conversion pipeline maps BMP pixel arrays directly to PNG output through canvas intermediation. Each pixel maintains its RGB values through the transformation.
Where BMPpixels represents the raw BGRA or BGR byte array from the source file. The browser's native image decoder handles BMP header parsing - including BITMAPINFOHEADER and BITMAPV5HEADER variants - then renders to an off-screen canvas. PNG encoding applies predictive row filters (None, Sub, Up, Average, Paeth) before DEFLATE compression.
Compression ratio depends on image content. Flat-color regions compress efficiently (10× reduction), while photographic content achieves approximately 2−4× reduction. The D value represents bit depth (3 bytes for RGB, 4 bytes for RGBA).
Reference Data
| Property | BMP (Bitmap) | PNG |
|---|---|---|
| Compression | None (RLE optional) | DEFLATE (lossless) |
| Typical File Size | 5−10× larger | Baseline reference |
| Alpha Transparency | 32-bit only (rare) | Full support (8-bit) |
| Color Depth | 1, 4, 8, 16, 24, 32-bit | 1, 2, 4, 8, 16-bit per channel |
| Max Colors | 16.7 million (24-bit) | 281 trillion (48-bit) |
| Web Browser Support | Partial (no <img> in some) | Universal |
| Animation Support | No | APNG extension |
| Metadata (EXIF) | Limited | Full (tEXt chunks) |
| Interlacing | No | Adam7 interlace |
| Magic Bytes | 42 4D (BM) | 89 50 4E 47 |
| Invented | 1986 (Microsoft/IBM) | 1996 (W3C) |
| Use Case | Legacy Windows apps | Web, icons, screenshots |
| Lossy Variant | None | None (use JPEG/WebP) |
| Patent Status | Patent-free | Patent-free |
| ICC Color Profile | Embedded (v5) | iCCP chunk support |