JPG to TGA Converter

A JPG is the everyday compressed photo format. A TGA, also called Targa, is a simple format that game engines and older graphics programs still ask for. Converting a JPG to TGA gives you that file with the photo's pixels unchanged and a much larger size.

FluffyShield Protected workspace
FluffyShield

Isolated workspace: other page scripts can't read your files. How FluffyShield works

Free · No upload · No sign-up · No usage quotas

How it works
  1. The JPG is decoded in your browser
  2. Each pixel is written out, row by row
  3. The .tga is ready to save

What it does

Four bytes a pixel

The default TGA is 32-bit: red, green, blue and alpha for every pixel. A photo has no use for alpha, so 24-bit RGB saves a quarter of the bytes.

Limits A side can be at most 65,535 pixels; TGA has no room to record more.

Does a JPG change when it becomes a TGA?

Not a pixel on our photo, but the file grew about 14 times: a TGA lists every pixel at four bytes each.

Why is a TGA of a photo so large?

Our test photo, a camera photo of Stanton Mountain reflected in Lake McDonald, a National Park Service photo in the public domain, was 678.2 KB as a JPG and 9.8 MB as a TGA, about 14 times as much. By default a TGA is an 18-byte header followed by every pixel, four bytes each, so its size is plain multiplication: 2,449,920 pixels × 4 bytes + 18.

Nothing was lost along the way. Each pixel the JPG draws is in the TGA unchanged. A game tool that asks for TGA gets what it expects; the price is paid in disk space.

Making the TGA

Step 3 is optional. RLE rarely helps a photo, so try it on flat graphics.

  1. Pick the JPG with Choose images.

  2. Open Settings: behind the gear on a phone, in the panel next to the tool on a computer.

  3. Choose 24-bit RGB to drop the alpha channel the photo does not use, or RLE storage for flat graphics.

  4. Press Convert 1 to TGA.

  5. Press Download to keep the .tga.

Is the TGA the only option?

The tool lists PNG among the files it takes.

FluffyBench's JPG to PNG converter

A PNG holds the same pixels exactly, and it packs them, so it is far smaller than the TGA.

Search FluffyBench