TGA to JPG Converter

Turn Targa files into JPG pictures that any program can open.

or drop files here

TG

TGA Format

Truevision TGA (Targa)

A raster image format. It stores 8 to 32 bits per pixel with optional run-length encoding and an alpha channel.

  • optional run-length compression
  • alpha channel
  • 8 to 32 bits per pixel
  • simple header
JP

JPG Format

JPEG image

A lossy raster image format defined by the Joint Photographic Experts Group (ISO/IEC 10918-1), designed for photographs. .jpg and .jpeg are the same format.

  • lossy compression
  • no alpha transparency

How to convert TGA to JPG

Follow these steps to convert TGA to JPG online.

    1

    Choose your TGA file, or several at once.

    2

    Wait while the converter turns each file into JPG.

    3

    Download each new JPG file. Your original file isn't changed.

What to know before converting TGA to JPG

  • ImageMagick reads the TGA in your browser; nothing is uploaded.
  • JPG has no alpha channel, so a 32-bit TGA loses its transparency.
  • JPG is lossy, so keep the TGA if it is your production copy.
  • The page sets no quality; the JPG uses ImageMagick's default.
  • A picture over about 537 megapixels is too big for the page.

About TGA files

What is a TGA file?

Targa, written .tga, began as the picture format of Truevision's video boards, which is where the name comes from. It can hold RGB, indexed-color or grayscale images. In a 24-bit RGB file each of red, green and blue gets 8 bits; a 32-bit file adds an 8-bit alpha channel so pixels can be partly see-through. The data may be run-length encoded, an option that squeezes long stretches of identical pixels.

The boards are history, but the format stuck around. Video editing and game development still use Targa images, so most TGAs people find today are game textures, 3D renders or frames out of an editing project. Hardly any phone, browser or office program shows one, which is the usual reason for wanting a JPG: something to paste into a document, post on a forum or send by email.

Programs that open TGA files

Windows, Mac and Linux:

  • GIMP has an official Targa plug-in that both loads and exports the format.
  • ImageMagick treats TGA, ICB, VDA and VST as one Truevision Targa family and can read and write it.

Windows and Mac:

  • Adobe Photoshop can open a Targa and has its own Targa options on save; a 24-bit save leaves no room for an alpha channel.

TGA and JPG compared

  • Extensions and media type: .tga for Targa. For JPEG, .jpg and .jpeg are one format, registered as image/jpeg.

  • Compression: a Targa keeps every pixel, whether or not run-length encoding is used. Baseline JPEG throws detail away by cutting the picture into 8x8 pixel blocks, applying a discrete cosine transform and coding the result with Huffman codes.

  • Transparency: the alpha channel in a 32-bit TGA has no counterpart in JPEG, which stores no transparency at all.

  • Layers: JPEG cannot store them.

  • Where each is used: Targa belongs to production, with game textures, renders and video frames. Most digital cameras and scanners build JPEG in, and browsers all show it, so it travels where a Targa cannot.

How the page does it: ImageMagick, compiled to WebAssembly, reads the TGA on your device and writes the JPG. Only one image is read from the file.

Other ways to convert TGA to JPG

  • ImageMagick (command line): magick texture.tga preview.jpg does it in one line. ImageMagick's format list shows TGA and JPEG both as readable and writable, and the command ran on a TGA fixture here. Add -quality 90 before the output name to pick a JPEG quality yourself; ImageMagick scales it from 1, the lowest quality and most compression, to 100, the best quality and least compression.
  • GIMP (Windows, Mac, Linux): open the TGA, choose File > Export As, give the file a .jpg name and click Export. A JPEG export dialog follows, with quality at 85 by default. The same number can mean a different quality in another program, and JPEG doesn't support transparency or multiple layers.
  • Pillow (Python): run from PIL import Image then Image.open("texture.tga").convert("RGB").save("preview.jpg"). Pillow reads and writes TGA, and picks the output format from the file name. Saving an RGBA Targa straight to JPEG raised an error in a test, so the convert("RGB") step stays.

Problems with TGA files

  • Nothing on your computer opens it: open the TGA in GIMP, Photoshop or ImageMagick, or make a JPG here.
  • The see-through areas are gone: JPEG has no alpha channel. When transparency matters, take the TGA to PNG converter instead.
  • A "32-bit" file looks like ordinary color: the number counts bits per pixel, so it is four 8-bit channels, not 32 bits for each color.
  • An export lost its alpha: saving RGB artwork at 24 bits leaves no space for a Targa alpha channel. Write it as 32-bit if you need one.
  • Partial transparency in an indexed Targa: GIMP cannot export full partial-alpha information in an indexed Targa color map, and only one fully transparent color is allowed in its indexed mode.
  • The JPG looks softer than the texture: that is the cost of lossy compression. Keep the TGA as the working file.
  • Version 2 extension fields vanish: GIMP's Targa support does not keep every one of them, so a round trip through GIMP can drop extra data stored in the file.
  • The page refuses a huge image: shrink the picture in an editor first.

Frequently Asked Questions

Everything you need to know about our converter

How do I convert a TGA to a JPG?

Why can't my computer open a .tga file?

Does my TGA's transparency carry over to the JPG?

What does a 32-bit TGA actually mean?

Will the JPG be smaller than the TGA?

Can the JPG go back into my game as a texture?

Can I convert a whole folder of TGAs?

Which quality setting does this converter apply?

Why is my huge TGA refused?

Is my TGA sent to a server?