Free BMP sample, test and dummy files

Uncompressed bitmap images. Large, simple and useful for testing how software handles inefficient formats. Download valid BMP test files in 19 exact sizes, from 1 KB to 100 MB, each with a checksum. Or create one of any size up to 1 GB.

Extension
.bmp
MIME type
image/bmp
Kind
Binary
Category
Images

Create a BMP file of any size

Choose any size from 58 bytes to 1 GB. The file is made in your browser, so nothing is downloaded from our server. Smaller files usually finish quickly; generation time depends on your device and format. Larger ones are streamed straight into your downloads list in browsers that support it (current Chrome, Edge and Firefox on computers and Android); elsewhere, such as Safari and every browser on iPhone and iPad, the largest size is lower and is shown below.

BMP files by size

Every file below is a valid Windows bitmap file of exactly the stated size. Open a file's page for its checksum and contents, and to preview it in your browser before downloading.

BMP sample files by size
FileSizeContentsDownload
1 KB BMP samplesample-bmp-1kb.bmp 1 KB1,024 bytes Dimensions: 20 × 16 px Download BMP
5 KB BMP samplesample-bmp-5kb.bmp 5 KB5,120 bytes Dimensions: 48 × 35 px Download BMP
10 KB BMP samplesample-bmp-10kb.bmp 10 KB10,240 bytes 66 × 50 px Download BMP
25 KB BMP samplesample-bmp-25kb.bmp 25 KB25,600 bytes Dimensions: 106 × 79 px Download BMP
50 KB BMP samplesample-bmp-50kb.bmp 50 KB51,200 bytes Dimensions: 150 × 113 px Download BMP
100 KB BMP samplesample-bmp-100kb.bmp 100 KB102,400 bytes 213 × 159 px Download BMP
200 KB BMP samplesample-bmp-200kb.bmp 200 KB204,800 bytes Dimensions: 301 × 226 px Download BMP
500 KB BMP samplesample-bmp-500kb.bmp 500 KB512,000 bytes Dimensions: 477 × 357 px Download BMP
1 MB BMP samplesample-bmp-1mb.bmp 1 MB1,048,576 bytes 688 × 508 px Download BMP
2 MB BMP samplesample-bmp-2mb.bmp 2 MB2,097,152 bytes Dimensions: 965 × 724 px Download BMP
3 MB BMP samplesample-bmp-3mb.bmp 3 MB3,145,728 bytes Dimensions: 1182 × 886 px Download BMP
5 MB BMP samplesample-bmp-5mb.bmp 5 MB5,242,880 bytes 1,526 × 1,144 px Download BMP
10 MB BMP samplesample-bmp-10mb.bmp 10 MB10,485,760 bytes Dimensions: 2158 × 1619 px Download BMP
15 MB BMP samplesample-bmp-15mb.bmp 15 MB15,728,640 bytes Dimensions: 2660 × 1971 px Download BMP
20 MB BMP samplesample-bmp-20mb.bmp 20 MB20,971,520 bytes Dimensions: 3053 × 2289 px Download BMP
25 MB BMP samplesample-bmp-25mb.bmp 25 MB26,214,400 bytes Dimensions: 3418 × 2556 px Download BMP
30 MB BMP samplesample-bmp-30mb.bmp 30 MB31,457,280 bytes Dimensions: 3698 × 2835 px Download BMP
50 MB BMP samplesample-bmp-50mb.bmp 50 MB52,428,800 bytes Dimensions: 4866 × 3591 px Download BMP
100 MB BMP samplesample-bmp-100mb.bmp 100 MB104,857,600 bytes Dimensions: 6832 × 5116 px Download BMP

What is a BMP file?

BMP stores pixels almost exactly as they sit in memory, usually without compression. A header describes the dimensions and bit depth, and the rows of pixels follow, normally from the bottom of the image upward.

Because there is no compression, file size is simply width × height × bytes per pixel plus a small header.

How to recognise a BMP file

Software recognises a BMP file by its file signature: fixed bytes at the start of the file, also called magic bytes or a magic number.

The first bytes of every file.
Extension.bmp
MIME typeimage/bmp
HeaderBITMAPFILEHEADER and a DIB header
CompressionUsually none
Row orderBottom-up by default
Row paddingEach row is padded to a multiple of four bytes

What to test for

These are the behaviours that most often go wrong when software handles BMP files.

Strengths of BMP

  • Trivial to read and write without a library.
  • No compression, so no quality loss and no decoding cost.

Limitations of BMP

  • Enormous files: every pixel is stored in full.
  • Unsuitable for the web, and rarely accepted by upload forms.

Typical uses of BMP test files

  • Testing size limits with naturally large images
  • Checking that services convert BMP to a web format
  • Testing decoders for legacy formats

Software that opens BMP

  • Windows Paint and Photos
  • All major browsers
  • Image editors and Pillow, ImageMagick

Specifications

Related

BMP sample files: questions

What bit depth are the BMP samples?
24-bit RGB with no compression and no colour table.
What is the MIME type of a BMP file?
The MIME type is image/bmp. The file extension is .bmp.
Is a sample BMP file the same as a dummy or example BMP file?
Yes. Sample, test, dummy and example BMP files are different names for the same thing: a BMP file with known contents that stands in for a real one. Any file on this page will do wherever a tutorial or a test plan asks for a dummy BMP file.