CS2 Crosshair Generator
Set up your crosshair and see it right away on light and dark backgrounds. Then copy the share code into the game or the commands into the console. You can also load an existing code.
Preview
Cross, dot and T style are drawn as in the game. Circle, square and quad styles are simplified.
Share code
In CS2, open the crosshair section of the game settings, choose import and paste the code.
Console commands
Open the console (enable the developer console in the game settings), paste the lines and press Enter. To keep them: put them in autoexec.cfg.
What the values mean
Since the CS2 update of 30 September 2026 there are new crosshair commands: length (cl_crosshair_length), gap (cl_crosshair_gap) and thickness (cl_crosshair_thickness) count in pixels relative to the screen height (cl_crosshair_screen_height). The gap can be negative, then the lines overlap in the centre. Dynamic styles spread while moving and shooting; the preview shows the resting state. Share codes in the new format start with “CS” and are no longer split by dashes.
FAQ
How do I get the crosshair into the game?
The share code is the easiest way: in CS2, open the crosshair section of the game settings, choose import and paste the code. Alternatively paste the console commands or put them in autoexec.cfg.
Do old “CSGO-” codes still work?
Since 30 September 2026 CS2 only creates codes in the new format starting with “CS”. The generator always outputs the new format.
Why does my crosshair look a bit different in game?
The game scales the values from the set screen height to your real resolution. Set the screen height to your resolution and the preview at 1× zoom matches the game.
Share code layout follows the open-source library csgo-sharecode (MIT licence), checked against codes from CS2.
Continue on your server
Open your server dashboard if needed. Confirm changes to settings and worlds there yourself.