Categories About Us Contact Us Become a Member

What Is a BMP File? The Windows Bitmap, Why It Is So Big and How to Open It

BMP files hold raster images in the Windows bitmap format. Free software opens them in seconds. Jump to your question below, or work through it in order.

By Neeraj Singh ~20 min Updated Nov 2026 Checked against Microsoft documentation, RFC 7903 and the Library of Congress
Short answer

BMP files are raster images in the Windows bitmap format. Every BMP file opens with the letters BM and stores pixels in rows, mostly with no compression. Microsoft documents the layout in its GDI pages.

BMP file size follows plain math. Width, height and bit depth decide it and every row pads to a 4 byte boundary. A 1920 by 1080 picture at 24 bits takes 6,220,854 bytes.

Free software opens BMP files in seconds. Paint, Preview and GIMP all read them. Convert to PNG when size matters because PNG keeps every pixel.

1 What Is a BMP File? The Windows Bitmap in Plain Words

An old photo folder, a Windows icon pack or a retro game dump hands you a file that ends in .bmp. It opens on one computer and fails on the next.

Every BMP file holds one raster image in the Windows bitmap format. The name is short for bitmap. The first two bytes of the file spell BM to prove it.

Microsoft documents the layout in its GDI pages. BMP files start with a file header and then an information header. Color table and pixel data follow. See Microsoft's bitmap storage page for the order.

Most BMP files store pixels raw. The Library of Congress says most are uncompressed and that 16 and 32 bit files never use compression. That makes the format quick to read and heavy on disk.

Two names cover one family. DIB means device independent bitmap. RFC 7903 lists both .bmp and .dib as extensions for the image/bmp media type.

BMP files are Windows bitmap images that begin with the letters BM. Rows of pixels pad to 4 byte boundaries. Most BMP files carry no compression at all.

BMP file format at a glance

BMP file format at a glance
BMP file extension
.bmp, also .dib
Name means
Bitmap
What a BMP file is
Raster image
Made by
Microsoft for Windows, shared with OS/2
Signature
BM, bytes 42 4D
File header
14 bytes
Most common info header
40 bytes, called BITMAPINFOHEADER
Bit depths
1, 4, 8, 16, 24 and 32 bits per pixel
Compression
Mostly none. RLE for 4 and 8 bit pictures
Pixel byte order
Blue, green, red
Row padding
Every row ends on a 4 byte boundary
Media type
image/bmp, registered in RFC 7903

Came here for a game or print format? TGA files and TIFF files cover those jobs. Section 8 compares them with a BMP file.

BMP files store every pixel raw. Size equals header bytes plus padded row bytes times height. A 1920 by 1080 picture at 24 bits takes 6,220,854 bytes.

2 Why Is a BMP File So Big? Raw Pixels, Row Padding and the Math Behind the Size

BMP files are big because they store every pixel raw. Nothing shrinks the data unless the file uses RLE. RLE exists only for 4 and 8 bit pictures.

The size math is short. Microsoft gives the row size as the width in bits, rounded up to the next multiple of 32 and then divided by 8. The BITMAPINFOHEADER page prints the formula.

Diagram of three rows from a BMP file that is 5 pixels wide at 24 bits per pixel. Every pixel takes three bytes in the order blue, green and red, so five pixels fill 15 bytes. The file adds one gray padding byte at the end of the row to reach 16 bytes, which is a multiple of 4. All three rows show the same pattern. The formula below the rows reads width times bits, plus 31, rounded down to a multiple of 32, divided by 8, and equals 16 for this picture.
Five pixels at 24 bits fill 15 bytes. One padding byte brings every row to 16.

Row padding adds a few bytes. A 24 bit picture one pixel wide holds 3 bytes of color and 1 byte of padding in every row. A width of 4 needs none, says the Wikipedia BMP article.

What common pictures cost on disk

