FormatDrop
Image Format

TGA

Truevision TARGA

TGA (Truevision TARGA) is a raster image format from 1984 that has outlived its contemporary formats largely because of its entrenched position in game development and 3D rendering pipelines. TGA files support RGBA images (including full alpha channel transparency), store data uncompressed or with basic RLE compression, and are trivially simple to parse in code — making them a favorite for texture maps in game engines and render outputs from 3D software.

What is TGA?

TGA is a simple raster image container that stores pixels in BGR or BGRA byte order (note: not RGB — the byte order is reversed). It supports: 8-bit palettized images, 16-bit high color, 24-bit true color (RGB), and 32-bit true color with alpha (RGBA). Optional RLE compression reduces file size for images with large areas of uniform color but is generally not applied to photographic content. The format has minimal metadata support — just image dimensions, color depth, and a brief description field. TGA's simplicity makes it trivially easy to read and write in game engine code without complex parsing libraries, which explains its persistence in technical pipelines.

TGA pros and cons

Advantages

  • Simple format — easy to parse in game engine and shader code
  • Full alpha channel support (32-bit RGBA)
  • Widely supported in game engines (Unreal Engine, Unity, id Tech engines)
  • Uncompressed reading is fast — no decompression step for real-time applications
  • Supported by all major image editors (Photoshop, GIMP, Krita)

Limitations

  • Large file sizes — uncompressed or minimally compressed
  • No web browser support — cannot display in browsers
  • No metadata support beyond basic image info
  • PNG with lossless compression is smaller with equivalent quality
  • Rarely needed outside game development and 3D rendering pipelines

When should you convert TGA files?

Convert TGA to PNG when you need smaller files, web display, or compatibility outside game/3D pipelines. PNG is strictly better than TGA for general use — smaller, browser-supported, and universally compatible. Keep TGA in workflows where the receiving software specifically requires it. Convert PNG to TGA only when a legacy game tool or 3D software explicitly requires TGA input.

Convert TGA files

All FormatDrop conversions run entirely in your browser — no file upload, no server processing. Your files stay on your device.

TGA FAQ

How do I open a TGA file?
Most image editors open TGA natively: Photoshop, GIMP, Krita, Affinity Photo, Paint.NET, and IrfanView all handle TGA without plugins. For batch viewing: XnView MP (free) displays TGA thumbnails. On Windows File Explorer, TGA thumbnails don't appear by default — XnView Shell Extension adds thumbnail support. Online: squoosh.app opens TGA files in the browser. For quick conversion: `magick input.tga output.png` via ImageMagick.
Why do game engines still use TGA instead of PNG?
Historical momentum: many game development pipelines were established when PNG was newer or less universally supported. TGA is also extremely simple to read in C/C++ — a TGA parser can be written in under 50 lines of code, while PNG requires zlib and a more complex header parser. Some older game formats hardcode TGA as the texture format. Modern engines (Unreal Engine 5, Unity) accept both equally — the choice is typically pipeline convention rather than technical necessity. For new projects, PNG is preferred.
Does TGA support transparency?
Yes. 32-bit TGA files store RGBA data — 8 bits each for red, green, blue, and alpha. The alpha channel works identically to PNG's alpha: 0 = fully transparent, 255 = fully opaque, with full 8-bit smooth gradients. TGA alpha is widely used for game texture cutouts (foliage, chain-link fences, windows) and UI elements. When converting TGA with alpha to PNG, the alpha channel is preserved. When converting to JPEG, the alpha channel is lost (JPEG doesn't support transparency).