TGA vs BMP: technical differences
To convert TGA to BMP, drop your TGA file into the converter above and download the BMP: an uncompressed bitmap that almost any program can open. It is free, needs no sign-up, and runs in your browser, so the file is never uploaded.
Both formats are old, simple and usually uncompressed, and both store pixel rows bottom-up by default with blue-green-red byte order. The practical difference is alpha. A 32-bit TGA has an 8-bit alpha channel, while Pixohub's BMP output is 24-bit with none, so transparent pixels are blended onto white.
File size barely changes for 24-bit sources. A 1024 × 1024 24-bit TGA is about 3 MB, and so is the BMP (BMP pads each row to a multiple of 4 bytes, so a few odd widths add a little). An RLE-compressed TGA of flat-colour art will grow, because the BMP isn't compressed. A 32-bit TGA shrinks by a quarter when the alpha byte goes.
Pixohub reads 24/32-bit true-colour TGAs (raw or RLE) and uses the header's origin flag, so the BMP is right side up regardless of how the TGA was stored. TGA's extension-area metadata isn't carried over. BMP has nowhere to put it anyway.
| TGA (Truevision TGA (Targa)) | BMP (Bitmap Image File) | |
|---|---|---|
| Compression | None or lossless RLE | Usually none (raw pixels); optional RLE for palette images |
| Colour depth | 8, 16, 24 or 32 bits per pixel | 1–32 bits per pixel; typically 24-bit RGB |
| Transparency | 8-bit alpha in 32-bit files | Rarely supported (32-bit variants only) |
| Animation | None | None |
| Metadata | Optional image ID and extension area | Essentially none beyond resolution |
| Typical file size | Large — close to raw pixel size | Very large — width × height × 3 bytes |
| Support | Game engines, 3D and video tools; browsers cannot display it | Universal on Windows; opens almost everywhere |
When to convert TGA to BMP
Old Windows tools and editors
Some legacy level editors, map makers and Windows utilities from the late 1990s and 2000s accept BMP but not TGA. Converting lets older modding tools load your textures.
Embedded displays and microcontroller graphics
Hobby display libraries often include a BMP loader but no TGA one. Converting a 24-bit TGA sprite to BMP gets it onto the device. Pre-size it to the panel resolution first.
Format-specific assignments
Programming exercises sometimes ask for a BMP reader or writer. Converting existing TGA assets gives you test files that match.
What converting TGA to BMP keeps and loses
What you keep
- Every visible pixel colour exactly. Both formats are lossless and 8-bit per channel.
- Resolution and correct orientation.
What you lose
- The alpha channel. Transparent areas become white.
- RLE compression, if the TGA used it.
- TGA image ID and extension-area data.
Our test: TGA to BMP on two real files
The 24-bit photo TGA converted to BMP with identical pixels and practically the same size: 5,760,044 bytes in, 5,760,054 out. The ten-byte difference is all header: the TGA's 18-byte header plus a 26-byte image ID against BMP's 54 bytes, and 1600-pixel rows need no padding.
The 32-bit graphic lost a quarter of its size, 1.9 MB down to 1.4 MB, because the alpha byte is dropped and transparent pixels are blended onto white. Viewed on white, the pixels are identical.
Method: this converter in Chromium (Playwright 1.64.1) on an Apple M2 Mac, default 85% quality for lossy output. The photo is an iPhone 14 Pro Max shot scaled to 1600 × 1200, metadata intact; the graphic has a transparent background, soft shadow, gradients and text. SSIM and PSNR compare each result with the decoded original on white (how we test).
| Test file | TGA in | BMP out | Pixels vs original | Transparency | Camera EXIF | Time |
|---|---|---|---|---|---|---|
| Photo, 1600 × 1200 | 5.8 MB | 5.8 MB (same) | Identical pixels | None in source | None in source | 1.2 s |
| Graphic, 800 × 600, transparent | 1.9 MB | 1.4 MB (−25%) | Identical pixels | Flattened onto white | None in source | 1.0 s |
Last updated
Apps and sites that work with TGA and BMP
Windows's built-in apps
Paint and Photos open BMP on any Windows PC but don't read TGA, so a texture or screenshot converted to BMP can be viewed and lightly edited without installing GIMP or IrfanView. Paint can then save the image again as PNG or JPG if needed.
Microcontroller display libraries
Adafruit's ImageReader library for Arduino loads 24-bit uncompressed BMPs from an SD card, which is exactly what Pixohub writes. It has no TGA reader, so game sprites need converting before they can go onto a small TFT display. Resize the sprite to the display's resolution first, since these boards have little memory.
Windows resource files
BITMAP resources in Windows .rc files, as used by older C and C++ applications and installers, must be BMP. Converting a TGA icon sheet or splash image lets it compile into the executable. Visual Studio's resource editor shows the bitmap once it is added.
Common TGA to BMP problems and fixes
Red and blue swapped in your own code
BMP stores pixels in blue-green-red order. If a program you wrote displays the BMP with orange skies, it is reading the bytes as RGB. Swap the first and third byte of each pixel when loading. TGA uses the same blue-green-red order, so a TGA loader you wrote earlier may already do this.
A slanted, sheared image
BMP rows are padded to a multiple of 4 bytes. With widths that aren't multiples of 4, a loader that ignores padding drifts a few bytes per row and the picture shears diagonally. Compute the row stride as (width × 3 + 3) & ~3, or resize to a width divisible by 4 first.
A 16-bit TGA won't convert
Older tools sometimes save 16-bit (5-5-5) TGAs, which Pixohub's reader rejects. Re-export from GIMP or Photoshop as 24-bit TGA, or open it in GIMP and export a BMP directly. Those files hold only 5 bits per channel, so expect visible banding in gradients after conversion. That comes from the source, not the conversion.
Tips for better TGA to BMP results
- Need transparency? BMP from Pixohub can't carry it, so use TGA to PNG if the target tool reads PNG.
- If a game mod tool wants a magenta (255, 0, 255) colour key instead of alpha, paint the transparent area magenta in an editor before converting. Pixohub flattens to white.
How this converter works
Pixohub decodes your TGA and encodes the BMP entirely inside your browser, using a bundled TGA decoder because browsers cannot open TGA natively. Nothing is uploaded, so the conversion is private by design and as fast as your device.
Need more? Shrink the result with the image compressor, change its dimensions with the image resizer, or convert a whole folder at once with bulk format convert.