BMP file sizes with the 40 byte header and no compression. Indexed pictures include a full color table at 4 bytes per color.
PictureRow bytesPixel bytesFile bytes
1920 by 1080 at 24 bits5,7606,220,8006,220,854
1920 by 1080 at 32 bits7,6808,294,4008,294,454
4000 by 3000 at 24 bits12,00036,000,00036,000,054
4096 by 4096 at 24 bits12,28850,331,64850,331,702
100 by 100 at 8 bits10010,00011,078
100 by 100 at 1 bit161,6001,662

Look at the last row. A 1 bit picture of 100 pixels across needs 13 bytes of data in a row. Padding lifts it to 16.

Color depth drives the rest. A true color picture stores 3 bytes for every pixel. An indexed picture stores one small number per pixel and keeps the colors in a table.

The image size field can hold 0 for uncompressed pictures, says Microsoft. A reader then works out the size from the width, the height and the row formula.

How to shrink a BMP file

1 Convert it to PNG. PNG compresses without losing a pixel. Section 9 shows the steps.
2 Count the colors. A logo with 200 colors fits an 8 bit indexed BMP file at a quarter of the true color size.
3 Try RLE on flat art. RLE helps only 4 and 8 bit pictures with long stretches of one color. GIMP offers it on export.

The row formula also rescues damaged files. Multiply the stride by the height and add the header sizes. The total should match the file size from your folder view.

Windows opens BMP files with their built in codec. Preview opens it on a Mac. GIMP and ImageMagick cover editing and batch jobs for free.

3 What Opens a BMP File for Free? Windows, Mac and Free Editors

Windows and macOS open a BMP file without extra software. Free editors add export choices and batch tools.

Microsoft lists a native BMP codec in the Windows Imaging Component and names .bmp and .dib as its extensions. See the WIC BMP overview. Programs built on that codec read the format by default.

Software that opens a BMP file

Programs that open a BMP file and where every one is documented.
SoftwareTypeWhat to know
PaintBuilt into WindowsWikipedia lists BMP among the formats Paint saves. Others are JPEG, GIF, PNG and TIFF
WIC appsWindows programsMicrosoft ships a native BMP decoder and encoder in WIC
PreviewBuilt into macOSOpens BMP files and exports to BMP according to Wikipedia
GIMPFree image editorExport dialog offers an RLE option and 16, 24 and 32 bit RGB formats
ImageMagickCommand line toolReads and writes BMP. Writes version 4 by default and BMP3 or BMP2 for older versions

Sources sit in the Wikipedia Paint article, the Wikipedia Preview article, the GIMP BMP export page and the ImageMagick format table.

ImageMagick also lists DIB as a BMP file without the file header. Use that tag only when you hold raw DIB data.

Mac owners double click the BMP file and Preview draws it. The macOS guides help when that fails.

Just need to look?

Double click the BMP file. Windows and Preview both draw it at once.

Need to edit or convert?

Open it in GIMP or Paint. Use ImageMagick when a folder waits.

Open your BMP file in GIMP

1 Install GIMP. GIMP costs nothing and installs on Windows, Mac and Linux.
2 Choose File and then Open. Select the BMP file and confirm. The picture lands as one flat layer.
3 Check the colors. Reds that look blue point to a reader that mixed up the byte order. Section 6 explains it.
4 Export what you need. Use File and then Export As to write PNG or a new BMP file.

Windows users who see an error at a double click can start from the message in the Windows error guides.

Need layers? BMP files are flat. Layered work belongs in PSD files instead.

Suspect the program before the BMP file. Read the first two bytes and the header size, then try a second program.

4 Why Will My BMP File Not Open? Five Causes and a Hex Check That Sorts Them

BMP files that refuse to open have one of five faults. Four sit in the program or the label on the file and one sits in the data.

