SVG vs TGA: technical differences
To convert SVG to TGA, drop your SVG file into the converter above and download the TGA: an uncompressed 32-bit format with transparency, common in games and 3D tools. It is free, needs no sign-up, and runs in your browser, so the file is never uploaded.
TGA output from Pixohub is 32-bit uncompressed with a full 8-bit alpha channel, so an SVG's transparent background and soft anti-aliased edges carry over exactly. That makes it a sound way to turn vector UI art into textures for engines and tools that ask for TGA. Each pixel costs 4 bytes, so a 1024 × 1024 icon atlas is 4 MB on disk regardless of how simple the vector was.
There is one subtlety for game work. Anti-aliased edges contain pixels whose colour is mixed with transparency. Browser canvases store premultiplied colour internally, and edge pixels with very low alpha may not keep their exact original RGB. When engines filter or mipmap such textures you can see faint dark or light fringes. If that happens, enable your engine's alpha dilation or padding option, or add a little bleed around the art in the SVG.
Size is set by the SVG's width and height. Rendering excludes scripts, external images and web fonts, so outline the text for UI labels.
| SVG (Scalable Vector Graphics) | TGA (Truevision TGA (Targa)) | |
|---|---|---|
| Compression | Not applicable — XML text describing shapes (gzip as .svgz) | None or lossless RLE |
| Colour depth | Resolution-independent vector colours | 8, 16, 24 or 32 bits per pixel |
| Transparency | Yes (opacity on any element) | 8-bit alpha in 32-bit files |
| Animation | Yes (SMIL or CSS) | None |
| Metadata | Title, description and arbitrary XML metadata | Optional image ID and extension area |
| Typical file size | Tiny for logos and icons; grows with path complexity | Large — close to raw pixel size |
| Support | All browsers; vector editors such as Illustrator, Inkscape, Figma | Game engines, 3D and video tools; browsers cannot display it |
When to convert SVG to TGA
Game UI icons and HUD elements
UI designers often draw buttons, ability icons and HUD pieces in vector tools. Rendering them to 32-bit TGA at the exact texture size, such as 256 × 256 or 512 × 512, produces files that Unreal, Unity and most mod tools import with alpha intact.
Decals and logos for vehicle or sports-game mods
Livery and decal mod kits for many racing and sports games specify TGA with alpha. Vector team logos convert cleanly at whatever resolution the kit requires.
Overlay graphics for video tools
Some broadcast and video applications accept TGA stills with alpha for lower-thirds and bugs. Rendering the SVG at 1920 × 1080 with the graphic in position gives a ready-made overlay.
What converting SVG to TGA keeps and loses
What you keep
- Full alpha transparency, including soft edges
- Exact rendered colours, with no compression loss
- The pixel dimensions set in the SVG
What you lose
- Vector scalability; re-export from the SVG for other sizes
- Small file size (uncompressed, 4 bytes per pixel)
- Animation, interactivity, external images and web fonts
Our test: SVG to TGA on two real files
The 1 KB SVG became a 1.9 MB TGA, exactly 800 × 600 × 4 bytes plus the 18-byte header, with transparency kept. The pixels are the lossless browser render (PSNR 62.05 dB, largest difference 14 levels against our reference), so TGA itself added no loss.
Because the file is uncompressed, its size depends only on the pixel dimensions: a 2048 × 2048 texture is about 16.8 MB whatever the artwork contains. The conversion took 896 ms.
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 | SVG in | TGA out | Pixels vs original | Transparency | Camera EXIF | Time |
|---|---|---|---|---|---|---|
| Graphic, 800 × 600, transparent | 1 KB | 1.9 MB (1546× larger) | SSIM 1.000 · 62.0 dB | Kept | None in source | 0.9 s |
Last updated
Apps and sites that work with SVG and TGA
Godot
Godot imports SVG directly and can rasterise it at a set scale, so a Godot project may not need this conversion. It imports TGA too, which helps when a team's asset pipeline standardises on TGA. For pixel-perfect UI at a fixed size, a pre-rendered TGA avoids differences between Godot's SVG rasteriser and the browser's.
Unity and Unreal
Neither imports SVG as a regular texture without a package or plugin, but both import 32-bit TGA with alpha. Converting UI art to TGA at the target size gets it into a project directly. Unity's Vector Graphics package can import SVG, but many teams still prefer pre-rendered textures for predictable results.
Livery and decal kits
Racing and sports-game modding guides commonly specify TGA with alpha at fixed sizes such as 1024 or 2048 square. Set those sizes on the SVG before converting. Pixohub's 32-bit TGA with alpha is the variant those guides usually ask for, and the transparent background lets the car or kit colour show through around the logo.
Common SVG to TGA problems and fixes
The texture is flipped vertically
Pixohub writes TGA with a top-left origin and sets the header flag that says so. A tool that ignores the flag reads the rows bottom-up and shows the image upside down. Flip the image with flip image before converting if your tool does this. Most current engines read the flag correctly, so check in the engine before flipping anything.
Dark fringes after mipmapping
Fully transparent pixels around the art carry colour values the engine blends in when it shrinks the texture. Turn on the engine's alpha dilation option, or extend the background colour under the art in the SVG at near-zero opacity. Leaving a few pixels of padding around each icon also reduces bleeding between neighbouring icons in an atlas.
The texture isn't a power of two
The TGA takes its size from the SVG's width and height. Without them, Pixohub uses the viewBox scaled so the long side is at least 1024 px, which gives 1024 × 1024 for a square icon but 1024 × 683 for a 3:2 viewBox. Set width and height explicitly to a power of two before converting, in plain pixels, since physical units are converted at 96 px per inch.
Tips for better SVG to TGA results
- Set width and height to a power of two (256, 512, 1024, 2048) if the texture will be mipmapped or compressed on the GPU.
- Leave a few pixels of transparent padding around icons in the SVG so texture filtering doesn't clip or bleed the edges.
How this converter works
Pixohub decodes your SVG and encodes the TGA entirely inside your browser. 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.