What a TGA file is
A TGA file is a Truevision Targa image. You may also see it called a Targa file. It is an older image format, and it still appears in games and 3D work.
TGA files typically store detailed textures, sprites, and renders. They typically support an alpha channel. That channel can mark parts of an image as see-through.
Many phones, browsers, and websites do not open TGA files. That is why a file that looks fine in a game tool can fail elsewhere. You need a more widely supported format before you share it.
You may receive a TGA file from a teammate, a mod, or a download. The file may open in their tool and fail in yours. That gap happens with older formats.
Pro tip: Keep your original TGA file until you have checked the PNG. You may need it again if a detail looks wrong.
Why a PNG file is easier to use
PNG files typically open in browsers, phones, and image editors. The MDN image formats guide describes PNG as a widely supported web image format. That support is the main reason to convert.
PNG files typically support transparency. They typically keep sharp edges well, which helps text, logos, and line art. They are a practical choice for sharing and editing.
You can use a PNG in more places than a TGA file. You can post it on a website, send it in a message, or open it in an editor. You do not need the original game tool to view it.
Pro tip: Pick a clear file name for the PNG. A clear name helps you find it again later.
What changes when TGA becomes PNG
Conversion reads the pixels from the TGA file and writes them as a PNG file. Re-encoding can introduce additional quality loss. That risk is worth knowing before you delete the original.
Your PNG keeps the same width and height as your TGA file. The conversion keeps the pixel colours from the source file as PNG pixels. No new detail is added by converting.
If your source is a vector file instead, an SVG to PNG converter is a separate conversion. It solves a different problem from a TGA file.
| Feature | TGA, typically | PNG, typically |
|---|---|---|
| Where you meet it | Games, 3D work, older software | Browsers, phones, editors, websites |
| Transparency | Can carry an alpha channel | Can carry transparency |
| Opens in most browsers | No | Yes |
| Best for | Source textures and renders | Sharing, editing, and web use |
Pro tip: Compare the PNG with the original at full size. Small previews can hide a colour or edge problem.
Transparency: the detail to check first
An alpha channel is extra data that marks see-through areas. A value can mean fully visible, fully see-through, or partly see-through. That range matters for textures and overlays.
If your TGA file has transparency, the PNG keeps the see-through areas. If your TGA file has no alpha channel, the PNG will not gain transparency on its own. The MDN image formats guide describes PNG transparency for web use.
A PNG that looks black behind an image may still have transparency. Check it over a dark background and a light background.
Pro tip: Test transparency before you publish. A white box in a preview can hide a real problem.
Files that cause trouble
Some TGA files use RLE compression to store repeated pixels in a shorter form. Other TGA files store every pixel without compression. A converter must handle both forms.
TGA files typically can use a colour palette, or store full colour values. TGA files typically can start at the bottom of the image, not the top. Both details can change how the picture looks if they are read wrong.
If a file is damaged, cut short, or renamed from another format, it may not convert. You get a clear error instead of a broken PNG. That error is better than a silent, wrong result.
Pro tip: If a file fails, check the extension and the source. A renamed file is a common cause of a failed conversion.
When PNG is not the right next step
If your game or 3D tool needs a TGA file, keep the original. PNG is typically used for sharing, editing, and web use. It does not replace a texture your tool expects.
If you need the opposite direction, a PNG to TGA converter is a separate conversion. It turns a PNG file back into a TGA file. That direction has its own limits and uses.
Some game textures use DDS files, not TGA files. A DDS to PNG converter is the right tool for that format. Check the file extension before you start.
Pro tip: Store the original and the PNG together. Clear names help you find the right file later.
After you download the PNG
Open the PNG before you share it. Check the edges, the colours, and any see-through areas. If a detail looks wrong, go back to the original TGA file.
For web use, read the best image format for the web guide. For a photo-like image, read PNG vs JPG: when to use each. For game work, read how to extract game textures to PNG.
After the check, use the PNG where you need it. Share it, post it, or place it in a document. Keep the original TGA file in case you need a new PNG later.
Pro tip: Rename the PNG for its use, such as for a web page or a document. A clear name saves time later.
What we covered
- TGA is an older format, typically from games, 3D work, and older software.
- PNG is typically easier to share, edit, and use on the web.
- Check transparency, size, and detail before you publish the PNG.
- Keep the original TGA file until the PNG looks right.