The viewer does not know the header variant BMP headers come in 12, 40, 108 and 124 byte forms. Wikipedia lists more, including two that Microsoft never documented. Small viewers read only the common form.
The signature is not BM Windows BMP files start with bytes 42 4D. A different pair means a renamed file from another format or an OS/2 file. The Library of Congress lists BA, CI, IC, CP and PT for OS/2.
The copy is short The file header records the full size of the file in bytes. Any BMP file smaller than that number lost data in transit.
The compression is a pass through type Values 4 and 5 hold JPEG or PNG data. Microsoft says an application must query for support first. A viewer that skips the query cannot decode the file.
The bit depth is rare Wikipedia lists 2 bit pictures from Windows CE and 64 bit pictures from GDI+. Check the depth field before you blame the file.

Pictures at 16 and 32 bits can use bit fields. Those files need a reader that parses the three masks after the header.

The size check catches most real damage. Section 2 gives the formula and section 5 shows where the numbers live.

Start with the cheap test. Open the BMP file in two programs before you suspect the data.

Four checks that sort file faults from program faults

1 Read the first two bytes. Open the BMP file in a hex editor. Windows files show 42 4D, the letters BM.
2 Read the header size. Bytes 14 to 17 hold it as a little endian number. 28 00 00 00 means 40 and is the common form.
3 Compare the size. Bytes 2 to 5 hold the size the writer recorded. Check it against the real size of the file on disk.
4 Try two programs. GIMP and Paint use different readers. The file that one rejects can open in the other.

Microsoft documents the signature and size fields in the BITMAPFILEHEADER page. The values 0x4d42 and the 14 byte layout come from there.

Files that fail all four checks lost data in transit or on disk. No tool can invent pixels that never arrived. Fetch the file again or ask the sender for a new export.

Still no luck? Send us the error text with the file size. Reports from readers shape our next guides.

BMP files hold a 14 byte file header, an info header, an optional color table and pixel rows. The header size field tells readers which variant they face.

5 What Is Inside a BMP File? Two Headers, a Color Table and Pixel Rows

Every BMP file is a stack of short blocks. Microsoft lists them in a fixed order.

A 14 byte file header comes first. An information header follows and then a color table when the picture needs one. Pixel data fills the rest. Version 5 files can carry profile data after the pixels.

A real BMP file of 630 bytes drawn to scale as one horizontal bar. The bar has four blocks. The first block is the 14 byte file header. The second is the 40 byte BITMAPINFOHEADER. The third is a 64 byte color table with 16 colors at 4 bytes apiece. The fourth is 512 bytes of pixel data, which fills most of the bar. The example is the Redbrick picture from Microsoft documentation, 32 pixels by 32 pixels at 4 bits per pixel. The pixel data begins at offset 118.
Microsoft's Redbrick example drawn to scale. Pixels take 512 of the 630 bytes.

The 14 byte file header and the 40 byte info header

Fields at the start of a BMP file. Every value is little endian.
OffsetFieldWhat it holds
0SignatureThe letters BM, 0x4D42
2File sizeSize of the BMP file in bytes
6 and 8ReservedTwo fields, both zero
10Pixel offsetDistance from the first byte to the first pixel
14Header size40 for BITMAPINFOHEADER
18 and 22Width and heightBoth in pixels. The sign of the height sets row order
26PlanesAlways 1
28Bits per pixel1, 4, 8, 16, 24 or 32
30Compression0 means none. Section 11 lists the others
34 to 49Image size and resolutionPixel bytes and pixels per meter, across and down
46 and 50Colors used and importantZero means the full table

Microsoft's Redbrick example proves the offsets. Its file header records a size of 630 bytes and a pixel offset of 118. That equals 14 plus 40 plus a 64 byte table.

Pictures with bit fields add three masks right after the header. Masks mark which bits of a pixel hold red, green and blue.

Pixel offset matters because it skips masks, tables and padding that a reader does not know. A good viewer jumps to that spot instead of guessing.

Resolution fields store pixels per meter across and down. Windows GDI never reads them. Wikipedia gives 2835 pixels per meter as the match for 72 dots per inch.

