What is TGA (Truevision TGA)?
Complete guide to the TGA file format
Last updated:
What is TGA (Truevision TGA)?
TGA (Truevision TGA or TARGA) is a raster image format developed in 1984 by Truevision. It was the first affordable way to display color images on personal computers.
Despite its age, TGA remains widely used in 3D graphics, video game development, and visual effects because of its simplicity, lossless compression options, and reliable compatibility with 3D software.
How TGA Works
A TGA file, also called TARGA or Truevision graphics format, begins with a compact fixed header that describes the image. This header records the image type, the width and height in pixels, the number of bits per pixel, and an image descriptor byte. The descriptor is important: it holds the number of alpha channel bits and two orientation flags that state whether the pixel data starts at the top or bottom and the left or right of the image. Because orientation is signaled rather than fixed, a decoder must read these flags to display the picture the right way up.
After the header, a TGA file may contain an optional color map (palette) for indexed images, followed by the pixel data itself. TGA supports several depths, commonly 8-bit indexed or grayscale, 16-bit, 24-bit true color, and 32-bit true color with an 8-bit alpha channel. The 32-bit mode is one of the format's most useful traits, since it stores a full per-pixel transparency mask alongside red, green, and blue.
Pixel data can be stored uncompressed or with a simple run length encoding (RLE) scheme. RLE walks the image and replaces consecutive runs of identical pixels with a count and a single pixel value, which shrinks images that contain flat areas of solid color. On photographic or heavily detailed images the RLE gain is small, and in some cases the compressed file is barely smaller than the raw version.
A later revision of the specification added a footer at the end of the file plus an optional extension area and developer area. These can carry metadata such as author, a timestamp, a gamma value, and a thumbnail. Files that include the footer are sometimes called "new TGA," while older files without it are still valid and widely readable.
History and Standardization
TGA was created by Truevision Inc. in the mid to late 1980s. It was designed as the native image format for the company's TARGA and VISTA graphics boards, which were among the first products to bring true-color, 24-bit capture and display to personal computers at a time when most PC graphics were limited to a handful of colors.
The name TARGA is often explained as a reference to the Truevision Advanced Raster Graphics Adapter. Because the format was tied to professional capture hardware, it found an early home in video, broadcast graphics, and desktop imaging, where retaining full color fidelity mattered more than small file size.
TGA was never standardized by a formal international body in the way that JPEG or PNG were, but its specification was published and became a stable de facto standard. That published spec, including the later footer and extension additions, is why so many graphics tools can still read and write TGA decades after the original hardware disappeared.
TGA Compared to BMP, PNG, and PSD
Compared to BMP, TGA is more capable. Both are simple raster formats, but classic BMP historically lacked a practical alpha channel, while TGA offered a clean 32-bit mode with true per-pixel transparency. TGA's optional RLE also gives it a modest size advantage over fully uncompressed BMP on images with flat color regions.
Compared to PNG, TGA is weaker on compression. PNG uses the DEFLATE algorithm, which is far more effective than TGA's basic RLE, and PNG also supports lossless color with full alpha. For most modern purposes where a lossless file with transparency is needed, PNG produces smaller files and is more universally supported in browsers and applications.
Compared to a layered format like PSD, TGA is intentionally flat: it stores a single composited image with no layers, masks, or editing history. That simplicity is exactly why TGA endured in game development and 3D texturing pipelines, where a straightforward true-color image with a reliable alpha channel is often all that a texture needs. TGA has been largely superseded by PNG for general use, but it is still seen in older and specialized asset workflows.
Technical Details
TGA vs Other Image Formats
| Feature | TGA | PNG | BMP |
|---|---|---|---|
| Type | Raster | Raster | Raster |
| Compression | RLE or none[1] | Lossless | None or RLE |
| Color depth | Up to 32-bit[1] | Up to 16-bit | Up to 32-bit |
| Transparency | Alpha channel[3] | Yes | Limited |
| Origin | Truevision[1] | W3C | Microsoft |
| Best for | Game textures, art | Web graphics | Windows images |
TGA supports alpha and optional RLE compression and remains common in game and rendering pipelines, though PNG offers better lossless compression for the web.
Pros and Cons
Advantages
TGA is natively supported by virtually every 3D modeling and rendering application.
32-bit TGA includes a full alpha channel for transparency.
TGA's simple structure makes it easy to read and write programmatically.
TGA has no patents or licensing restrictions.
Disadvantages
TGA is not supported by web browsers without conversion.
Uncompressed TGA files are very large compared to PNG or JPEG.
For most uses, PNG is a better modern alternative to TGA.
Regular users rarely encounter TGA - it is primarily a professional format.
When to Use TGA (Truevision TGA)
Here are the most common situations where TGA (Truevision TGA) is the right choice:
Game Development
TGA is a common texture format in game development for Unity, Unreal Engine, and 3ds Max.
3D Rendering
Cinema 4D, Maya, and Blender render to TGA for sequence rendering pipelines.
VFX Pipelines
Visual effects workflows use TGA for image sequences due to its simplicity.
Legacy Systems
Older game engines and 3D tools use TGA as their native texture format.
Convert TGA (Truevision TGA) Files
Need to convert your TGA files? Use our free online converter.
Try Image Converter FreeHow to open a TGA file
TGA files, or Truevision TGA files, are commonly used in graphics and gaming due to their support for high-quality images with alpha channels. Software options for working with TGA files can be categorized into professional-grade applications, free or open-source tools, browser-based solutions, and built-in utilities found in operating systems. Professional tools are ideal for users needing advanced editing capabilities, while free and open-source options appeal to those with budget constraints or specific workflow needs.
When choosing software for TGA files, key decision factors include feature fidelity, the distinction between editing and viewing capabilities, cost models, and platform compatibility. Users should consider whether they need extensive editing features or simple viewing options, as well as the ability to export to various formats. In some cases, converting TGA files to other formats may be more efficient depending on the intended use.
Adobe Photoshop 2023
Adobe Photoshop is a leading image editing software that provides comprehensive support for TGA files. It allows users to open, edit, and save TGA files with high fidelity, maintaining layers and transparency.
- Full layer and mask editing
- Advanced color correction tools
- Support for 16-bit and 32-bit color
- Extensive filter and effects library
- Batch processing capabilities
- Industry-standard for professional editing
- Robust toolset for complex graphics
- Excellent support for alpha channels
- High subscription cost
- Steep learning curve for beginners
Exports to: PNG, JPG, TIFF, PSD, PDF
Best for: Choose Adobe Photoshop for professional-grade TGA editing and extensive features.
Visit Adobe Photoshop →GIMP 2.10.34
GIMP is a powerful open-source image editor that supports TGA files, allowing users to perform a variety of editing tasks. It offers a flexible interface and a range of tools suitable for both casual and advanced users.
- Layer and mask support
- Customizable brushes and patterns
- Advanced selection tools
- Image manipulation filters
- Scripting capabilities for automation
- Completely free and open-source
- Highly customizable with plugins
- Cross-platform availability
- Less intuitive interface than competitors
- Occasional performance issues with large files
Exports to: PNG, JPG, TIFF, BMP, GIF
Best for: GIMP is ideal for users seeking a free, powerful alternative for TGA editing.
Visit GIMP →IrfanView 4.60
IrfanView is a lightweight image viewer that supports TGA files, making it suitable for quick viewing and basic editing. While it lacks advanced editing features, it excels in fast performance and simplicity.
- Basic editing tools like cropping and resizing
- Batch conversion capabilities
- Support for multiple image formats
- Slideshow creation
- Image metadata viewing
- Extremely fast and lightweight
- User-friendly interface
- Batch processing for multiple files
- Limited editing capabilities
- Windows-only platform
Exports to: JPG, PNG, BMP, GIF, TIFF
Best for: IrfanView is perfect for users needing a fast viewer and basic TGA handling without complex features.
Visit IrfanView →Paint.NET 5.0.11
Paint.NET is a free image editing software that supports TGA files, offering a balance between simplicity and functionality. It is designed for users who need more than basic editing without the complexity of professional software.
- Layer support with blending modes
- Special effects and filters
- Unlimited history for undo actions
- Simple user interface
- Plugin support for extended features
- Easy to learn for beginners
- Good balance of features and usability
- Active community with plugins
- Windows-only availability
- Less powerful than Photoshop or GIMP
Exports to: PNG, JPG, BMP, GIF, TIFF
Best for: Paint.NET is suitable for users looking for a free, user-friendly TGA editor with essential features.
Visit Paint.NET →