Choose settings and key binds, and download them as autoexec.cfg and class configs. Only what you change is written, so everything else in your game stays as it is.

All classes: what you set here goes in autoexec.cfg, which runs once, when the game starts. Pick a class to change something for that class only.

View and mouse

9 settings

How much of the map you see. 90 is the highest the game allows.

fov_desired Game default: 75 · Range: 20 to 90

The field of view your weapon is drawn with. Valve's competitive mode keeps it between 54 and 70.

viewmodel_fov Game default: 54 · Range: 0.1 to 179.9
r_drawviewmodel Game default: On
tf_use_min_viewmodels Game default: Off
cl_flipviewmodels Game default: Off
sensitivity Game default: 3 · Range: 0.0001 to 10000000

An extra factor on the mouse sensitivity while the field of view is zoomed in.

zoom_sensitivity_ratio Game default: 1
m_rawinput Game default: On

Averages the mouse movement over 2 frames.

m_filter Game default: Off

Gameplay

13 settings

Switches weapon at once, with no click to confirm.

hud_fastswitch Game default: Off

Weapons with a clip reload whenever they are not being fired.

cl_autoreload Game default: On
tf_remember_activeweapon Game default: Off
tf_remember_lastswitched Game default: Off
hud_classautokill Game default: On
tf_respawn_on_loadoutchanges Game default: On
tf_medigun_autoheal Game default: Off
hud_medicautocallers Game default: Off
hud_medicautocallersthreshold Game default: 75 · Range: 0 or more
hud_medichealtargetmarker Game default: Off
cl_autorezoom Game default: On
tf_sniper_fullcharge_bell Game default: Off
tf_simple_disguise_menu No default published by Valve

HUD and screen

12 settings

The game's advanced minimalist HUD mode.

cl_hud_minmode Game default: Off
cl_hud_playerclass_use_playermodel Game default: On
tf_hud_target_id_disable_floating_health Game default: Off
tf_colorblindassist Game default: Off
tf_scoreboard_ping_as_text Game default: Off
tf_hud_show_servertimelimit Game default: Off

Used when you spectate in tournament mode.

cl_use_tournament_specgui Game default: Off
cl_disablehtmlmotd Game default: Off
cl_showfps Game default: Off

Network details and FPS in a corner of the screen.

net_graph Game default: Off

The highest frame rate the game can reach.

fps_max No default published by Valve
con_enable No default published by Valve

Damage numbers and hit sounds

15 settings
hud_combattext Game default: On
hud_combattext_red, hud_combattext_green, hud_combattext_blue Game default: 255 0 0
Don't change
hud_combattext_batching Game default: Off
hud_combattext_batching_window Game default: 0.2 · Range: 0.1 to 2
hud_combattext_healing Game default: On
hud_combattext_doesnt_block_overhead_text Game default: On

Plays a sound every time you hurt an enemy.

tf_dingalingaling Game default: Off
tf_dingaling_volume Game default: 0.75 · Range: 0 to 1

A small hit is 10 damage or less.

tf_dingaling_pitchmindmg Game default: 100 · Range: 1 to 255

A big hit is 150 damage or more.

tf_dingaling_pitchmaxdmg Game default: 100 · Range: 1 to 255

0 plays a sound for every hit.

tf_dingalingaling_repeat_delay Game default: 0 · Range: 0 or more

Plays a sound when one of your attacks kills an enemy.

tf_dingalingaling_lasthit Game default: Off
tf_dingaling_lasthit_volume Game default: 0.75 · Range: 0 to 1
tf_dingaling_lasthit_pitchmindmg Game default: 100 · Range: 1 to 255
tf_dingaling_lasthit_pitchmaxdmg Game default: 100 · Range: 1 to 255

Crosshair

5 settings

To draw the crosshair itself, open the crosshair maker.

Turn it off if your HUD draws a crosshair of its own.

crosshair Game default: On

None gives each weapon its own crosshair. Weapon-specific crosshair files only work with None.

cl_crosshair_file Game default: None
cl_crosshair_scale Game default: 32 · Range: 0 or more
cl_crosshair_red, cl_crosshair_green, cl_crosshair_blue Game default: 200 200 200
Don't change
tf_hud_no_crosshair_on_scope_zoom Game default: Off

Network

7 settings

Valve has not published the code of the first five settings, so they show no default. Their notes are from mastercomfig.

cl_cmdrate No default published by Valve
cl_updaterate No default published by Valve

mastercomfig uses 1 for the lowest delay, 2 for most players and 3 for an unstable connection.

cl_interp_ratio No default published by Valve

mastercomfig pairs 0.015 with a buffer of 1, 0.03 with 2 and 0.045 with 3.

cl_interp No default published by Valve

The rate used for communication with the server.

rate No default published by Valve
cl_smooth Game default: On
cl_smoothtime Game default: 0.1 · Range: 0.01 to 2

Key binds

A bind gives a key one command. A key you do not list keeps the command it has now.

Your own lines

Added to the end of autoexec.cfg as you type them: aliases, scripts and any command this page does not have.

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

  1. Unzip the download.
  2. In Steam, right-click Team Fortress 2, then Manage, then Browse local files. Open tf, then cfg. It's next to the custom folder. The install guide shows where that is on Windows, Linux, Steam Deck and Mac.
  3. Copy the .cfg files from the tf2hud-config folder into tf/cfg.
  4. 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.