What is a VTF spray converter?

A VTF spray converter turns ordinary image files – JPG, PNG, animated GIFs or videos – into the VTF format (Valve Texture Format) used by Valve’s Source engine. Games such as Counter-Strike: Source, Team Fortress 2 or Half-Life 2 use this format to display custom sprays in game. Our converter runs entirely in your browser – nothing is uploaded to a server.

Which file formats are supported?

The converter accepts the most common image formats:

For animated content you can freely choose the frame rate (5, 10, 15, 24 or 30 fps) as well as the start and end time. The result is provided as a DXT-compressed VTF together with a matching VMT material script.

Installing a spray in Counter-Strike: Source

After the conversion you get two files: the VTF file (the actual texture) and the VMT file (the material script). Both files need to be copied into the right folder of your Steam installation. For Counter-Strike: Source, for example, this is:

steamapps/common/Counter-Strike Source/cstrike/materials/vgui/logos/

Then start the game, go to Options → Multiplayer and select your new spray. If either file is missing, the spray will not display correctly in game.

Which content is not allowed as a spray?

Technically almost any image can be converted into a VTF spray – but you should pay close attention to the content when using it on public servers. Many servers have clear rules about which sprays are allowed, and violations can lead to a temporary or permanent ban.

As a general rule, you should not use the following as a spray:

On the 4played servers our community rules apply, which ensure respectful behaviour among all players. We reserve the right to report inappropriate sprays and take appropriate action.

Frequently asked questions about the VTF spray converter

Do I need to install anything?

No. The converter runs entirely in your browser and needs no additional software. JavaScript just has to be enabled.

Which engine versions are supported?

The converter supports both the older Source engine version (e.g. CS:S) and newer versions (CS:GO). You can pick the target game directly in the tool.

Why do I need a VMT file?

The VMT file is a text script that tells the Source engine how to render the texture. Without a VMT, the game does not recognise the VTF texture as a valid spray.

Is there a maximum file size?

Because processing happens locally in your browser, performance depends on your device. For best results we recommend images under 2 MB and videos shorter than 30 seconds. The finished VTF files must not exceed 256 KB (CS:S) or 512 KB (CS:GO), otherwise the spray cannot be displayed in game.

How can I reduce the file size of my spray?

There are several ways to shrink the VTF file: choose a smaller output resolution – sprays in Source engine games are displayed at 256×256 pixels at most anyway, so higher resolutions bring no visible benefit. For animated sprays it also helps to lower the frame rate or choose a shorter time range, since every frame is stored individually in the file. We also recommend the DXT1 compression format for images with 1-bit transparency, as it produces the smallest file. DXT5 should only be used for images with a smooth transparent background (PNG with alpha channel). As a rule of thumb: the smaller the file, the better.

Stefan

Editorial team