What the BMP to PNG does
BMP is the native bitmap format of Windows, and in its common form it stores every pixel uncompressed: three bytes of red, green and blue, with each row padded to a multiple of four bytes, as MDN's format guide describes. A 1920 by 1080 screenshot saved that way needs about 6.2 million bytes before any header. PNG stores the same pixels with lossless compression, so flat areas, repeated patterns and white space cost almost nothing.
This converter opens one .bmp file, draws it on a canvas at its own width and height and exports it as image/png. There is no quality slider because nothing is thrown away; the PNG decodes to exactly the pixels the browser read from the bitmap. The Download button saves the result under the original name with a .png extension.
It suits anyone clearing out a folder of bitmap screenshots, preparing a legacy image for a web page or document, or sending a scan by email without a multi-megabyte attachment. It is not an image compressor in the lossy sense: if you want a smaller photo at the cost of some detail, convert to JPG or WebP instead.
How to use it
Choose a BMP file
Select one .bmp from your device. Standard Windows bitmaps in 24-bit color decode in every current browser; the tool shows a plain error message if your browser cannot read the file.
Convert to PNG
Press Convert to PNG and the browser draws the decoded bitmap onto a canvas of the same size, then encodes it as PNG. No options are needed because the conversion is lossless.
Compare the sizes
The status line under the button lists the pixel dimensions, the BMP size and the PNG size, and a preview shows the result. Press Download to save the PNG, open it to confirm it matches, then delete or archive the bitmap.
Why the PNG is so much smaller than the BMP
An uncompressed 24-bit bitmap grows in strict proportion to its pixel count: width times height times three bytes, plus row padding and a small header. Content makes no difference; a blank white screen costs as much as a detailed photo.
PNG compresses with the lossless DEFLATE method and filters each row to make repetition easier to find, as the W3C specification lays out. A screenshot full of flat toolbars, text and white background therefore shrinks dramatically. A noisy photograph or a scan with paper grain compresses far less, so the saving is smaller.
The exact ratio depends on the picture, so the tool reports both sizes after every conversion rather than promising a number.
Which BMP files your browser can open
BMP is a family of formats rather than one. Wikipedia's BMP article catalogs several header versions (BITMAPCOREHEADER, BITMAPINFOHEADER, V4 and V5), optional run-length encoding for 4-bit and 8-bit images, bit-field masks for 16-bit and 32-bit pixels, and separate OS/2 variants. MDN notes that the uncompressed 24-bit form is by far the most common and that the other representations are rarely supported in web browsers.
The converter hands the file to the browser's image decoder and reports "This image could not be decoded by your browser" if it fails. Chrome, Edge, Firefox and Safari all read ordinary bitmaps; results for RLE-compressed, 1-bit, 16-bit, OS/2 or JPEG-in-BMP files vary by browser and version.
If a file is refused, open it in an image editor such as Paint, GIMP or Preview and re-save it as a standard 24-bit BMP, or export PNG from there directly.
Transparency, color depth and metadata
Most bitmaps are fully opaque and come out as opaque PNGs. A 32-bit BMP may carry an alpha channel, but browsers do not agree on whether to honor it or treat the fourth byte as padding, so transparency from a BMP is not something to rely on. Check the PNG over a dark background if it matters.
Indexed-color bitmaps with 256 or fewer colors are expanded to full color on the canvas, and the PNG is written as full-color pixels rather than a palette, so very small palette images may not shrink as much as larger ones. Embedded color profiles from a V5 header are dropped, since the PNG is written from the canvas's pixels only.
Width and height never change. The bitmap's bottom-up row order and padding are handled by the decoder and have no effect on the output.
Limits to know before you rely on it
- Only bitmaps your browser can decode will convert; RLE-compressed, OS/2 and other rare BMP variants may be refused.
- Alpha channels in 32-bit BMP files are handled inconsistently across browsers and may come out opaque.
- Color profiles and other header metadata are not carried into the PNG.
- Images over 80 megapixels are refused, and a bitmap that large is already hundreds of megabytes, so expect memory limits on phones.
- One file per run; there is no batch conversion.
Questions people ask about the BMP to PNG
Does converting BMP to PNG lose any quality?
No. PNG is a lossless format, so every pixel the browser decoded from the bitmap is stored exactly. The only things that change are the file size and the container; the picture itself is identical.
Why did my BMP fail to open?
The browser's decoder did not recognize the variant. Run-length encoded, 16-bit, OS/2 and JPEG-embedded bitmaps are supported unevenly. Re-save the file as an ordinary 24-bit bitmap in any image editor and try again, or export PNG from that editor.
Will the PNG always be smaller than the BMP?
Almost always, and often by a large factor for screenshots and graphics. Photographs and scans with grain compress less. The status line shows the before and after sizes so you can judge each file.
Is BMP transparency preserved?
Only if your browser exposes the alpha channel of a 32-bit bitmap, which varies. Most BMP files have no transparency at all, so the PNG is opaque. If you need a transparent result, start from a PNG or SVG source instead.
Can I convert several bitmaps at once?
Not here; the converter takes one file at a time. For a folder of files, a desktop image editor with batch export is the practical route, and this tool remains handy for single files on a machine where nothing is installed.
Where does the conversion happen?
Entirely in your browser. The bitmap is opened through a temporary local URL, decoded by the browser, drawn on a canvas and encoded as PNG with the canvas API. The site receives nothing and stores nothing.
Sources and further reading
- MDN Web Docs, Image file type and format guide: the common uncompressed BMP layout, row padding and browser support
- W3C, Portable Network Graphics (PNG) Specification (Third Edition): lossless DEFLATE compression and filtering
- Wikipedia, BMP file format (cited as a general overview): header versions, RLE compression, bit fields and OS/2 variants
- MDN Web Docs, HTMLCanvasElement.toBlob(): how the canvas is exported as image/png