TGA converter

Convert TGA images to PNG; transparency is preserved.

FluffyShield Protected workspace
From
To

Choosing a format opens another page, set to that conversion. Images you've added here come along. Finished files don't, so download them first.

FluffyShield

Isolated workspace: other page scripts can't read your files. How FluffyShield works

Free · No upload · No sign-up · No usage quotas

PNG options here: browser or advanced encoder; RGBA, RGB, grayscale or indexed color; 8- or 16-bit; Fast, Balanced or Maximum compression; interlacing. Which PNG settings are worth changing?

What can you do with a TGA file outside a game or 3D program?

Turn it into a PNG, and almost any app will open it with every pixel just as it was saved. FluffyBench's TGA converter does that in your browser without uploading anything, and it can make a smaller JPG or WebP too.

How it works
  1. Choose TGA images
  2. Pick PNG, JPG or WebP
  3. Convert
  4. Download your copies

What it does

Plain and compressed TGA

Opens uncompressed and run-length files, with or without transparency.

Photo: 0 of 55,296 pixels changed

Transparency kept in PNG

A TGA with an alpha channel keeps its see-through areas in the PNG.

Earth picture: 0 of 50,176 pixels changed

One file or a folder

Convert a whole folder of textures in one go.

Finished in one batch: 1,000 files

Limits Unusual TGA color depths are refused.

Where do TGA files come from?

TGA is short for Truevision Targa. It's a picture format from the 1980s that game engines, 3D programs and video tools still use for textures and rendered frames. Picture a grid of colored squares with a tiny label on top saying how big the grid is. That's nearly everything a TGA holds, and almost nothing outside creative software bothers to read it. Your file isn't broken.

Many TGA files store the picture's rows from the bottom up. This is our photo TGA with its rows in file order, next to the PNG FluffyBench saved from it.

The Lassen Peak photo upside down, with the shoreline at the top and the sky at the bottom.

Rows in file order

The same photo right side up: sky at the top, then the peak, the lake and the shore.

The saved PNG

Both pictures are drawn from the sample file's pixels. The file begins with the bottom of the picture, here the shore, and the sky comes last; FluffyBench turns the rows around, so the sky is back on top. How we measured · Photo: NPS Photo, Public domain, U.S. federal work; Public Domain Mark 1.0, via Wikimedia Commons / National Park Service.

Some TGA files save space with run-length encoding: instead of writing out a blue sky pixel by pixel, the file says “blue, repeated across this stretch.” FluffyBench's TGA converter opens both kinds. It treats a transparency channel that's empty everywhere as no transparency, so your picture doesn't vanish.

Doing it in FluffyBench's TGA converter

Here's the whole job, from choosing your TGA files to saving the finished copies. PNG is the default result, and the To control switches it to JPG or WebP.

  1. This page starts with TGA under From. PNG is the default result; To sets the kind of file you get.

  2. Choose your TGA files with Choose images. Renaming a .tga to .png doesn't turn it into a PNG.

  3. On a phone, open Settings with the gear button. Under Size, Original keeps the picture's width and height.

    The Size control set to Original, outlined.
    The Size control set to Original, outlined.
  4. With Settings closed, press Convert to make the PNG.

  5. The finished tile shows the PNG's dimensions and file size. Download saves it.

    The finished PNG with its size and the Download button outlined.
    The finished PNG with its size and the Download button outlined.

Is anything lost when a TGA becomes a PNG?

No. We converted a photo and a see-through picture of Earth, each saved plainly and with run-length compression, then compared every pixel of each PNG with the original. 0 of the photo's 55,296 pixels changed, however the TGA was stored, and the Earth kept its transparent background. That makes PNG the safe choice when you need the picture exactly as it was made.

The PNG is also smaller than either kind of TGA. Run-length compression helps most on a flat graphic like the Earth picture and saves much less on the photo.

Run-length storage saved 23% on the Earth picture and 7% on the photo

Transparent Earth picture

Plain TGA 200.7 KB
Run-length TGA 155.4 KB
PNG 104.0 KB

Photo

Plain TGA 165.9 KB
Run-length TGA 154.2 KB
PNG 132.7 KB
WebP 18.9 KB
JPG 20.8 KB

File size, KB

In each group, the two TGAs and the PNG hold the same pixels; sizes are rounded to 0.1 KB.

JPG and WebP go much further, but both change some pixels. JPG also can't keep see-through areas, so the Earth picture loses its transparent background. FluffyBench's JPG converter is the one to use when a small photo matters more than exact pixels.

Need to convert a TGA image to PNG?

Should a TGA you save be 32-bit or 24-bit?

FluffyBench can write TGA too, from a PNG, a JPG and other pictures. With TGA as the destination, Settings shows TGA pixels and TGA storage. TGA pixels starts at 32-bit RGBA, which keeps a transparency channel, so a photo comes out bigger than a plain 24-bit TGA: it reserves room for transparency the photo doesn't use.

Here is our photo as a plain 24-bit TGA and as two TGAs FluffyBench wrote from its PNG.

The default 32-bit TGA came out 33% bigger than our plain 24-bit sample

Our 24-bit sample 165.9 KB
Default (32-bit RGBA) 221.2 KB
24-bit RGB, RLE 154.2 KB

File size, KB

Setting TGA pixels to 24-bit RGB and TGA storage to RLE made the smallest file.

The smaller file has no room for transparency. Here is our Earth picture from a 32-bit TGA and from a 24-bit one.

The Earth picture with a checkerboard showing around the planet where it is see-through.

32-bit, with transparency

The same Earth picture with solid black around the planet and a darker rim.

24-bit, no transparency

Look at the corners and the planet's rim. A 32-bit TGA keeps its transparency channel, so the corners stay empty; a 24-bit TGA has none, so they turn black. 18,240 of the picture's 50,176 pixels changed, every one of them see-through or partly see-through. · Photo: NASA, Public domain, NASA-created image, via Wikimedia Commons.

So keep the default for anything with see-through areas. Switch to 24-bit RGB with RLE only for a picture that's solid all over and needs to be smaller.

How does it cope with a texture folder, or a broken file?

A whole folder of textures is fine. We dropped in 1,000 copies of the photo, and all 1,000 became PNGs in 10 s, plus 2 s to load them.

A broken file stops with a short reason, not an empty result. A TGA cut in half says “The TGA pixel payload is truncated.” and one with the old interleaved flag says “The TGA image descriptor uses reserved bits.” Color-mapped, true-color and grayscale TGAs all open, but unusual color depths are refused.

So convert to PNG when you want every pixel kept. Hold on to the original TGA if you'll go back to a game or 3D tool, because only the pixels carry over: its color table, image identifier and developer data stay behind. When the picture is only for sharing, these tools make a smaller file.

You only need a small photo to share.

FluffyBench's JPG converter

JPG makes small photo files, though it can't keep transparency.

You want a small copy that keeps its see-through areas.

FluffyBench's WebP converter

WebP can keep transparency, if where you're sending it accepts WebP.

Need a Windows bitmap instead?

Search FluffyBench