PNG to TGA Converter

Convert a PNG to Targa (TGA) in your browser

or drop files here

PN

PNG Format

Portable Network Graphics

A lossless raster image format developed as a patent-free replacement for GIF and standardized as ISO/IEC 15948 and a W3C Recommendation.

  • lossless compression
  • alpha transparency
  • 1 to 16 bits per sample
TG

TGA Format

Truevision TGA (Targa)

A raster image format associated with Truevision video boards. It supports RGB, indexed-color and grayscale imagery with optional run-length encoding.

  • optional run-length compression
  • 24-bit RGB or 32-bit with alpha
  • still used in video and game workflows

How to convert PNG to TGA

Follow these steps to convert PNG to TGA online.

    1

    Choose your PNG 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.

Before converting PNG to TGA

  • A 16-bit PNG is reduced to 8 bits per channel.
  • The ICC profile, EXIF and other metadata are dropped.
  • An animated PNG gives one TGA from its first frame.
  • The page offers no settings, so check row order and alpha in your engine's importer.

About PNG and TGA

What is a PNG file?

PNG was created as a patent-free successor to GIF, and it was the first format ever published as a W3C Recommendation, in October 1996, and RFC 2083 plus ISO/IEC 15948:2004 followed. PNG compression is lossless, built on the DEFLATE algorithm, a combination of LZ77 and Huffman coding. A fixed signature starts the file, then come chunks such as IHDR for the header and IDAT for pixel data, with IEND at the end.

You can store indexed, grayscale or truecolor pictures with 1 to 16 bits per sample, and add alpha if each pixel needs its own transparency. The newest edition of the specification supports HDR with a cICP chunk and permits Exif data in an eXIf chunk. Screenshots on macOS are saved as PNG by default, and all major browsers display it. The registered media types are image/png and, for animated files, image/apng. A PNG headed for a TGA workflow often comes from a texture artist, a screenshot or an exported graphic, and the reason for converting is usually an older renderer or importer that asks for Targa.

Programs that open PNG files

  • Windows, Mac and Linux: GIMP imports PNG for editing, which lets you check the image ahead of a texture pipeline.
  • Windows, Mac and Linux: ImageMagick reads PNG, though you should inspect the installed format support first.
  • Web: Firefox and Chrome display PNG.
  • Mobile: Safari and Chrome display PNG.

PNG and TGA compared

Targa is a raster image format associated with Truevision video boards. It supports RGB, indexed-color and grayscale imagery, and it can use optional run-length encoding to reduce storage. Video editing and game-development workflows still use Targa images. In ImageMagick, Truevision Targa shares a group with ICB, VDA and VST.

Each color component of a 24-bit RGB TGA takes eight bits, and the 32-bit kind adds alpha to that. Saving RGB artwork at 24 bits removes the space needed for a Targa alpha channel. Open the result in the application that will use it before relying on it for a decal, cutout or particle texture.

Here the browser's own decoder reads the PNG into 8-bit RGBA pixels, and ImageMagick then writes the TGA. It sets no quality or compression option. Passing through raw pixels costs a 16-bit PNG its extra depth, and EXIF, ICC profiles and XMP do not come along. A format change should not be treated as a color-management operation, particularly for maps where the destination expects a specific interpretation of channel values.

An animated PNG yields only its first frame, not a run of TGA files. For an animated texture, export the frames you need through a workflow that controls filenames and timing.

Other ways to convert PNG to TGA

  • GIMP: load the PNG, then File > Export As with a name that ends in .tga. The Targa export dialog has a Use RLE compression option and an Origin setting. Choose what the destination expects. GIMP's Targa plug-in does not preserve every version-2 extension field.
  • ImageMagick: magick texture.png texture.tga converts one file, and ImageMagick's format list shows PNG and TGA as readable and writable.
  • ImageMagick mogrify: magick mogrify -format tga *.png converts every PNG in the current folder. The -format option changes the suffix, so the PNGs stay beside the new .tga files.

Problems with PNG files

Layers sit in the wrong place after export from GIMP: layer offsets may differ between GIMP and other applications, so avoid its PNG offset option when the image will travel.

Camera tags or profiles are missing: they are optional in GIMP exports, so enable the relevant metadata controls when you need them. They would not survive this converter in any case, as the TGA is written from raw pixels.

An animation shows as a still: a program that cannot play animated PNG shows the default still image, though the specification itself covers animation. This page, too, converts that first frame.

A smaller compression setting seems to cost quality: it does not, because PNG compression is lossless and the setting never changes pixel fidelity. Only the size of the PNG changes, and the pixels this page reads stay the same.

Gradients band after conversion: PNG can hold up to 16 bits per sample, and this converter works in 8 bits per channel. Keep the 16-bit PNG as the master, and use a desktop workflow when those values matter.

Frequently Asked Questions

Everything you need to know about our converter

How do I convert PNG to TGA?

Can the TGA keep my 16-bit PNG's depth?

What does 32-bit TGA mean?

Why does my TGA appear upside down?

Does an animated PNG become a TGA sequence?

Are the ICC profile and metadata copied into the TGA?

Can I convert several textures at once?

Does my PNG leave my device?

How large a texture can I convert?

Why does it say the image could not be decoded?