JPG to TGA Converter

Save a JPG as a Targa (TGA) file for game and video tools, in your browser.

or drop files here

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
  • adjustable quality
  • no alpha transparency
  • supported everywhere
TG

TGA Format

Truevision TGA (Targa)

A raster image format introduced by Truevision in 1984. 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

How to convert JPG to TGA

Follow these steps to convert JPG to TGA online.

    1

    Choose your JPG file, or several at once.

    2

    Wait while the converter turns each file into TGA.

    3

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

What to know before converting JPG to TGA

  • Your browser decodes the JPG and ImageMagick writes the TGA.
  • A JPG has no alpha channel, so the TGA has no transparency.
  • JPEG artifacts stay; TGA can't restore detail.
  • EXIF, color profiles and XMP are dropped.
  • Each JPG you choose gives its own TGA.

Understanding JPG for TGA output

What is a JPG file?

The Joint Photographic Experts Group gave JPG its name and started the work in 1986. The core standard was released as ITU-T Recommendation T.81 and as ISO/IEC 10918-1, dated 1992 and 1994 respectively. The endings .jpg and .jpeg name the same format, registered as image/jpeg.

Baseline JPEG is lossy. Pictures are split into 8x8 pixel blocks, transformed with a discrete cosine transform and entropy coded using Huffman tables, which typically cuts the size to between a tenth and a twentieth. JPEG keeps 8 bits per color channel and lacks an alpha channel, so there is no transparency or layer support. Digital cameras and scanners commonly produce JPEG, and each major browser shows it. The last US patents covering JPEG ran out on 27 October 2006.

Programs that open JPG files

  • Windows, Mac and Linux: GIMP imports a JPEG for editing and exports at quality 85 by default.
  • Windows, Mac and Linux: ImageMagick reads JPG at the command line.
  • Web: Firefox and Chrome show JPG pictures in the browser.
  • Mobile: Safari and Chrome display JPG pictures.

You choose the quality when saving a JPG, normally from 0 to 100, and one number doesn't promise the same look in every program. Progressive JPEGs load as a blurry whole that sharpens as more of the data arrives.

JPG and TGA compared

  • Extensions: .jpg or .jpeg for JPG, with the media type image/jpeg; .tga for Targa.
  • Compression: JPG is lossy. TGA files may be run-length encoded, an optional step that saves space.
  • Transparency: JPG has none. A 32-bit TGA adds an eight-bit alpha channel to RGB.
  • Color: a 24-bit RGB TGA stores eight bits in each color component, the same depth as the 8 bits per color channel a JPG stores. TGA also supports indexed-color and grayscale images.
  • Quality setting: JPG quality is a value, normally 0 to 100, that one program scales differently from another. This page passes no quality setting.
  • Related extensions: ImageMagick groups ICB, VDA and VST with Truevision Targa, so you may see those endings on files of the same kind.
  • Where each is used: JPG comes from cameras and scanners. Targa was built for Truevision video boards and survives in video editing and game development.

In this page the browser decodes the JPG, then ImageMagick writes the TGA. The picture passes through 8-bit RGBA and metadata isn't copied, so camera data is not in the TGA. The JPG's blocky artifacts stay too, because they are already in the pixels. Converting to TGA doesn't recompress with loss, and it won't bring back detail. Because a JPG lacks alpha, there is no transparency to carry over.

Choose TGA only when the receiving tool asks for it, since a photo stored this way can take more room. The page doesn't resize the picture or change its color depth beyond the 8 bits per channel it already has. It runs in your browser, and the download is a new file sharing the original's name, such as photo.tga. Pick several JPGs and they are processed in sequence; every TGA downloads separately, with no ZIP.

Other ways to convert JPG to TGA

  • GIMP: open the JPG, which GIMP imports as a new project, then use File > Export As (Shift+Ctrl+E) and select TGA. The Export Image as TarGA dialog has a Use RLE compression checkbox: checked, the image is compressed with Run-Length Encoding, and otherwise it is uncompressed. Its Origin choice of Bottom left or Top left sets how the image data is stored and has no visual effect.
  • ImageMagick: run magick fabric-reference.jpg fabric-texture.tga, which follows the magick input output pattern of ImageMagick's own examples. Its format table lists Truevision Targa as readable and writable.

Problems with JPG files

  • No transparency after converting: JPEG can't hold transparent pixels, so the TGA comes out opaque. Mask the picture in an editor that writes alpha and save it as TGA.
  • A photo frame won't show the JPG: some older frames reject progressive JPEG, which loads a rough image first. Save the JPG again with progressive mode disabled.
  • Quality numbers don't match between programs: the same number can mean different compression in different editors.
  • Layers can't be recovered: a JPEG holds no editable layer stack, so keep the original project file.

Frequently Asked Questions

Everything you need to know about our converter

What's the way to convert a JPG into a TGA?

Will the TGA have an alpha channel?

Does converting JPG to TGA improve quality?

Why would a game or video program want a TGA?

Why is the TGA bigger than my JPG?

Is the EXIF data kept in the TGA?

What is the difference between a 24-bit and a 32-bit TGA?

Which programs open a TGA file?

Does the TGA keep the JPG's pixel size?

Is .jpg the same as .jpeg when I convert?