What every bit depth stores

Pixel storage by bit depth in a BMP file with the 40 byte header.
DepthColorsHow pixels are stored
1 bit2Index into the color table. Eight pixels share one byte
4 bit16Index into the color table. Two pixels share one byte
8 bit256Index into the color table. One pixel fills one byte
16 bit32,768 or 65,536Direct color. Uncompressed files use RGB 555 and bit fields allow RGB 565
24 bit16,777,216Three bytes in blue, green, red order
32 bit16,777,216 plus alphaFour bytes. The high byte stays unused unless masks or a V5 header say otherwise

Microsoft states the 16 bit rules on the BITMAPINFOHEADER page. The color counts follow from the bit counts.

Where the color table fits

Pictures at 8 bits or fewer carry a table of 4 byte entries called RGBQUAD. The fields go blue, green, red and then one reserved byte, according to the RGBQUAD page.

A zero in the colors used field means the table holds every color the depth allows. A 4 bit picture then carries 16 entries and an 8 bit picture carries 256.

Your BMP file is not damaged. A positive height stores rows bottom up and a negative height stores them top down. Pixel bytes start with blue.

6 Why Does My BMP File Look Upside Down or Off Color? Height Sign and Blue First Byte Order

Your picture appears flipped or the reds look blue. Nothing is damaged. BMP files store two details in ways that surprise newer programs.

The first is row order. Microsoft says a positive height marks a bottom up picture with its origin at the lower left. A negative height marks a top down picture with its origin at the upper left.

Two panels compare row order in a BMP file. In the left panel the height field is positive, the first row in the file is the bottom row of the picture, and rows are read upward. In the right panel the height field is negative, the first row in the file is the top row, and rows are read downward. A note says compressed pictures must use a positive height. Below both panels a strip shows the three bytes of one 24 bit pixel in file order as blue, green and red.
The sign of the height field flips row order. Pixel bytes always start with blue.

Compressed pictures must use a positive height, according to the BITMAPINFOHEADER page. Top down files are therefore always uncompressed.

The second detail is byte order. A 24 bit pixel stores blue first and red last. Microsoft says the RGBQUAD order matches 24 and 32 bit pixel data, which is the reverse of the usual RGB order.

A reader that assumes red first swaps the two colors. Skin looks blue and skies look orange.

How to fix a flipped or tinted BMP file

1 Open the BMP file in a second program. GIMP and Paint follow the height sign and the byte order. A picture that looks right there points at the first viewer.
2 Flip it if it is still upside down. Use the flip vertical command in your editor and save a new copy.
3 Swap channels if the colors look wrong. An editor that reads BGR files correctly shows true colors. Export as PNG to lock them in.
4 Check the new file where you plan to use it. Open it in the final program before you delete the old copy.

Writers can choose either row order. Both are valid. Programs that use top down buffers write negative heights, which is why you meet both kinds.

Yes, in 32 bit BMP files with a version 4 or version 5 header and an alpha mask. Older headers leave the high byte unused. Many programs ignore alpha anyway.

7 Can a BMP File Hold Transparency? Header Versions, Alpha Masks and What Windows Reads

A BMP file can hold transparency but most do not. The answer depends on the header version and on the program that reads the file.

The old 40 byte header has no alpha field. Microsoft says the high byte of every 32 bit pixel goes unused with no compression. See the BITMAPV5HEADER page.

Four BMP header sizes drawn as horizontal bars to scale. BITMAPCOREHEADER is 12 bytes and is the oldest form with no compression. BITMAPINFOHEADER is 40 bytes and is the most common form. BITMAPV4HEADER is 108 bytes and adds a color space, CIE endpoints and gamma. BITMAPV5HEADER is 124 bytes and adds a rendering intent and ICC profile support. Notes list the Windows or OS/2 version that introduced every header.
Four header sizes drawn to scale. Larger headers add color management.

