Introduction
KeyValues is Valve’s format for settings and game data, used by Steam and by games on the
Source engine. Its files appear with extensions such as .vdf,
.acf and .res.
Structure
The text form is made of keys and values, usually in double quotes, where a value is either
a string or a nested block in braces. A key may be repeated. Some files use conditions in
square brackets and #include or #base lines that load other files.
There is also a binary form with the same data model. A later variant, KeyValues3, is used
by the Source 2 engine.
Not described
This page is a first outline. The format is not yet described in full here.
Known, not yet covered
- Reference: the full text grammar, the binary forms and KeyValues3.
- Viewer: the site has no viewer for this format.
Also used for
- Adobe Photoshop custom filter kernel – Weights, scale and offset of a Photoshop custom filter.
Links
Software
- Steam – Valve’s game platform, which keeps data in KeyValues files
Developers
- ValveKeyValue – reads and writes text and binary KeyValues (C#)
- vdf – reads and writes text and binary VDF (Python)
- keyvalues-parser – parser for text VDF (Rust)
Reference
- ValveKeyValue notes – the variants and how they differ