TGA vs PNG: technical differences
To convert TGA to PNG, drop your TGA file into the converter above and download the PNG: a lossless format that keeps transparency and every pixel exactly. It is free, needs no sign-up, and runs in your browser, so the file is never uploaded.
TGA and PNG are both lossless and both carry an 8-bit alpha channel, so a tga to png conversion changes only the packaging. The pixels stay the same. What changes is compression and compatibility. TGA is either raw or uses simple run-length encoding that only helps with long runs of identical pixels. PNG's DEFLATE with prediction filters typically makes a 32-bit texture 30–70% smaller, and every browser can display the result.
Pixohub's TGA reader supports true-colour files only: 24-bit and 32-bit, uncompressed (type 2) or RLE (type 10). It reads the origin bit in the header, so bottom-up files (the TGA default) and top-down files both come out the right way up. Colour-mapped, greyscale and 16-bit TGAs aren't supported and will show an error.
One subtle difference: the browser canvas stores colour premultiplied by alpha. Visible pixels are unaffected, but the RGB values hidden under fully transparent pixels become black, and colours under very low alpha are slightly quantised. For textures that pack non-transparency data in alpha, that's a real change, not a cosmetic one.
| TGA (Truevision TGA (Targa)) | PNG (Portable Network Graphics) | |
|---|---|---|
| Compression | None or lossless RLE | Lossless (DEFLATE with per-row prediction filters) |
| Colour depth | 8, 16, 24 or 32 bits per pixel | 1–16 bits per channel; truecolor, greyscale or 256-colour palette |
| Transparency | 8-bit alpha in 32-bit files | Full 8/16-bit alpha channel |
| Animation | None | Only via the APNG extension |
| Metadata | Optional image ID and extension area | Text chunks, ICC profile, gamma; EXIF via the newer eXIf chunk |
| Typical file size | Large — close to raw pixel size | Large for photos (often 2–3× a JPG); tiny for flat graphics |
| Support | Game engines, 3D and video tools; browsers cannot display it | Universal — every browser, OS and editor |
When to convert TGA to PNG
Viewing and sharing game screenshots
Older engines save screenshots as TGA. Source-engine games do it with the screenshot console command, and Quake III-era games too. Converting to PNG lets you post them on forums, Discord or a wiki without quality loss and at a fraction of the size.
Previewing texture packs and mod assets
Browsers, macOS Quick Look and Windows Photos can't reliably show TGA. Converting a texture to PNG makes it easy to preview, document in a mod page, or drop into a web-based tool.
Moving render output to the web
Blender, 3ds Max and video tools can render TGA frames with alpha. PNG keeps that alpha for compositing on a website or in a slide deck, and it's the format most web-facing tools expect.
What converting TGA to PNG keeps and loses
What you keep
- Exact visible pixel colours. Both formats are lossless and 8-bit per channel.
- The alpha channel from 32-bit TGAs.
- Correct orientation, whether the TGA was stored bottom-up or top-down.
What you lose
- RGB values under fully transparent pixels (premultiplied canvas).
- The TGA image ID, extension area (author, timestamp, gamma, postage-stamp thumbnail) and developer area.
- Nothing else visible. The PNG is usually much smaller too.
Our test: TGA to PNG on two real files
Both test TGAs converted with identical pixels, the 32-bit graphic's alpha included, so nothing was lost. Size is where the formats differ. The uncompressed 24-bit photo TGA was 5.8 MB and its PNG 3.2 MB, 44% smaller, while the 32-bit graphic shrank from 1.9 MB to 342 KB, 82% smaller, because its flat areas and transparent background compress far better than photo noise.
Each conversion took under 1.2 s, since the TGA reader is a small piece of JavaScript.
Method: this converter in Chromium (Playwright 1.64.1) on an Apple M2 Mac, default 85% quality for lossy output. The photo is an iPhone 14 Pro Max shot scaled to 1600 × 1200, metadata intact; the graphic has a transparent background, soft shadow, gradients and text. SSIM and PSNR compare each result with the decoded original on white (how we test).
| Test file | TGA in | PNG out | Pixels vs original | Transparency | Camera EXIF | Time |
|---|---|---|---|---|---|---|
| Photo, 1600 × 1200 | 5.8 MB | 3.2 MB (−44%) | Identical pixels | None in source | None in source | 1.2 s |
| Graphic, 800 × 600, transparent | 1.9 MB | 342 KB (−82%) | Identical pixels | Kept | None in source | 0.9 s |
Last updated
Apps and sites that work with TGA and PNG
What opens TGA, and what doesn't
Photoshop, GIMP, Krita, Paint.NET, IrfanView, XnView and macOS Preview open TGA. Browsers, Windows Photos, Discord and most chat apps don't, which is the usual reason to convert. Upload a PNG to a wiki or forum and it displays in place, while a TGA is offered as a download, if it's accepted at all.
Blender's two Targa options
Blender offers Targa and Targa Raw as render outputs. Targa is RLE-compressed (type 10) and Targa Raw uncompressed (type 2); Pixohub reads both, with alpha when you render RGBA. If you only need web previews, switching Blender's output to PNG avoids converting later.
Where the PNG goes
GitHub READMEs and issues, Fandom and other MediaWiki wikis, and mod hosting sites all accept PNG and display it inline, which they won't do for TGA. PNG also keeps the TGA's alpha, so sprites shown on those pages keep their transparent backgrounds.
Common TGA to PNG problems and fixes
Find out why a TGA was refused
This page only shows a generic “could not be loaded” alert. Drop the file into Bulk Format Convert to see the reason: “Only uncompressed or RLE true-color TGA is supported.” means a colour-mapped or greyscale file, and “Only 24-bit and 32-bit TGA is supported.” means a 16-bit one. Re-export from GIMP as RGB to fix either.
Parts of the image turned see-through
Some viewers ignore TGA alpha, so you may not know the file has it. Game textures often store gloss or specular data in alpha, and PNG displays that channel as transparency. If the PNG is just a preview, convert with TGA to JPG, which flattens alpha, or re-save the TGA as 24-bit first.
The PNG is upside down
Pixohub follows the origin bit in the TGA header. If the PNG comes out flipped, the program that wrote the TGA most likely set that bit wrongly. Turn the result over with Flip Image, or fix the export setting if you control the writer. Once flipped, the PNG is correct in every viewer, since PNG has no origin flag to misread.
Tips for better TGA to PNG results
- If the PNG looks completely empty or transparent, the TGA probably has a 32-bit alpha channel filled with zeros, which some exporters write. Re-save it as 24-bit in GIMP or Photoshop, which drops the empty alpha, and convert again.
- Got an “Only 24-bit and 32-bit TGA is supported” error? Open the file in GIMP and export as 24- or 32-bit RGB TGA, then try again.
How this converter works
Pixohub decodes your TGA and encodes the PNG entirely inside your browser, using a bundled TGA decoder because browsers cannot open TGA natively. Nothing is uploaded, so the conversion is private by design and as fast as your device.
Need more? Shrink the result with the image compressor, change its dimensions with the image resizer, or convert a whole folder at once with bulk format convert.