Version 5 headers can point at an ICC profile. Microsoft says the profile is either linked by file name or embedded in the file after the pixels.

Newer headers add what the old one lacks. Version 4 declares masks for red, green, blue and alpha. Version 5 adds a rendering intent and profile fields.

What Windows reads and what it ignores

Alpha handling in BMP files according to Microsoft and Wikipedia.
CaseResult
32 bit, no compression, old headerHigh byte unused, per the BITMAPV5HEADER page
WIC reading 16 or 32 bit BMP filesAlpha ignored, because many old files hold invalid data there
WIC on Windows 8 and laterReads 32 bit files with a V5 header and valid alpha
GIMP and ChromeHonor a declared alpha mask, says Wikipedia
WIC writing alphaNeeds the EnableV5Header32bppBGRA option set to true

The WIC overview covers the first three rows. Wikipedia covers GIMP and Chrome.

GIMP names the choice in its export dialog. The 32 bit choices read A8 R8 G8 B8 for alpha and X8 R8 G8 B8 for an unused byte.

Need clear backgrounds? Save the picture as PNG. The PNG standard defines an optional alpha channel for every color type.

Use PNG for storage and sharing. Use BMP files only when a program or device names them. JPEG suits photos and TIFF suits print work.

8 BMP File or PNG, JPEG, TIFF and TGA? Choose by the Job and Not by Habit

Choose the format by the job. BMP files win only when the receiving program names them.

How a BMP file compares with five other picture formats.
FormatPixel lossBest for
BMP fileNone, even with RLEWindows programs and tools that name BMP
PNGNoneScreenshots, graphics, archives and the web
JPEGYes, lossyPhotos where small size matters. See JFIF files
TIFFDepends on the compressionPrint and scanning. See TIFF files
TGANone, with optional RLEGame and video work. See TGA files

PNG is the usual swap. The W3C PNG standard describes it as lossless and well compressed, with an optional alpha channel.

The Library of Congress rates the BMP file unsuited for general web use. Browsers still recognize uncompressed files. Viewers and editors read them widely.

Keep a BMP file when

A program or device names it. Windows tools and older software still ask for the format.

Use PNG when

You store or share the picture. PNG keeps every pixel in a smaller file.

Older bitmap formats and neighbors

Many DOS paint programs wrote PCX files before BMP spread. Game artists pack textures into DDS files instead.

Camera raw files hold sensor data. BMP files hold finished pixels. Develop raw files first. The raw guides cover DNG files, ARW files, CR2 files, NEF files, RAF files and CRW files.

Logos and drawings scale without blur only as vectors. Keep them in AI files, EPS files, CDR files or PDF files and not in a BMP file.

Open the BMP file in Paint or Preview and save it as PNG. ImageMagick converts a full folder with one command. PNG keeps every pixel.

9 How Do I Convert a BMP File to PNG? Paint, Preview and ImageMagick Plus Three Traps

Three free tools convert a BMP file to PNG without losing a pixel. Start with the one already on your computer.

Paint on Windows

1 Open the BMP file in Paint. Right click the file and choose Open with and then Paint.
2 Choose Save as and then PNG. Paint lists PNG among its save formats, along with JPEG, GIF, TIFF and BMP.
3 Name the new file. Keep the original BMP file until the PNG opens where you need it.

Preview on a Mac

1 Open the BMP file in Preview. Double click it.
2 Choose File and then Export. Wikipedia says Preview exports to BMP, JPEG, PNG, TIFF and more.
3 Select PNG as the format and save. The BMP file stays in its folder.

Convert a folder of BMP files

ImageMagick lists BMP as readable and writable. Open a terminal inside the folder and enter the command below.

magick mogrify -format png *.bmp

The command writes a PNG file next to every BMP file and leaves the originals alone. Test it on copies first.

Watch for these three traps

