JPG to VTF Converter

To convert a JPG to VTF, drop the .jpg or .jpeg below, pick map texture, model texture or a spray preset, and download the .vtf. A JPG has no transparency, so the Auto format picks DXT1, the smallest VTF format. The tool resizes the photo to power-of-two sides, builds the mipmaps and can write the .vmt material file. Everything runs in your browser.

Free · no signup · your files stay in your browser

Loading the tool...

JPG to VTF examples

JPG to VTF converter output: a wood plank JPG written as a DXT1 VTF with a VertexLitGeneric VMT for a model
A 1000x750 wood JPG with the Model texture preset: Auto picks DXT1, as a JPG has no alpha.
JPG to VTF result for a 1024x1024 stone tile photo, saved as a DXT1 map texture with mipmaps and a LightmappedGeneric VMT
A 1024x1024 stone tile JPG as a map texture: no resize needed, DXT1 with a full mipmap chain.
JPG to VTF in lossless BGR888 format: the wood photo as a 4 MB VTF with mipmaps
The same wood JPG in lossless BGR888: no DXT blocks, but the VTF is six times larger.

Image to VTF: turning photos into Source textures

This JPG to VTF converter is an image to VTF converter in general: it takes JPG and JPEG photos, and also PNG, WebP, GIF and BMP. A photo of a wall, a floor or a wooden crate makes a good texture. Pick Map texture for brushes (LightmappedGeneric) or Model texture for props (VertexLitGeneric), and the Auto format writes DXT1, because a JPG has no alpha channel. If the photo must stay exact, switch the format to BGR888: the file is six times larger, but no pixel is changed by compression.

The same step does JPG to VMT. Leave "Also make a .vmt material file" ticked, and the ZIP holds the .vtf and the .vmt under materials/ with the path you typed.

Replacing a texture that is already in a game? Find the original with the VPK extractor, or with the GMA extractor for a Garry's Mod addon, so you can copy its material path and check its size in the VTF to PNG tab. Then convert your photo to the same size and give it the same name.

How to convert JPG to VTF

  1. 1

    Add your JPG

    Drop a .jpg or .jpeg on the box, or click it to choose one. PNG, WebP, GIF and BMP work too. The file is read on your device.

  2. 2

    Choose how it is used

    Pick map texture (LightmappedGeneric), model texture (VertexLitGeneric) or a spray preset. Width and height snap to powers of two such as 512 or 1024; pick stretch, fit or crop if the shape changes.

  3. 3

    Download VTF and VMT

    Save the .vtf, the .vmt, or a ZIP with both in the materials/ folder layout, then 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

Yes. .jpg and .jpeg are the same image format with two spellings, and the converter accepts both.
DXT1 compresses in 4x4 pixel blocks at 0.5 byte per pixel, so it can soften fine detail. If you need the photo exact, pick BGR888 (3 bytes per pixel, lossless) in the VTF format list. Detail the JPG already lost when it was saved cannot come back.
JPG files have no alpha channel, so a JPG spray is a solid rectangle. For a see-through spray, remove the background and save the image as a PNG, then use the Spray HD or Spray classic preset. With "fit", the tool only adds transparent padding at the edges when the shape changes.
Any size works: each side is resized to a power of two from 16 to 4096 pixels. For a sharp result, start from a photo at least as large as the size you pick, for example 1024x1024 for a wall texture. Width and height can differ, for example 1024x512.
LightmappedGeneric for brushes and map surfaces, VertexLitGeneric for models and props, and UnlitGeneric for sprays or anything that should ignore lighting. The presets set it for you, and you can change it under VMT shader.
No. Reading the image, resizing, DXT compression and writing or reading the VTF all happen in your browser, so your files stay on your device. It is free and needs no signup.
Switch to the VTF to PNG tab above, drop the .vtf and save it as a PNG. Any image editor can then save that PNG as a JPG.
Yes. Keep "Also make a .vmt material file" ticked, choose the shader, and download the .vtf and .vmt together as a ZIP, or one at a time.
PNG, WebP, GIF (its first frame) and BMP work the same way as JPG. Use a PNG when the texture needs transparency: Auto then picks DXT5, or you can choose lossless BGRA8888.

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.