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 BMP

Direct 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.

Dimensions683 × 510 px
Bit depth24-bit RGB
CompressionNone (BI_RGB)
HeaderBITMAPINFOHEADER (40 bytes)
Row orderBottom-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:

SystemLimitNote
nginx1 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 multipart1 MB per file by default (max-file-size)A file of exactly 1 MB is at the limit.
Next.js API routes and Server Actions1 MB by defaultLarger bodies need the size limit raised in configuration.
Cloud Firestore documents1 MiB (1,048,576 bytes)The same number of bytes as this file.
Apache Kafka messagesAbout 1 MB by defaultBrokers reject larger records unless message.max.bytes is raised.

All 1 MB sample files

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.

BMP format reference

Technical details

File namesample-bmp-1mb.bmp
FormatBMP (Windows bitmap)
Extension.bmp
MIME typeimage/bmp
Size1,048,576 bytes (1 MB)
KindBinary
Signature42 4D
SHA-25615310f849126cc2f9983503af81be97632abaac2f7e0f5cbca89ce95e894521b
Created2026-10-10
ValidationExact size, signature bytes and structure checked when the file was generated
PreviewAvailable on this page
SourceGenerated for this site; not copied from elsewhere
LicenceFree to use, modify and redistribute (terms)
CategoryImages

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 # macOS

On 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.