- Home
- Crosshair commands
CS2 crosshair commands and settings
To leave more room around the target, change the gap. To shorten the arms, change the length. You can test either setting with a single console command, or paste a pro’s whole config in one go. Since 22 September 2026, CS2 measures crosshair sizes in pixels at a reference resolution.
Enable the developer console and paste a line
Open Settings → Game in CS2 and set Enable Developer Console to Yes. Press ~, paste a command line, then press Enter. Semicolons separate the commands, so you can paste the whole line at once.
To try one setting first, paste cl_crosshair_length 2 from donk’s config. It sets the arms to 2 px at the reference height and leaves your color and gap alone.
CS2 crosshair settings: commands and ranges
| Command | What it changes | Values |
|---|---|---|
cl_crosshairstyle | Crosshair style: static cross, dynamic cross, dot, circle and other shapes | 0–9 |
cl_crosshair_length | Length of each arm (crosshair size) | 0–255 px |
cl_crosshair_thickness | Line width; also sets dot size | 0–32 px |
cl_crosshair_gap | Distance from the center to the lines; accepts negative values | px |
cl_crosshairdot | Show the center dot | 0 / 1 |
cl_crosshair_t | T shape: remove the top arm | 0 / 1 |
cl_crosshair_drawoutline | Outline: off, full or half | 0 / 1 / 2 |
cl_crosshaircolor_r/g/b | Red, green and blue channels (three separate commands) | 0–255 |
cl_crosshaircolor_a | Crosshair opacity | 0–255 |
cl_crosshair_recoil | Make the crosshair follow recoil | 0 / 1 |
cl_crosshair_screen_height | Reference screen height for the crosshair (pixel basis for size; CS2 rescales if resolution changes) | e.g. 960 or 1080 |
For copyable RGB commands, pick a color rather than typing the shorthand r/g/b. For a dot crosshair, enable the center dot and set arm length to zero.
Copy donk’s full crosshair command
This line from donk’s player page sets a green static cross at a reference height of 960: 2 px arms, 2 px thickness and a 1 px gap. Unlike the single length command, it also replaces the color, style and outline settings.
cl_crosshair_screen_height 960; cl_crosshairstyle 4; cl_crosshair_length 2; cl_crosshair_thickness 2; cl_crosshair_gap 1; cl_crosshairdot 0; cl_crosshair_t 0; cl_crosshair_recoil 0; cl_crosshair_drawoutline 0; cl_crosshaircolor_r 50; cl_crosshaircolor_g 250; cl_crosshaircolor_b 50; cl_crosshaircolor_a 255
How to convert a CS2 crosshair code to commands
- Check the prefix. The format introduced on 30 September 2026 starts with CS followed by 44 characters. Paste that code into the box at the top of the crosshair generator.
- For a CSGO- code, start in the migrator. Choose the resolution you used with the old code so the tool can convert its dimensions to pixels.
- Choose Copy command. Both tools show a Console command output. Paste that line into the console, or use the separate share code output for the in-game Share or Import box.
Save your crosshair config in autoexec.cfg
Use Download autoexec in the generator or migrator. Put autoexec.cfg in Steam\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg\. If you already use an autoexec, copy just the crosshair commands into your existing file so you keep your other settings.
In your Steam library, open CS2’s Properties and add +exec autoexec to Launch Options. The game will read your crosshair settings from that file when it starts.
Crosshair command questions
What’s the CS2 crosshair size command?
Use cl_crosshair_length for the length of each arm and cl_crosshair_thickness for the width of a line or the size of a dot. Both are in pixels at the crosshair’s reference resolution.
Which command changes the crosshair gap?
cl_crosshair_gap sets the distance between the lines and the center, in pixels. It accepts negative values. To change how much space you see in the middle, adjust the gap before changing line length.
Can I paste a CS2 crosshair code into the console?
Use Share or Import in Crosshair settings for a share code. If you need a console line, load the code in the generator and choose Copy command. For an old CSGO- code, use the migrator at the original resolution first.
How do I keep the same crosshair config when CS2 starts?
Save the crosshair commands in autoexec.cfg in the game’s cfg folder. Add +exec autoexec to CS2’s Steam launch options so the file runs when you start the game.
Like CrosshairGen?
Buy me a coffee ☕
CrosshairGen is free, has no ads and collects nothing. Every time CS2 changes the crosshair, it gets updated. A coffee is what keeps that going.
One-off tip via Ko-fi.