1 MB BMP sample file
A BMP file of exactly 1,048,576 bytes. It is a valid Windows bitmap file, generated for this site and checked with an independent parser.
Download
sample-bmp-1mb.bmp
1 MB1,048,576 bytes
Download 1 MB BMPDirect download. No sign-up and no waiting.
- Type
- image/bmp
- SHA-256
15310f849126cc2f9983503af81be97632abaac2f7e0f5cbca89ce95e894521b- Direct URL
https://sampletestfiles.com/downloads/bmp/sample-bmp-1mb.bmp
What is in this file
An uncompressed 683 × 510 test card. 2,002 bytes of unused space between the header and the pixel array bring the file to the exact size.
| Dimensions | 683 × 510 px |
|---|---|
| Bit depth | 24-bit RGB |
| Compression | None (BI_RGB) |
| Header | BITMAPINFOHEADER (40 bytes) |
| Row order | Bottom-up |
First bytes of the file
The first 64 bytes of sample-bmp-1mb.bmp as a hex dump: offset, bytes, then the same bytes as text. The BMP signature is 42 4D.
00000000 42 4d 00 00 10 00 00 00 00 00 08 08 00 00 28 00 |BM............(.|
00000010 00 00 ab 02 00 00 fe 01 00 00 01 00 18 00 00 00 |................|
00000020 00 00 f8 f7 0f 00 13 0b 00 00 13 0b 00 00 00 00 |................|
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|Preview
Displays the file in your browser.
Where 1 MB matters
A 1,048,576-byte file: exactly the default upload limit of nginx, Spring Boot and Next.js. These are the default limits a file of this size is useful for testing:
| System | Limit | Note |
|---|---|---|
| nginx | 1 MB by default (client_max_body_size) | A multipart upload of this file exceeds the limit by the size of the form boundaries. |
| Spring Boot multipart | 1 MB per file by default (max-file-size) | A file of exactly 1 MB is at the limit. |
| Next.js API routes and Server Actions | 1 MB by default | Larger bodies need the size limit raised in configuration. |
| Cloud Firestore documents | 1 MiB (1,048,576 bytes) | The same number of bytes as this file. |
| Apache Kafka messages | About 1 MB by default | Brokers reject larger records unless message.max.bytes is raised. |
Use this file for
- Download tests on mobile connections
- Checking that services convert BMP to a web format
- Testing decoders for legacy formats
Testing notes for BMP
- Some validators accept BMP by MIME type but have no decoder for it, which fails later in the pipeline.
- Row padding and bottom-up order are the usual causes of skewed or upside-down images in hand-written decoders.
Technical details
| File name | sample-bmp-1mb.bmp |
|---|---|
| Format | BMP (Windows bitmap) |
| Extension | .bmp |
| MIME type | image/bmp |
| Size | 1,048,576 bytes (1 MB) |
| Kind | Binary |
| Signature | 42 4D |
| SHA-256 | 15310f849126cc2f9983503af81be97632abaac2f7e0f5cbca89ce95e894521b |
| Created | 2026-10-10 |
| Validation | Exact size, signature bytes and structure checked when the file was generated |
| Preview | Available on this page |
| Source | Generated for this site; not copied from elsewhere |
| Licence | Free to use, modify and redistribute (terms) |
| Category | Images |
Validated for expected format and integrity. As with any download, scan the file with your own security tools before opening it. How files are made and checked
Download from the command line and verify
Fetch the file with curl, then compare its checksum with the SHA-256 value above.
curl -o sample-bmp-1mb.bmp 'https://sampletestfiles.com/downloads/bmp/sample-bmp-1mb.bmp'
sha256sum sample-bmp-1mb.bmp # Linux
shasum -a 256 sample-bmp-1mb.bmp # macOSOn Windows, run Get-FileHash sample-bmp-1mb.bmp -Algorithm SHA256 in PowerShell. A matching value proves that the download is complete and unaltered.
Related files
Questions about this file
- Is this file exactly 1 MB?
- Yes. It is 1,048,576 bytes, which is 1 MB in the binary units that operating systems and server limits use (1 KB = 1,024 bytes).
- What is inside the 1 MB BMP file?
- An uncompressed 683 × 510 test card. 2,002 bytes of unused space between the header and the pixel array bring the file to the exact size.
- What bit depth are the BMP samples?
- 24-bit RGB with no compression and no colour table.