A TGA file usually comes out of a game, a modding toolkit or a 3D renderer, and very little outside that world opens it. PNG holds the same picture without loss, keeps the alpha channel and opens in every browser, phone and office program. Upload the .tga file above and you get a PNG with the same pixels. We checked this on a 32-bit test file: every colour and alpha value in the PNG matched the source.
Why convert TGA to PNG
- Viewing and sharing. The built-in Windows apps usually do not open TGA and phones generally do not either. A client, a teammate or a forum needs a file that opens on a double-click.
- Web and documentation. Browsers display PNG. They do not display TGA, so a texture preview on a wiki or in a bug report has to be PNG.
- Size. An uncompressed 32-bit TGA of 4096 × 4096 pixels takes 64 MB. PNG stores the same pixels compressed, still without loss.
- Tools. Most current game engines import PNG as well as TGA. Older engines and some mod pipelines insist on TGA. In that case keep the TGA and use the PNG only as a preview.
What happens to the image
Both formats are lossless, so nothing is recompressed the way a JPG would be. In detail:
- Pixels. Colour values are copied exactly. In our test with an uncompressed 32-bit TGA of 320 × 240 pixels, all 76,800 pixels of the PNG were identical to the source.
- Alpha channel. A 32-bit TGA becomes an RGBA PNG with 8 bits per channel. The channel stayed in place even though every pixel of the test image was opaque, so tools that expect four channels still get four.
- Orientation. TGA stores its rows from the bottom-left corner unless a flag in the header says top-left. The converter follows the flag and the PNG, whose rows always run from top to bottom, comes out upright.
- Bit depth. The PNG has 8 bits per channel, the same precision as a 24-bit or 32-bit TGA. PNG could hold 16 bits per channel, but a TGA has no such data to offer.
- One image. A TGA holds a single picture without layers, and so does the PNG.
- Metadata. TGA has no ICC colour profile, so none appears in the PNG. Do not count on the optional TGA 2.0 fields such as author, comments or the small “postage stamp” thumbnail. This conversion is about pixels.
The file gets smaller. By how much depends on the content: our simple test image went from 307 KB to 4 KB. Flat interface textures and masks shrink dramatically, noisy photographic textures far less.
Common problems
TGA to PNG lost its transparency
Usually the transparency was never declared. The file has a fourth channel, but its header says “0 alpha bits”, and a program reading it may then treat the channel as unused. Open the TGA in GIMP or Photoshop, check that an alpha channel really exists and export the file again as 32-bit.
Dark fringes around the edges
Some renderers write premultiplied alpha, where the colour is already multiplied by the transparency. PNG is defined the other way round: the PNG specification states that colour values are not premultiplied by alpha. A format conversion copies the numbers and does not undo the multiplication. Render with straight alpha, or un-premultiply in a compositing program before exporting.
The alpha channel is a mask, not transparency
Game textures often keep gloss, height or emission in the alpha channel. Then the colour under fully transparent pixels matters. Check those pixels after any conversion before the texture goes into a build, because some PNG writers and optimisers reset hidden colour to save space. Our test image had no fully transparent pixels, so we make no promise for this case. For engine work the original TGA remains the safe choice.
The PNG is upside down
Then the TGA carries a wrong origin flag, a known habit of some old exporters. Flip the PNG vertically in any image editor.
A whole render sequence
The free limit is 10 files at once and 10 files per hour. That is fine for a set of textures. For a 250-frame animation, use a local batch tool instead.
Other ways to get a PNG
- GIMP (Windows, macOS, Linux): open the TGA, then File → Export As and give the name a .png ending.
- IrfanView or XnView MP: both free viewers open TGA and have a batch conversion for whole folders.
- macOS Preview displays TGA. File → Export saves it as PNG.
- At the source. Blender and other 3D programs can render straight to PNG. If nothing downstream needs TGA, change the output format and skip the conversion.
Our converter is useful when you cannot install anything, sit at a work computer or a phone, or just want to look at a few textures from a mod. Up to 10 files go in at once, each up to 100 MB, and the results can be downloaded together as a ZIP. If you need a flat preview without transparency, see PNG to JPG.
TGA and PNG side by side
| TGA | PNG | |
|---|---|---|
| Origin | 1984, AT&T EPICenter, later Truevision. Version 2.0 in 1989 | 1996, W3C Recommendation. Third edition in June 2025 |
| Compression | none or RLE, lossless | deflate, lossless |
| Colour depth | 8, 15/16, 24 or 32 bits per pixel | up to 16 bits per channel |
| Alpha | 8 bits in 32-bit files | 8 or 16 bits, not premultiplied |
| Colour profile | none | ICC profile possible |
| Opens in browsers | no | yes |
| Typical use | game textures, render output, video frames | web graphics, screenshots, textures |
The Library of Congress keeps a description of Truevision TGA 2.0, including the TRUEVISION-XFILE signature in the last 26 bytes that identifies a version 2.0 file. More about both formats is on our TGA and PNG pages.