VTF converter: VTF to JPG and PNG

Convert VTF images to JPG; choose the transparency matte color.

FluffyShield Protected workspace
From
To

Choosing a format opens another page, set to that conversion. Images you've added here come along. Finished files don't, so download them first.

FluffyShield

Isolated workspace: other page scripts can't read your files. How FluffyShield works

Free · No upload · No sign-up · No usage quotas

What's a .vtf file, and how do you see what's in it?

It's a texture from one of Valve's Source-engine games, so photo apps don't know what to do with it. FluffyBench pulls out the main picture and saves it as a PNG or JPG. Choose PNG if the texture has see-through parts.

How it works
  1. Add your VTF texture
  2. Choose JPG or PNG
  3. Convert
  4. Download your picture

What it does

The biggest copy of frame one

Reads the main picture out of the stack of sizes a VTF stores.

Plain-pixel VTF: 0 of 65,536 pixels changed

Transparency kept in PNG

Choose PNG for decals and sprites with a clear background.

Stays on your device

The texture is read and converted in your browser.

Limits Cubemaps and environment maps are refused.

Where do VTF files come from?

VTF is the texture format behind Valve's Source-engine games. The brick walls, floors and decals in those games are VTF files, and your image viewer has never heard of the format. Nothing is wrong with the file. It just wasn't meant for photo software.

Inside, a VTF is more like a stack of the same picture at shrinking sizes than a single image, and the game picks the one that fits the distance. The pixels are often squeezed with a graphics-card compression called DXT, which trades a little detail for a smaller file. FluffyBench pulls out the biggest copy of the first frame, the one picture you actually want.

Need a DirectX DDS texture instead?

Should you save a VTF as PNG or JPG?

It depends on whether the texture has see-through areas. Here's our transparent Earth texture as a VTF and as the pictures FluffyBench makes from it.

The PNG came out 66% bigger than the VTF; the JPG was smallest

VTF file 65.6 KB
PNG, keeps transparency 109.0 KB
WebP 35.6 KB
JPG, no transparency 29.7 KB

File size, KB

The VTF file and the pictures made from it; sizes are rounded to 0.1 KB. How we measured

Here are the PNG and the JPG FluffyBench made from that texture, side by side. The checkerboard drawn behind the PNG marks the see-through areas.

The Earth texture saved as a PNG: the planet with a checkerboard showing in the corners around it.

PNG

The same Earth texture saved as a JPG: the planet with solid white corners around it.

JPG

Both pictures are the files FluffyBench saved; the JPG is shown as decoded pixels. The PNG keeps the texture's transparency, so the corners stay empty. A JPG can't store transparency, so FluffyBench fills the same corners with the color set under Transparent areas. It starts on white. · Photo: NASA, Public domain, NASA-created image, via Wikimedia Commons.

Pick PNG for decals, sprites and anything else with a clear background, and JPG when the texture is solid and a small file matters more. Don't be surprised that the PNG outweighs the VTF: DXT is shorthand for a graphics card, while a PNG describes every pixel again.

Neither is a perfect copy of the artwork. The DXT squeezing took some detail before the file reached you: our DXT1 photo came back off by about 3.3 steps out of 255 on average per color channel, and no converter can bring the lost detail back.

Need an OpenGL KTX texture instead?

Doing it in FluffyBench's VTF converter

Here's FluffyBench's VTF converter saving a see-through texture as a PNG, from adding the file to downloading the result. It all happens on your device.

  1. Add your VTF texture, then switch To from JPG to PNG if it has see-through areas; PNG keeps the transparency.

  2. In Settings, keep Size on Original to keep the texture's width and height.

  3. Close Settings with the Settings button, then press Convert to make the PNG copy.

  4. The summary compares the VTF's size with the PNG's. Download saves the PNG to your device.

    The finished PNG of the Earth texture with its sizes and the Download button outlined.
    The finished PNG of the Earth texture with its sizes and the Download button outlined.

For a whole folder, add the files together. We converted 1,000 copies of one VTF texture in a single batch, and all of them finished in 11 s.

To make a VTF instead, press the swap button between From and To and add a PNG or JPG. Generate mipmaps starts on and builds that stack of smaller sizes. Texture format starts on Auto, which gave our solid photo a 43.8 KB DXT1 file and the see-through Earth picture a DXT5 file of 87.5 KB that keeps its transparency.

Both sides of the picture must be a power of two, such as 256, 512 or 1,024 pixels. Otherwise FluffyBench stops with “VTF output requires power-of-two dimensions. Use Resize before converting.” Choose Dimensions under Size in Settings to set sides that work.

What happens to environment maps and animated VTFs?

An environment map stores six faces of a box around a scene, and one picture can't hold six, so FluffyBench stops with “VTF cubemap textures are not handled by this decoder.” A texture with several animation frames comes out as its first frame only. A file cut short in transit fails with “The VTF high-resolution image data is truncated.”

Whatever you convert, keep the original VTF for your game; the picture is a copy.

You'd rather crop than stretch a picture to a power-of-two size.

FluffyBench's Crop and adjust images

Crop to the part you want first, then set Dimensions in the VTF converter.

The picture is too big for an upload.

FluffyBench's Image Space Saver

It makes a smaller copy that fits the size limit.

Search FluffyBench