PNG to TGA Converter
Your game engine, 3D program or texture pipeline wants a TGA, and your artwork is a PNG. This converter writes a 32-bit TGA with an alpha channel from your PNG, right in the browser tab, so the transparency you drew survives the trip. Check the notes on size and texture dimensions below.
Embed this tool on your websiteShow code
Free to use on any site. Paste the code where you want the tool to appear. It runs inside the page; visitors' files are processed in their own browser and are not uploaded.
WordPress and most site builders have a "Custom HTML" block where this code can be pasted. The embed keeps a small link back to CalcMaster.
How to convert PNG to TGA
- Add your PNG files by dropping them, clicking the drop zone or pasting.
- The output format is already set to TGA. Adjust quality or size if you need to.
- Press Convert and compare the original and new size for each file.
- Download each file or all of them as a ZIP.
When to convert, and when not to
- An engine, modding tool or 3D program asks for TGA textures and does not take PNG.
- You need a texture with a transparent or semi-transparent area, such as foliage, a decal or a UI icon.
- You are following a tutorial or asset guideline that names TGA as the delivery format.
- Do not convert if the program already accepts PNG: the TGA is bigger and offers nothing extra here.
What changes
- The TGA is 32-bit: red, green, blue and alpha, with eight bits for each.
- The data is written uncompressed, so the file is much larger than the PNG.
- Rows are written starting from the top left, which most current programs read as the right way up.
- No metadata or colour profile is carried over from the PNG.
- The pixel size is unchanged unless you use the Resize option; the tool does not snap to texture sizes.
Alpha in a texture file
Game and 3D programs often use the alpha channel for something specific: cut-out edges on leaves, glass opacity, or a mask that another shader reads. The TGA written here keeps the alpha values from your PNG exactly, including the soft gradients at edges, so the shader sees what you painted.
One thing to watch is the colour hidden under fully transparent pixels. Some paint programs store colour there and some store black. If you see dark fringes around a cut-out in your engine, the cause is usually that stored colour, and you would fix it in the original artwork, not in the converter.
Size, power of two and compression
Many engines prefer textures whose width and height are powers of two, such as 256 or 1024 pixels. This converter does not change dimensions to fit that rule. If your PNG has a different size, use the Resize option for a rough fit, or adjust the canvas in an image editor before converting.
The TGA is stored without run-length compression. That keeps it readable by nearly everything, but the file grows with the pixel count. Most engines convert textures to their own compressed format on import, so the large source file is normally only a stepping stone.
Checking the result in your engine
Convert one texture first and import it before you process a full set. Look at the alpha channel view in your tool and confirm edges and transparency match the PNG. If a tool reports the picture as upside down, it may expect the old bottom-left row order; flipping it on import, or in an editor, is the usual remedy.
When everything looks right, add the rest of your PNG textures at once. They convert one after another, keep their original names, and can be downloaded together as a ZIP.
Privacy: your files stay on your device
- The tool decodes, resizes and encodes your pictures with your browser. The files are never sent to a server.
- To check it yourself: open the browser developer tools (F12), open the Network tab, convert a file, and look for any request that carries your image. You will see none.
Frequently asked questions
Does the TGA keep my transparency?
Yes. It is a 32-bit file with an alpha channel, so transparent and semi-transparent pixels carry across.
Is the TGA compressed?
No. It is stored uncompressed, which makes it widely readable but larger than the PNG.
Can it resize my texture to a power of two?
Not automatically. You can resize by percentage or to a maximum width and height, but it will not snap to 512 or 1024 for you.
My engine shows the image flipped. Why?
A program may expect a different row order. Flip the texture on import or in an image editor.
Will it work with older TGA readers?
Most read 32-bit uncompressed files. If one does not, try another reader for a test, because the file follows the common layout.