PNG to VTF Converter

To convert a PNG to VTF, drop the image below, pick a preset (map texture, model texture or spray) and download the .vtf. The tool resizes it to power-of-two sides, builds the mipmaps and can write the matching .vmt material too. It runs in your browser, so nothing is uploaded. Use the VTF to PNG tab to open a VTF and save it as a PNG.

Free · no signup · your files stay in your browser

Loading the tool...
Demo with a sample file, recorded in this tool.

PNG to VTF examples

PNG to VTF converter output: a transparent smiley spray written as a 512x512 DXT5 VTF with its UnlitGeneric VMT
A transparent 600x600 PNG made into a Spray HD VTF: 512x512 DXT5, 256 KB, with the matching VMT.
PNG to VTF result for a brick wall texture: 1024x512 DXT1 VTF with 11 mipmaps and a LightmappedGeneric VMT
A 768x512 brick PNG with the Map texture preset: resized to 1024x512, DXT1, 11 mipmaps.
PNG to VTF spray in the classic 256x256 BGRA8888 format, shown in the tool preview with its VMT
The same PNG with the Spray classic preset: 256x256 lossless BGRA8888 for older Source games.

Free VTF spray converter and VTF maker

Most people looking for a VTF converter want one of two things: a spray for Team Fortress 2, Garry's Mod or another Source game, or a texture for a map or a model. This VTF maker does both from one PNG. The Spray HD preset writes a 512x512 DXT5 VTF with Clamp S, Clamp T and No LOD set and no mipmaps, plus an UnlitGeneric VMT with $translucent, so the see-through parts of your PNG stay see-through. Spray classic writes 256x256 BGRA8888 for older Source games. If the VTF is larger than 512 KB, the tool warns you before you download it.

For map and model textures, the Map texture and Model texture presets resize the image to power-of-two sides, build every mipmap and pick DXT1 or DXT5 from the transparency of your PNG. Leave "Also make a .vmt material file" ticked and the PNG to VMT step is done at the same time.

Starting from a photo? The JPG to VTF converter uses the same tool. To check a VTF you already have, or to turn one back into an image, use the VTF to PNG converter. Sprays and textures inside a Garry's Mod addon can be unpacked first with the GMA extractor.

How to convert PNG to VTF

  1. 1

    Add your image

    Drop a PNG, JPG, WebP, GIF or BMP on the box, or click it to pick one. It is read on your device and never sent to a server.

  2. 2

    Pick a preset or your own settings

    Choose map texture, model texture or a spray preset, or set the format, size, mipmaps and flags yourself. The preview shows the VTF exactly as it was written.

  3. 3

    Download VTF and VMT

    Download the .vtf, the .vmt, or both in a ZIP that already has the materials/ folder layout. Copy them into your game or addon folder.

VTF formats you can write

FormatSizeTypical useAlpha
DXT10.5 byte per pixelOpaque world and model textures (smallest file)No
DXT51 byte per pixelTextures and sprays with smooth transparencyYes
BGRA88884 bytes per pixelLossless sprays, HUD and pixel artYes
RGBA88884 bytes per pixelLossless, same as BGRA8888 with another channel orderYes
BGR8883 bytes per pixelLossless opaque texturesNo
I81 byte per pixelGreyscale masks and detail mapsNo

The VTF to PNG tab also opens DXT3, RGB565, IA88, A8, ABGR8888, ARGB8888, BGRX8888, BGRA4444, BGRA5551, UV88 and RGBA16161616F files.

More free texture tools

Frequently Asked Questions

VTF (Valve Texture Format) is the texture format of the Source engine. It holds the image, usually compressed as DXT1 or DXT5, with its mipmaps, a small thumbnail and flags that tell the game how to draw it. A VMT text file next to it names the shader and points to the VTF.
Pick the "Spray HD" preset (512x512 DXT5) for newer games such as Team Fortress 2 and Garry's Mod, or "Spray classic" (256x256 BGRA8888) for older Source games. Download the ZIP and copy its materials/vgui/logos files into your game folder, then choose the spray in the game's multiplayer options. Keep the VTF under 512 KB; the tool warns you if it is larger.
DXT1 for opaque textures, as it gives the smallest files. DXT5 when the image has transparency. BGRA8888 when you need every pixel exact, for example small pixel-art sprays, at 4 bytes per pixel. "Auto" picks DXT5 if your image has transparency and DXT1 if it does not.
VTF sides must be powers of two: 16, 32, 64, 128, 256, 512, 1024, 2048 or 4096 pixels. "Auto" uses the nearest power of two for each side. If you pick a size with a different shape, choose stretch, fit (pads with transparency) or crop. Width and height do not have to match.
Yes, the game loads materials through VMT files, and the VMT names the VTF by its path inside the materials folder. Use LightmappedGeneric for brush and map textures, VertexLitGeneric for models and UnlitGeneric for sprays. Set the material path in the tool and the VMT and file names follow it.
Clamp S and Clamp T stop the texture repeating at its edges, which sprays and decals need. No LOD keeps full size whatever the texture quality setting is. Trilinear and Anisotropic give smoother filtering, Point sample keeps pixels sharp, and Normal map marks bump maps. The tool sets the alpha and no-mipmap flags for you.
Yes. Open the VTF to PNG tab and drop a .vtf from version 7.0 to 7.5. It shows the format, size, flags and mipmaps, lets you pick a frame, mip level or cubemap face, and saves a PNG. Animated VTFs can be saved as a ZIP with one PNG per frame.
Yes, it works both ways. The Image to VTF tab turns PNG, JPG, WebP, GIF or BMP images into a VTF (and a VMT if you want one), and the VTF to PNG tab turns a .vtf file back into a PNG. Both run in your browser.
No. The converter, the DXT compressor and the VTF reader all run in your browser, so your images stay on your device. It is free and needs no signup.
Drop the PNG, leave "Also make a .vmt material file" ticked, pick the VMT shader and transparency, and set the material path. Then click "VTF + VMT as ZIP" to get both files in the materials/ folder layout. A VMT always points at a VTF, so the tool writes the two together.
This page reads the first frame of a GIF, so you get a still spray. For an animated spray, use the GIF to VTF converter, which writes the frames of the GIF into one animated VTF.
Yes. Both spray presets use a format with alpha (DXT5 or BGRA8888) and write $translucent into the VMT, so clear pixels in your PNG stay clear in the game. A JPG has no transparency, so a JPG spray is always a solid rectangle.

Valve, Source, Garry's Mod, Team Fortress 2 and Counter-Strike are trademarks of Valve Corporation, named only to describe file compatibility; The3DAI is not affiliated with or endorsed by Valve.