What is a TGA file, and how do you open one?
TGA is a raster graphics format originally designed for video and animation work. Most people first come across it while looking inside a game’s files. You open the textures folder to change a unit’s colours, fix a flag, or replace a logo, and find a pile of .tga files that Windows Photos and Paint won’t open.
These files are the game’s textures. The game uses them for surfaces, icons, and details. If you want to customise how the game looks, you might want to edit them. This guide covers how to open the TGA file, change it, and put it back without breaking anything.
What is a TGA file?
TGA stands for Truevision Graphics Adapter (you’ll also see it called TARGA). It’s a simple raster image format, basically a plain grid of pixels with very little done to it.
It dates from 1984, which makes it older than JPEG, older than PNG, and older than a lot of the people still editing game textures with it. AT&T’s EPICenter division created it as the native format for the TARGA and VISTA graphics boards, some of the first cards for IBM PCs that could display true colour instead of a limited palette. Truevision spun out of AT&T in 1987, and version 2.0 of the format arrived in 1989.
A TGA file is usually 24-bit or 32-bit. The 24-bit version stores red, green and blue at 8 bits each, and the 32-bit version adds another 8 bits for an alpha channel, which controls transparency. There’s also optional lossless compression called RLE, which works well on flat areas and cartoon-style art and does almost nothing useful for photographs.
Why games still use TGA
Even as newer formats appeared, TGA stayed popular in video and animation work. Why?
The biggest reason is probably just habit. Art pipelines get set up once and then stay that way for years. Studios that started using TGA in the mid-2000s often still ship it, and the modding communities around those games stick with TGA because that’s what the games expect.
In addition, TGA stores it in a predictable 8-bit channel. What the artist painted is what the game engine reads. An uncompressed TGA doesn’t need much processing, so the game can read the pixels more or less straight from the file. That was important when many of these games were built, and it still saves a little time when the game loads textures.
How to open TGA files
Native Windows or macOS apps won’t be able to open a TGA, but if you want to check you’ve found the right texture, browser-based TGA viewers can help, and you don’t need to install anything.
If you’d rather use a proper program, GIMP is a free one that opens and saves TGA files on Windows, macOS, and Linux, and keeps the alpha channel intact. Paint.NET is Windows-only, if you want a GIMP alternative. IrfanView and XnView are quick viewers rather than editors, useful when you want to see what a texture looks like without opening a full editor.
Editing a TGA and putting it back

Once you’ve opened and edited a TGA, the risky part is saving it in a way the game will actually accept. A few small mismatches are enough to make a texture fail to load or look wrong, so it helps to check these things before you overwrite the original.
Start by copying the original file. It came with the game, and you may not be able to get it back if something goes wrong.
When you save, keep the dimensions the same. Most engines expect texture dimensions to be powers of two, so 256 by 256, 512 by 512, 1024 by 1024, and a texture that comes back as 500 by 500 may fail to load or display as a mess.
If the original had transparency, save it as 32-bit. Saving a 24-bit TGA throws the alpha channel away, which usually appears in the game as a solid black or white background where there shouldn’t be one. When your editor asks about bit depth, this is the setting it means.
It’s also worth matching the compression the original used. RLE is optional in TGA, and some older engines only read uncompressed files. Turning compression on and then seeing the texture fail to load is a good sign you should switch it back off.
If the texture shows up upside down in the game, it’s usually because of the origin flag. TGA can store its rows starting from either the top or the bottom of the image, and different editors make different choices. When that happens, flipping the image vertically and saving it again almost always fixes it.
Last but not least, don’t rename a PNG to .tga. These are different formats, not two names for the same thing, and the game will either ignore the file or crash on it. Instead, it’s best to convert it properly.
Which is better, PNG or TGA?

PNG does the same job as TGA with the same transparency and produces far smaller files, and it opens in all browsers, Windows, Mac, and most other software.
The exception is game textures. Many game engines expect their textures in TGA (or another specific format) and will simply refuse to load a PNG in its place. Converting a game’s own textures to PNG to save space can stop them from appearing in the game, and nothing can fix that.
|
TGA |
PNG |
|
|
Released |
1984 |
1996 |
|
Compression |
None, or optional lossless RLE |
Lossless, considerably better |
|
File size |
Large |
Much smaller for the same image |
|
Transparency |
8-bit alpha channel |
8-bit alpha channel |
|
Opens in a browser |
No |
Yes |
|
Built into Windows and macOS |
No |
Yes |
|
Used for new work |
Mostly game and video pipelines |
Everywhere |
Converting TGA to PNG or JPG, and back again
Both directions come up, and for different reasons.
Converting out of TGA is for sharing and viewing. Nobody can open a TGA in a browser or a chat window, so a texture you want to show somebody, post in a forum thread or keep as a reference is more useful as a PNG, or as a JPG if transparency doesn’t matter and you want it small.
Converting into TGA is the modding direction. You’ve made something in another program, or you’ve got a JPG of a logo you want in the game, and the game only reads TGA, so the image has to be converted before it’s any use.
Documents.io’s image converter handles it in the browser, with nothing to install and no account to create. Drag the file in, pick the format you need, download the result.
The website allows you to convert up to 10 files for free without an account and doesn’t store any of your files for longer than 4 hours.

One thing to watch when converting into TGA for a game: a converter gives you a valid TGA, but it can’t know what that particular engine expects in terms of bit depth, compression or dimensions. If the texture doesn’t load, open the converted file in GIMP, check it against the original it’s replacing, and save it again with matching settings.
Going the other way, converting TGA to JPG discards transparency, since JPG has no alpha channel at all. For a texture with cut-out areas you want PNG instead.
FAQ
Which is better, PNG or TGA?
PNG for almost everything, since it does the same job with the same transparency at a fraction of the size. TGA only if a game or pipeline specifically requires it.
What is the best way to convert a TGA file to JPG?
Use a browser converter like Documents.io, or open it in GIMP and export as JPG. Remember JPG has no transparency, so anything see-through becomes solid.
Why is my TGA file so large?
Because it’s uncompressed by default, so every pixel is stored in full. A 1024 by 1024 32-bit TGA is around 4 MB regardless of what’s in it.
Can I convert a JPG to TGA?
Yes, and it’s the usual direction for modding. Check the bit depth and dimensions against the texture you’re replacing afterwards.
Why does my edited texture show up upside down in the game?
TGA can store rows from the top or the bottom, and your editor probably used the opposite convention to the original. Flip the image vertically and save again.
Latest posts
Glossary
What is an OPUS file, and how do you convert it to MP3?
Learn what an OPUS file is, how to open and play it on different devices, and how to convert OPUS to MP3 for better compatibility.
Glossary
What is a WMV file, and how do you convert it to MP4?
Learn what a WMV file is, how to open it on different devices, and how to convert WMV to MP4 for better compatibility and easier playback.
Glossary
What is a WMA file, and how do you convert it to MP3?
Learn what a WMA file is, how to open it on different devices, and how to convert WMA to MP3 for better compatibility and easier audio playback.