JPEG loses pixels JPEG is lossy. Choose it only for photos where small size matters. See JFIF files for the format.
Alpha can go missing Any BMP file without an alpha mask has no transparency to move. Check for a V4 or V5 header first.
Odd depths change A 16 bit BMP file converts to PNG color values. Converting back up never restores lost shades.

Going the other direction means adding layers. Open the BMP file in an editor and save PSD files when you plan to add layers.

Keep the BMP file while a program needs it. Archive a PNG copy when the project ends because it stores the same pixels in less space.

10 Should I Keep My BMP Files? When Storage Cost Says Convert

Keep the BMP file while a tool in your workflow asks for it. Store a PNG copy once the work is done.

Size is the first reason. A thousand full screen captures at 1920 by 1080 and 24 bits take 6,220,854,000 bytes. That is about 6.2 GB for pictures you view once. Screen recordings belong in video files like MP4 files instead of thousands of frames.

Plain structure is the second reason. The Library of Congress notes that the BMP file has no embedded metadata and no patent concerns. Neither point helps when you need dates or captions.

Keep the BMP file when

A tool still lists it. Check the import dialog of the program before you delete the source.

Retire the BMP file when

The project is finished. Archive a PNG copy and confirm that it opens.

Three checks before you delete a BMP file

1 Open the PNG copy. Confirm that the colors, the size and the transparency match.
2 Ask who still needs the BMP file. A teammate or a device can depend on it.
3 Keep one untouched original. Copies in backup folders cost little and save a re-export.

Questions about extensions in general go to the guide to file formats. The what is hub covers software and services.

The BMP file format is the Windows bitmap layout with 14 byte file headers and variable info headers. RFC 7903 registers image/bmp for it.

11 BMP File Format and Structure Specification Values, Registry Records and Corrections

This section collects the checkable facts. Every value comes from Microsoft documentation or a named public record.

BMP file specification

BMP file specification
Documented by
Microsoft in its Windows GDI pages
Extensions
.bmp and .dib
Media type
image/bmp, RFC 7903, September 2016
Signature
42 4D, the letters BM
File header
14 bytes
Header sizes
12, 40, 108 and 124 bytes
Version 5 requirement
Windows 2000 or later for the header structure
Row padding
Rows round up to a 4 byte multiple
Planes field
Must be 1
Color table entry
4 bytes, blue then green then red then reserved
LoC record
BMP version 5, fdd000189

Compression values

Values of the compression field according to Microsoft MS-WMF and Wikipedia.
ValueNameMeaning
0BI_RGBUncompressed pixels
1BI_RLE8RLE for 8 bit pictures
2BI_RLE4RLE for 4 bit pictures
3BI_BITFIELDSUncompressed with color masks for 16 and 32 bit
4BI_JPEGJPEG data for pass through
5BI_PNGPNG data for pass through
6BI_ALPHABITFIELDSBit fields with alpha, named by Wikipedia

Values 11 to 13 mark CMYK variants. MS-WMF lists them for Windows Metafiles. See the MS-WMF compression page.

Header sizes

DIB header variants according to Wikipedia and the Library of Congress.
BytesNameNotes
12BITMAPCOREHEADEROldest form with 16 bit dimensions and no compression
40BITMAPINFOHEADERWindows 3.0 and still the most common form
108BITMAPV4HEADERWindows 95 and NT 4.0. Adds color space and gamma
124BITMAPV5HEADERWindows 98. Adds rendering intent and ICC profiles

A short history of the BMP file

Wikipedia dates the 40 byte info header to Windows 3.0 in 1990. It adds that Windows NT brought bit fields for 16 and 32 bit pictures in 1993.

Version 4 arrived with Windows 95 and Windows NT 4.0. Version 5 followed with Windows 98, according to the Library of Congress and Wikipedia.

Sources disagree on whether Windows or OS/2 created the device independent bitmap. This page states no origin for that reason.

Icons and cursors reuse the structure. Wikipedia says their images begin with a BITMAPINFOHEADER.

