Compress Bitmap
Compress BMP bitmap images online. Convert to JPEG, PNG, or WebP with adjustable quality, resize options, and instant size comparison.
Drop your BMP image here or click to browse
Supports .bmp, .dib · Max 50 MB
About
Bitmap files (.bmp) store pixel data uncompressed. A 1920×1080 image at 24-bit color depth occupies roughly 5.93 MB of raw data. That is 50× larger than the equivalent JPEG at 80% quality. Sending uncompressed bitmaps across networks wastes bandwidth. Storing them wastes disk space. This tool decodes the BMP on your device, re-encodes it into a lossy or lossless format, and lets you control the quality-to-size tradeoff directly. No data leaves your browser.
The compression factor depends on image content. Photographs with smooth gradients compress well under JPEG or WebP lossy encoding. Graphics with sharp edges and flat color regions benefit from PNG lossless compression. This tool reports the exact byte reduction so you can make an informed decision. Note: converting a BMP to lossy JPEG below quality 60% introduces visible artifacts around high-contrast edges. For archival work, prefer PNG or WebP lossless.
Formulas
The raw size of an uncompressed bitmap is calculated from its pixel grid and bit depth:
Where W = width in pixels, H = height in pixels, D = bit depth (typically 24 or 32 bits). BMP files also include a 54-byte header plus optional padding per row to align to 4-byte boundaries.
The compression ratio is:
Where Soriginal = original file size in bytes, Scompressed = output file size in bytes. A ratio of 90% means the output is 10% of the original size.
When resizing by a scale factor k:
Where k ∈ (0, 1] for downscaling. The canvas uses bilinear interpolation by default for smooth downsampling.
Reference Data
| Format | Type | Compression | Transparency | Max Colors | Typical Ratio vs BMP | Best For |
|---|---|---|---|---|---|---|
| BMP | Uncompressed | None (RLE optional) | No (32-bit alpha rare) | 16.7M | 1:1 | Raw pixel editing |
| JPEG | Lossy | DCT-based | No | 16.7M | 10:1 - 50:1 | Photographs |
| PNG | Lossless | DEFLATE | Yes (alpha channel) | 16.7M + alpha | 2:1 - 5:1 | Graphics, screenshots |
| WebP Lossy | Lossy | VP8-based | Yes | 16.7M | 15:1 - 60:1 | Web delivery |
| WebP Lossless | Lossless | Predictive + LZ77 | Yes | 16.7M + alpha | 3:1 - 8:1 | Web graphics |
| BMP RLE8 | Lossless | Run-Length Encoding | No | 256 | 1.5:1 - 3:1 | Simple 8-bit images |
| TIFF | Both | LZW / ZIP / None | Yes | 16.7M+ | 1:1 - 5:1 | Print, archival |
| GIF | Lossless (indexed) | LZW | 1-bit | 256 | 3:1 - 10:1 | Simple animations |
| AVIF | Both | AV1-based | Yes | 16.7M+ | 20:1 - 80:1 | Next-gen web delivery |
| JPEG XL | Both | VarDCT / Modular | Yes | 16.7M+ | 15:1 - 70:1 | Future replacement |
| ICO | Lossless | PNG or BMP | Yes | 16.7M | Varies | Favicons |
| SVG | Vector | XML text | Yes | Unlimited | N/A (vector) | Icons, logos |