JPG vs TGA: technical differences
To convert JPG to TGA, drop your JPG 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: blue, green, red and alpha bytes for every pixel, with an 18-byte header. Since JPG has no transparency, the alpha byte is 255 (fully opaque) everywhere. A 1024×1024 photo texture therefore weighs about 4 MB as TGA, against perhaps 200–500 KB as JPG.
The JPG's compression artifacts are copied into the TGA unchanged, and when a game engine later compresses the texture again (to BC1/DXT1 or similar), those artifacts can become more visible. Starting from the highest-quality JPG you have is more important than the format conversion itself.
| JPG (JPEG (Joint Photographic Experts Group)) | TGA (Truevision TGA (Targa)) | |
|---|---|---|
| Compression | Lossy (8×8 DCT blocks, quantisation, chroma subsampling) | None or lossless RLE |
| Colour depth | 8 bits per channel; RGB/YCbCr, greyscale or CMYK | 8, 16, 24 or 32 bits per pixel |
| Transparency | None | 8-bit alpha in 32-bit files |
| Animation | None | None |
| Metadata | EXIF, IPTC, XMP, ICC profile | Optional image ID and extension area |
| Typical file size | Smallest of the classic formats for photos | Large — close to raw pixel size |
| Support | Universal — every browser, camera and device | Game engines, 3D and video tools; browsers cannot display it |
When to convert JPG to TGA
Photo-based textures for game mods
Modders who build ground, wall or skin textures from photographs often need TGA because their modding toolchain converts TGA into the game's own texture format. Converting a JPG reference photo gives a file the toolchain accepts.
Source textures in a studio asset pipeline
Teams that store all source textures as TGA in version control can bring stock-photo JPGs into line with the convention, keeping import settings consistent across the project.
Older video and broadcast graphics systems
Some legacy title generators and compositing systems take TGA stills. Converting a JPG background plate makes it importable — note that it will have no transparency to work with.
What converting JPG to TGA keeps and loses
What you keep
- Every decoded pixel, with no further compression loss.
- Pixel dimensions and orientation.
What you lose
- Compactness — TGA is uncompressed and roughly 8–20 times larger than a typical JPG.
- EXIF, IPTC, XMP and ICC metadata.
Our test: JPG to TGA on two real files
Both TGAs reproduced the decoded JPG exactly. With an 18-byte header and 4 bytes per pixel, the photo came to 7,680,018 bytes and the graphic to 1,920,018: 18 times and 44 times the JPGs. A quarter of each file is an alpha channel set to fully opaque, since a JPG has no transparency.
Orientation was applied and EXIF removed. Both took about a second, essentially the JPG decode plus a memory copy.
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 | JPG in | TGA out | Pixels vs original | Transparency | Camera EXIF | Time |
|---|---|---|---|---|---|---|
| Photo, 1600 × 1200 | 425 KB | 7.7 MB (18× larger) | Identical pixels | None in source | Removed | 1.0 s |
| Graphic, 800 × 600, transparent | 43 KB | 1.9 MB (44× larger) | Identical pixels | None in source | None in source | 1.0 s |
Last updated
Apps and sites that work with JPG and TGA
Engines that take the JPG directly
Unity, Unreal Engine and Godot all import JPG textures as well as TGA, and each recompresses on import either way. Convert only when a project convention or a modding tool demands TGA; otherwise the JPG saves disk space with the same in-engine result.
Modding and texture tools
Many older modding toolchains and texture converters were written around TGA input, and stb_image, which countless small engines use, reads it alongside JPG. Photoshop and GIMP both open and save TGA if you need to paint into the alpha channel afterwards.
Rendering and compositing
Blender reads TGA as a texture and offers both run-length 'Targa' and 'Targa Raw' outputs. FFmpeg reads TGA too, so converted stills can sit in a numbered TGA image sequence. Like Pixohub's output, 'Targa Raw' is uncompressed, so files from either source behave the same.
Common JPG to TGA problems and fixes
Block artifacts show up more in-game
Engines compress textures again with block formats such as BC1/DXT1, which work on 4×4 blocks. Layered on JPG's 8×8 blocks, the two grids can produce visible patterning on smooth surfaces. Start from the highest-quality JPG available, or use a photo source with less compression; the TGA cannot remove what the JPG introduced.
Colours look washed out in the engine
Engines mark each texture as sRGB colour or as linear data. A photo texture imported with sRGB switched off, the setting used for normal and roughness maps, renders lighter and flatter than the JPG. Turn the option back on (in Unity, sRGB (Color Texture); in Unreal Engine, the sRGB checkbox) for any texture that holds visible colour.
The opaque texture uses more memory than expected
Some importers choose an alpha-capable compressed format for any 32-bit source, which can double a texture's GPU memory even though every alpha value is 255. If the texture is meant to be opaque, tell the importer to ignore alpha (in Unity, set Alpha Source to None) or re-save as 24-bit TGA in an editor.
Tips for better JPG to TGA results
- Crop to a square and resize to a power of two (512, 1024, 2048) before converting if your engine needs it; use crop image first.
- If you need a transparent region (for a decal), remove the background first and convert via PNG to TGA.
How this converter works
Pixohub decodes your JPG 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.