TGA vs AVIF: technical differences
To convert TGA to AVIF, drop your TGA file into the converter above and download the AVIF: a modern format, usually smaller than JPG and WebP at the same quality, that supports transparency. It is free, needs no sign-up, and runs in your browser, so the file is never uploaded.
AVIF offers the strongest compression for a TGA destined for the web. It is AV1-based, supports full alpha, and is usually smaller than WebP at equal quality. Starting from an uncompressed TGA, rendered imagery often shrinks 20× or more.
Pixohub decodes the TGA (24- or 32-bit, raw or RLE, with origin handled) and encodes AVIF: with Safari's own encoder in Safari, and with a bundled libavif (WebAssembly) in Chrome, Edge and Firefox, which can't encode AVIF natively. It works in all of them, but a large frame takes noticeably longer than WebP.
AVIF can store 10- or 12-bit colour, but TGA is 8-bit and the canvas is 8-bit, so nothing is gained there. As with any canvas-based route, colour under fully transparent pixels is lost, and TGA's image ID and extension-area metadata aren't copied.
| TGA (Truevision TGA (Targa)) | AVIF (AV1 Image File Format) | |
|---|---|---|
| Compression | None or lossless RLE | Lossy or lossless (AV1 intra-frame in a HEIF container) |
| Colour depth | 8, 16, 24 or 32 bits per pixel | 8, 10 or 12 bits per channel; HDR and wide gamut capable |
| Transparency | 8-bit alpha in 32-bit files | Full alpha channel |
| Animation | None | Yes (image sequences) |
| Metadata | Optional image ID and extension area | EXIF, XMP, ICC / CICP colour signalling |
| Typical file size | Large — close to raw pixel size | Usually the smallest — often half a JPG at similar quality |
| Support | Game engines, 3D and video tools; browsers cannot display it | Chrome, Edge, Firefox and Safari 16+; patchy in older desktop software |
When to convert TGA to AVIF
Heavy render frames on a portfolio
3D artists who render to TGA can publish frames as AVIF to keep a portfolio page light without visible loss on smooth gradients and soft lighting, which AV1 handles particularly well.
Transparent sprites at minimum size
For a web game or interactive page that loads many sprites, AVIF with alpha can cut download size further than WebP. Test in your target browsers first.
Honest caveat
AVIF isn't a texture format for engines, and some tools still can't open it. For anything that isn't a web page, TGA to PNG is the safer conversion.
What converting TGA to AVIF keeps and loses
What you keep
- Alpha transparency from 32-bit TGAs.
- Resolution and orientation.
- Excellent perceived quality at 60–80% on renders and photos.
What you lose
- Losslessness: AVIF lossy smooths fine texture and grain.
- RGB under fully transparent pixels.
- TGA metadata.
- Encoding speed: a large frame takes several seconds.
Our test: TGA to AVIF on two real files
AVIF gave the highest fidelity of the lossy outputs from the photo TGA: 43.61 dB PSNR at 303 KB, against 39.87 dB at 225 KB for WebP, both at 85%. The 32-bit graphic kept its alpha and dropped from 1.9 MB to 33 KB at 46.34 dB, smaller than the 41 KB WebP.
The penalty is time: 6.8 s for the photo against about 1.6 s for WebP, because Chromium can't encode AVIF itself and Pixohub runs libavif compiled to WebAssembly.
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 | AVIF out | Pixels vs original | Transparency | Camera EXIF | Time |
|---|---|---|---|---|---|---|
| Photo, 1600 × 1200 | 5.8 MB | 303 KB (−95%) | SSIM 0.990 · 43.6 dB | None in source | None in source | 6.8 s |
| Graphic, 800 × 600, transparent | 1.9 MB | 33 KB (−98%) | SSIM 0.998 · 46.3 dB | Kept | None in source | 2.2 s |
Last updated
Apps and sites that work with TGA and AVIF
Where AVIF displays
Chrome, Edge, Firefox and Safari 16 or later display AVIF with alpha, so a render or sprite converted here works on any modern portfolio or game page. A picture element with a WebP or PNG fallback covers older browsers. Email clients rarely display it.
Engines don't read it
Unity, Unreal and Godot don't import AVIF as a texture format, so it is strictly a delivery format for the web. Keep the TGA or a PNG as the asset in your project. Keep AVIF for showcase pages, dev blogs and store pages you host yourself.
Desktop viewers
GIMP reads AVIF from version 2.10.22, and Windows Photos opens it once the free AV1 Video Extension is installed. Many older image viewers still can't, so check before sending AVIF files to a client. macOS Preview opens AVIF on recent macOS versions.
Common TGA to AVIF problems and fixes
Converting many sprites takes ages
Even our 800 × 600 graphic took 2.2 s to encode, so a folder of sprites adds up quickly in the batch panel. For large sets, TGA to WebP is several times faster and only slightly larger. Encoding runs on your own processor, so a laptop on battery is slower still.
An upload form refuses .avif
Many forms, asset stores and older CMSs accept only JPG, PNG or GIF, even when they say “images”. Use WebP or PNG for those, and keep AVIF for pages you control. Some sites check the file's contents, so renaming .avif to .png won't get it through. Convert the TGA again instead.
Smooth renders lose their grain
AV1 smooths fine noise, so film grain or dithering added deliberately to a render can disappear and gradients may look slightly plastic at lower settings. Raise quality to 85–90% for those frames, or use TGA to PNG when the grain is part of the look. Our graphic's soft shadow survived at 85% with 46.34 dB.
Tips for better TGA to AVIF results
- Start at 65% and compare with the original. AVIF degrades by blurring, not blocking, so it stays clean lower than JPG.
- Converting a whole set of sprites? TGA to WebP encodes far faster, alpha included.
How this converter works
Pixohub decodes your TGA and encodes the AVIF 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.