TGA vs WebP: technical differences
To convert TGA to WebP, drop your TGA file into the converter above and download the WebP: a modern web format, usually smaller than JPG or PNG 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.
WebP is one of the few web formats that can match TGA's main feature, an 8-bit alpha channel, while compressing hard. Pixohub decodes the TGA (24/32-bit, raw or RLE, origin-corrected) and encodes lossy WebP at your chosen quality, keeping transparency.
Lossy WebP subsamples colour (4:2:0) and blurs very fine detail at lower quality. Rendered scenes and painted textures hold up well at 80–90%. Pixel art and hard-edged UI sprites may lose crispness. Compared with an uncompressed 32-bit TGA, a WebP is often 20–50× smaller.
TGA's header metadata (image ID, extension area) isn't carried over. RGB data under fully transparent pixels is also discarded because the canvas premultiplies alpha. That doesn't matter on a web page, but it's a reason not to use WebP as a texture interchange format.
| TGA (Truevision TGA (Targa)) | WebP (WebP) | |
|---|---|---|
| Compression | None or lossless RLE | Lossy (VP8 intra-frame) or lossless (VP8L) |
| Colour depth | 8, 16, 24 or 32 bits per pixel | 8 bits per channel, RGB(A); lossy mode uses 4:2:0 chroma |
| Transparency | 8-bit alpha in 32-bit files | Alpha in both lossy and lossless modes |
| Animation | None | Yes |
| Metadata | Optional image ID and extension area | EXIF, XMP and ICC chunks |
| Typical file size | Large — close to raw pixel size | Roughly 25–35% smaller than JPG/PNG at similar quality |
| Support | Game engines, 3D and video tools; browsers cannot display it | All modern browsers; most current editors and OSes |
When to convert TGA to WebP
Showing game sprites and assets on a website
Wikis, asset-store pages and dev blogs can show transparent sprites as WebP, with real transparency at a small file size. That's better than a TGA (browsers can't show it) or a JPG (no alpha).
Lightweight screenshot galleries
Converting a folder of TGA screenshots to WebP keeps a gallery page fast. Every current browser displays WebP, including Safari 14 and later.
Rendered overlays for web pages
Render passes saved as 32-bit TGA, such as product turntables or logos with shadows, become WebP overlays that keep their soft alpha edges.
What converting TGA to WebP keeps and loses
What you keep
- Transparency from 32-bit TGAs, including soft edges.
- Resolution and correct row orientation.
- High visual quality at 80–90%.
What you lose
- Lossless fidelity: WebP lossy discards some detail and colour resolution.
- Hidden RGB under fully transparent pixels.
- TGA metadata (image ID, extension area).
Our test: TGA to WebP on two real files
The 5.8 MB photo TGA became a 225 KB WebP at 85% (39.87 dB PSNR), smaller than the 296 KB JPG from the same file. The graphic shows why you'd pick WebP over JPG here: its 32-bit alpha survived, soft shadow included, and it shrank from 1.9 MB to 41 KB at 45.98 dB, with a largest difference of 38 levels.
For comparison, the opaque PPM version of the graphic, flattened onto white, became a 15 KB WebP, so keeping transparency cost about 26 KB here.
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 | WebP out | Pixels vs original | Transparency | Camera EXIF | Time |
|---|---|---|---|---|---|---|
| Photo, 1600 × 1200 | 5.8 MB | 225 KB (−96%) | SSIM 0.977 · 39.9 dB | None in source | None in source | 1.6 s |
| Graphic, 800 × 600, transparent | 1.9 MB | 41 KB (−98%) | SSIM 0.998 · 46.0 dB | Kept | None in source | 1.5 s |
Last updated
Apps and sites that work with TGA and WebP
Engines and WebP
Godot imports WebP natively, so there a WebP can double as a texture. Unity doesn't import WebP without a plug-in, so keep TGA or PNG for Unity projects and use the WebP only for web pages. Godot also imports the TGA directly, so WebP is a choice there, not a requirement.
Browsers
Every current browser shows WebP with transparency, Safari since version 14, so a sprite or render converted here can go on a wiki, an itch.io page or a dev blog and display the same everywhere. Internet Explorer never supported WebP, which matters only on legacy intranets.
Editors that open the WebP
GIMP, Krita and Photoshop from version 23.2 open WebP, so artists can check the file. For further editing, return to the TGA rather than re-saving the lossy WebP. Earlier Photoshop versions need Google's WebPShop plug-in, and Windows Photos shows WebP too.
Common TGA to WebP problems and fixes
One bad file stops a bulk run
Bulk Format Convert processes files in order and stops at the first one it can't read, showing that file's error, for example a 16-bit TGA. Remove or re-export the named file in GIMP as 24- or 32-bit RGB and start the batch again. Files converted before the failure are discarded, so fix the file and run the whole batch again.
The WebP is completely invisible
If the TGA is 32-bit with an alpha channel full of zeros, which some exporters write, every pixel is transparent and the WebP shows nothing. Re-save the TGA as 24-bit in GIMP or Photoshop to drop the empty channel, then convert. A quick check is to open the TGA in GIMP and look for a checkerboard.
Unity won't import the WebP
Unity's texture importer doesn't read WebP, so dropping the file into Assets does nothing useful. Keep the TGA for the project, or convert with TGA to PNG if you need a smaller lossless copy. WebP is a delivery format for web pages; source textures should stay lossless so the engine can compress them for each platform.
Tips for better TGA to WebP results
- For pixel art, keep quality at 95% or use TGA to PNG. Lossy smoothing blurs single-pixel detail.
- Check transparent sprites on both light and dark page backgrounds for edge fringing.
How this converter works
Pixohub decodes your TGA and encodes the WebP 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.