What people get wrong about the BMP file

BMP files are not always uncompressed. RLE8 and RLE4 exist. Both stay lossless.

BMP files do not always lack alpha. Version 4 and version 5 headers declare an alpha mask. Many programs ignore it.

BMP files do not store red first. Pixel bytes start with blue and then go green and red.

Where these BMP file facts come from

Microsoft supplies the structures, the row formula and the compression values. The Library of Congress record and RFC 7903 supply the media type and the signature.

Wikipedia supplies the extra header sizes and the history. The file formats primer defines the shared vocabulary. The format index lists every FileFix guide.

Frequently Asked Questions About BMP Files

What does BMP stand for?
BMP is short for bitmap. RFC 7903 says the magic number 42 4D, the letters BM, means bitmap. Microsoft calls the layout the Windows bitmap format and documents it in its GDI pages.
How do I open a BMP file?
Double click it. Windows opens BMP files with its built in codec and Preview opens them on a Mac. GIMP and ImageMagick open it for free on any system.
Is a BMP file lossless?
Yes. BMP files store pixels raw or with RLE. RLE keeps every pixel. Converting a BMP file to JPEG is what loses detail. Convert to PNG instead when you need a smaller lossless file.
Why is my BMP file so big?
BMP files store every pixel without compression. A 1920 by 1080 picture at 24 bits takes 6,220,854 bytes. Converting it to PNG shrinks it without losing a pixel.
Is BMP the same as DIB?
They are close relatives. DIB means device independent bitmap and the Library of Congress uses the name for the same family. RFC 7903 lists .bmp and .dib as extensions for image/bmp.
Can a BMP file have transparency?
Yes, with a 32 bit picture and a version 4 or version 5 header that declares an alpha mask. The old 40 byte header leaves the high byte unused. Many programs ignore alpha in BMP files.
What are the letters BM at the start of a BMP file?
They are the signature. The bytes 42 4D mark a Windows bitmap. Some OS/2 files start with BA, CI, IC, CP or PT, according to the Library of Congress.
Can a BMP file be compressed?
Yes, with RLE. BI_RLE8 covers 8 bit pictures and BI_RLE4 covers 4 bit pictures. Most BMP files use no compression. Files at 16 and 32 bits never use it.
Why do the colors in my BMP file look swapped?
BMP files store pixel bytes in blue, green, red order. Readers that expect red first swap the two colors. Open the file in GIMP or Paint. Both read the order correctly. Export PNG to lock the colors in.
How do I convert a BMP file to JPG?
Open the BMP file in Paint or Preview and save a copy as JPEG. JPEG is lossy. Keep the BMP file or a PNG copy as your master. Convert to PNG instead when you need every pixel.
How can I tell if a BMP file is damaged?
Read the first two bytes in a hex editor. They should be 42 4D. Then compare the file size with the size recorded in the header and open the file in two programs. A short file lost data in transit.
Should I use BMP or PNG for screenshots?
Use PNG. It keeps every pixel like a BMP file does and takes less room. Choose a BMP file only when the program receiving it names the format.

Still Stuck With a BMP File? Six Next Stops for Your Picture

Picture looks wrong?

Check the height sign and byte order. Section 6 covers flips and swapped colors.

File will not open?

Test the signature and the size. Section 4 separates damaged files from weak programs.

Did a DOS era paint program save the picture? The PCX file guide covers that older bitmap.

Does your game engine want packed textures? The DDS file guide shows how graphics cards store them.

Need clear backgrounds and a game friendly format? The TGA file guide covers alpha and RLE.

Is the picture a print scan? The TIFF file guide covers pages and CMYK.

Does the fault sit in your computer and not in the picture? The Windows error guides begin with the message you see.

Unsure what an extension tells you? What a file format is starts from zero. Tell us about your file when nothing here matches.

Was this page helpful? Thanks for your feedback!