.VTF

VTF File

Valve Texture Format
Ask a question
QUICK ANSWER

A VTF file is a Valve Texture Format texture used by Source engine games such as Half-Life 2, Team Fortress 2, Counter-Strike: Source, and Portal. Open it with VTFEdit (free, Windows) or VTFLib on Linux and macOS. VTF files contain no executable code and are safe to open from trusted mod sources.

Developer: Valve Corporation Category: Game Files MIME: application/octet-stream
OPENS ON Windows macOS Linux
Related: .OBB · .PAK · .ROFL · .PACKAGE

On this page

19k+ extensions indexed
Last reviewed Sep 1, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the VTF file format?

A .vtf file is a Valve Texture Format file - the proprietary binary texture container used by Valve's Source engine, first introduced with Half-Life 2 in November 2004. VTF files store compressed or uncompressed GPU-ready texture data together with a pre-built mip-map pyramid and a small DXT1-compressed thumbnail used for engine previews.

The file begins with the 4-byte magic signature VTF\0 (hex 56 54 46 00) followed by a major/minor version pair (major is always 7; minor ranges from 0 to 6). The header encodes image dimensions, frame count, depth (for volume textures), cube-map face count, a reflectivity colour vector, and a pixel format enum. Version 7.3 added an extensible resource data section for arbitrary engine-defined metadata chunks.

Supported pixel formats include DXT1 (4 bpp), DXT5 (8 bpp), BGR888 (24 bpp), BGRA8888 (32 bpp), and RGBA16161616F (64 bpp HDR). Image dimensions must be powers of two, up to 4096×4096 in typical usage.

.vtf textures are always paired with a .vmt (Valve Material Type) file that defines shader parameters, surface type, and blend modes, referencing the .vtf by name. VTFEdit is the standard community tool for creating and editing .vtf files outside of Valve's SDK.

In Source 2, the compiled texture equivalent is .vtex_c, produced by the VTex pipeline rather than VTFEdit.

Security & safety

RISK: LOW

VTF is a texture data file with no executable code. Maliciously crafted VTF files could theoretically trigger parser bugs in VTFLib/VTFEdit (buffer overflows in dimension or format fields), but this is a theoretical concern. In practice, only open VTF files from trusted game or mod sources.

Format details

in a nutshell
FULL NAMEValve Texture Formataka VTF texture, Source engine texture
DEVELOPERValve Corporationsince 2004 (Half-Life 2 and Source engine launch)
CATEGORYGame Files
MIME TYPEapplication/octet-stream
TYPEProprietary game texture container (binary)
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
56544600
ASCII
VTF·
4-byte ASCII signature 'VTF' followed by null byte. Version DWORD pair (major.minor) at offset 4.

Programs that open VTF files

Windows3 apps
Half-Life 2 Paid VTF files are loaded internally by the Source engine - not opened directly by the user. Use Source SDK/HLMV for preview.
VTFEdit Open-source File → Open → select .vtf. View texture, inspect mip maps, export to PNG/TGA/BMP, or create new VTF from image.
GIMP (with VTF plugin) Open-source Install VTF plugin for GIMP; then File → Open → select .vtf to edit texture.
macOS1 app
VTFLib (CLI) Open-source Command-line library; use vtfcmd or custom scripts to convert VTF to PNG/TGA.
Linux1 app
VTFLib (CLI) Open-source vtfcmd -file input.vtf -output output.png -exportformat png

Technical details

deep spec
Magic bytes56 54 46 00 ("VTF\0") at offset 0; major version (always 7) and minor version (0-6) at offset 4 as two DWORDs
Byte orderLittle-endian
Pixel formatsDXT1 (4 bpp), DXT3, DXT5 (8 bpp), BGR888 (24 bpp), BGRA8888 (32 bpp), RGBA16161616F (64 bpp HDR); selected by format enum in header
Mip-map pyramidFull mip chain stored from smallest to largest mip level; mip count specified in header; used for LOD rendering
ThumbnailSmall DXT1-compressed low-resolution preview stored in header area; used by the engine for quick asset identification
Texture types2D textures, cube maps (6 faces), volume/3D textures, animated sprites (multi-frame), normal maps
Dimension constraintsPower-of-two required (pre-v7.5); typical maximum 4096x4096; some Source versions support up to 16384x16384
Resource sectionExtensible resource data chunks added in v7.3, allowing arbitrary engine-defined metadata; used for particle sheet data etc.
Typical size4 KB - 32 MB depending on resolution, mip levels, and pixel format
Paired formatAlways used with a .vmt (Valve Material Type) file defining shader, blend mode, and surface type - the .vtf holds pixel data only
CompressionNo file-level compression; GPU texture compression (DXT1/DXT5/BCn) is baked into the stored pixel data
Source 2 equivalent.vtex_c (compiled by VTex pipeline); VTF remains current for Source engine titles (Team Fortress 2, CS:GO, etc.)
Released2004 (Half-Life 2 and Source engine launch)
Latest versionVTF 7.5 (Source engine); VTF 7.6 (Source 2 / Portal 2 on Linux)
Specificationdeveloper.valvesoftware.com

VTF conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with VTF files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about VTF files.

Frequently asked questions

How do I open a VTF file without a game installed?
Use VTFEdit (free, Windows) - it opens VTF files independently of any game. Download from nemstools.github.io.
How do I convert VTF to PNG or TGA?
In VTFEdit: File → Export → choose PNG or TGA. Or use VTFLib command line: vtfcmd -file input.vtf -output out.png -exportformat png
How do I create a VTF file from a PNG image?
In VTFEdit: File → Import → select your PNG, configure DXT format and mip settings → File → Save As .vtf
What is the difference between VTF and VMT?
VTF stores the actual texture pixels. VMT (Valve Material Type) is a text file that references a VTF and defines rendering properties (shader, UV scale, transparency, etc.). Both are needed for a complete material.
Do Source 2 games (CS2, Dota 2) use VTF?
Source 2 compiles textures into .vtex_c files in VPK archives - they are derived from VTF but not the same format. VTF remains the format for original Source engine games.

References

1Valve Developer Community - VTF (Valve Texture Format)developer.valvesoftware.com
2VTFLib / VTFEdit - Nem's Toolsnemstools.github.io

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.CRDOWNLOADChrome Partial Download File
4.PARTPartial Download File
5.MDMarkdown Document
6.RPMSGRestricted Permission Message
7.NOMEDIAAndroid No-Media Marker File
8.PRO6XProPresenter 6 Bundle File
9.PRDXSoftMaker Presentations Document
10.EXEWindows Executable (Portable Executable)

Related extensions

.OBBAndroid Opaque Binary Blob (APK Expansion File)
.PAKGame Resource Package (PAK)
.ROFLLeague of Legends Replay
.PACKAGEThe Sims / Maxis DBPF Package (game content & mods) - dominant meaning
.XSBXACT Sound Bank
.SAVSaved Game File

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z