Make a TF2 config
This TF2 config maker runs in your browser, nothing to install. Pick from 61 game settings and 59 bind commands, add your own lines, and download it all as autoexec.cfg and class configs. It only writes what you change. Anything you leave alone gets no line, so it keeps whatever value it has in your game.
TF2 settings and key binds in the config
The 61 settings are split into 6 groups. View and mouse has the FOV commands: fov_desired sets the field of view (75 by default, 90 at most) and viewmodel_fov sets the one your weapon is drawn with; the TF2 FOV guide has the limits for both. Mouse sensitivity and raw input are there too. Network has the interp settings, cl_interp and cl_interp_ratio, with cl_cmdrate and cl_updaterate. The rest are gameplay, HUD, damage numbers and hit sounds, and crosshair. For binds, pick a key and one of the 59 commands, for all classes or just one.
Set a TF2 kill bind
A kill bind is a key that kills yourself. TF2 has two commands for it: kill, and explode, which blows you up. To set one here, click Add a bind, pick a key and choose Kill yourself or Kill yourself with an explosion. That adds one line, like bind "k" "kill". The key does nothing for 5 seconds after you use it. The console commands guide lists the other cases where it won't work.
Other binds work the same way. Engineer has four build commands, like build 2 0 for a Sentry Gun, and four destroy commands, like destroy 2 0. There are seven voice commands, including voicemenu 0 0 for "Medic!", plus the three voice menus. Chat, team chat and the four loadout presets are in there too. A key bound for one class is unbound for the other eight, so also bind it for all classes if you want it to do something there.
Show your FPS in TF2
The HUD and screen group has the FPS counter: cl_showfps 1 shows the frame rate and cl_showfps 2 a smoothed one. net_graph shows network info and FPS in a corner of the screen. The FPS limit, fps_max, and the developer console, con_enable, are in the same group.
What autoexec.cfg and the class configs do
A TF2 config file, or cfg, is a text file of console commands in the tf/cfg folder. autoexec.cfg runs once when the game starts. A class config runs every time you switch to that class. The nine files are scout.cfg, soldier.cfg, pyro.cfg, demoman.cfg, heavyweapons.cfg, engineer.cfg, medic.cfg, sniper.cfg and spy.cfg.
The game only runs the file for the class you switch to, and nothing resets it when you switch away. So a setting changed only in sniper.cfg would stick for every class you play after that. That's why, when one class changes a setting or key, this page writes all nine class files and each one sets it again, either to that class's value or back to the all-class value.
TF2 saves most of these settings on its own once they're set. A few don't get saved, like r_drawviewmodel, cl_showfps and net_graph, so you need a config to keep them.
For your own lines, like a null movement script or a chat bind, read the TF2 scripts guide.
Install your TF2 config
- Unzip the download.
- In Steam, right-click Team Fortress 2, then Manage, then Browse local files. Open
tf, thencfg. It's next to thecustomfolder. The install guide shows where that is on Windows, Linux, Steam Deck and Mac. - Copy the
.cfgfiles from thetf2hud-configfolder intotf/cfg. - Start TF2.
If you already have an autoexec.cfg or class config in tf/cfg, don't replace it. Open it in a text editor and paste the new lines at the end, or copy them from the preview. To remove the config, delete the files you copied. Binds and saved settings keep their last value, so change those back in the game options.
With mastercomfig
mastercomfig is a popular TF2 config with its own presets and modules for graphics and performance. It reads your files from an overrides folder you make in tf/cfg, so tick I use mastercomfig above the download and the install steps will point there. This page doesn't touch graphics settings. Use mastercomfig's presets for those.
Where the settings come from
Every setting name, default and range here comes from Valve's published TF2 source code. A few, like cl_interp and fps_max, are in a part of the game Valve hasn't released, so they have no default here and their notes come from mastercomfig. Key names match the cfg.tf bind generator.
HUD and crosshair
A config is just settings and binds. To change how your screen looks, make a HUD in the TF2 HUD editor or pick one of the TF2 HUDs. For your crosshair, draw one in the TF2 crosshair maker or read the crosshair guide. To spray your own picture on walls, use the TF2 spray maker.