TGA vs PNG: Which to Choose and Why
At first glance TGA and PNG look like twins: both raster, both lossless, both with transparency. So why have two formats — and which should you use for your task? We compare them on size, compression, compatibility, and one sneaky detail about texture edges that usually goes unmentioned.
What TGA and PNG have in common
Before arguing about the differences, let's honestly note the similarities — there are plenty, and they're exactly what causes the confusion:
- Both are raster. They store the image as a grid of pixels.
- Both are lossless. Neither TGA nor PNG throws away detail for size — unlike JPEG. The image is restored exactly.
- Both do transparency. Each has a full 8-bit alpha channel.
So in terms of image quality they're equivalent. The differences aren't in "what" is stored but in "how" it's packed and where the format is convenient to use. If TGA's basic structure is still hazy, start with "What Is TGA".
The gist in one line
PNG is a format for the result: show it in a browser, publish it, send it. TGA is a format for the process: a working file inside a graphics or game pipeline. Both lossless, but tuned for different stages.
The comparison in one table
The essentials, compact. We'll unpack the key rows below.
| Trait | TGA | PNG |
|---|---|---|
| Compression | None or RLE | Deflate (stronger) |
| Quality loss | None | None |
| Alpha channel | Yes | Yes |
| File size | Large | Smaller |
| Browser support | No | Yes |
| Color under transparency | Kept | Often zeroed |
| Year introduced | 1984 | 1996 |
Size and compression: why PNG is lighter
This is the first noticeable difference. PNG uses smart compression (called Deflate — the same kind that powers ZIP files): it finds repeating patterns across the whole image and squeezes them hard, without losing any quality. Next to that, TGA is almost ascetic: it either stores pixels with no compression at all, or applies the simplest RLE, which only saves space on large flat areas.
The result is predictable: at the same quality, PNG is usually much lighter. In practice, for example, a 2K normal map can weigh around 8 MB as TGA versus ~2.5 MB as PNG — more than a threefold difference. So for the web, sharing and storing "finished" images, PNG is almost always the better deal.
Compatibility: web vs pipeline
The second key difference is where the format opens at all. PNG was designed as an open web standard, and today everything understands it: browsers, messengers, office apps, phones. You can drop a PNG into an email or a web page without a second thought.
TGA, by contrast, is a format "for insiders." Browsers won't display it, and operating systems won't by default either. Its native habitat is graphics editors, game engines, video-editing systems. More on those scenarios in "TGA in games and graphics".
The trick with alpha-texture edges
Here's the non-obvious advantage that keeps TGA in games. It applies only to textures with transparency.
Every pixel has a color, even when fully transparent — we just don't see it. Many tools zero out that hidden color when saving to PNG (making it white or black). When an engine smooths those edges (anti-aliasing) by blending neighbouring pixels, a dark or white fringe — a "halo" — creeps along the outline. TGA, on the other hand, keeps the color even under zero alpha, so the artist can "bleed" the right color into the transparent areas and the edges stay clean.
An important caveat: this is a limitation of specific export settings, not of PNG as a format — PNG can store color under transparency. But in practice "clean edges" come easier with TGA, and many teams pick it for exactly that reason.
When to choose TGA and when PNG
Let's boil it down to simple rules.
In short: when in doubt, take PNG. For the vast majority of everyday tasks it's handier, lighter and more compatible. TGA is a deliberate choice when a specific engine, a studio pipeline, or a need for perfectly clean alpha edges calls for it.
How to move from one to the other
Good news: moving between TGA and PNG is lossless in both directions, since both formats store pixels exactly. The conversion takes seconds:
- Need to open, show or publish a TGA — turn it into PNG: TGA → PNG.
- Need to build a working TGA from an ordinary image for an engine or an edit — the reverse: PNG → TGA.
Convert between TGA and PNG in seconds
The free FormatZ converter moves both formats losslessly and keeps transparency — right in your browser, no install.
Convert TGA to PNGEvery other conversion direction is gathered on the all formats page. And if you're curious how TGA works under the hood, read our breakdown "Alpha and RLE".
FAQ: TGA or PNG
Read next
Format BasicsWhat Is TGA: A Guide to the Truevision Targa Format
History, alpha channel and how the format works, in plain English.
Use CasesTGA in Games and Graphics: Where It Lives Today
Textures, sprites, video and VFX — why engines still love Targa.
Deep DiveAlpha and RLE: How TGA Works Inside
The header, types 2 and 10, the footer and the TRUEVISION-XFILE signature.