Build, copy, import
- Choose a style. Static Cross (4) is the common choice for a crosshair that never moves; the dynamic styles open up while you move and shoot.
- Set length, thickness and gap in whole pixels. A negative gap pulls the lines through the centre.
- Pick a colour that stands out on every map, and an outline if you need contrast on bright walls. Try the three backgrounds.
- Copy the share code and import it in the game, or copy the console commands and paste them into the console or your autoexec.cfg.
The last crosshair you built stays in this browser. Nothing is uploaded, and the code is made on your device.
The new CS2 crosshair codes
Late in September 2026 Valve rebuilt the CS2 crosshair in whole pixels. Settings that used to be fractions (cl_crosshairsize 2.5, cl_crosshairgap -2) are now pixel values with new command names such as cl_crosshair_length, cl_crosshair_thickness and cl_crosshair_gap, and the crosshair now has its own outline colour. The share code changed with it: new codes start with CS and run 44 characters without dashes, and the game no longer imports the old CSGO-xxxxx-xxxxx codes.
This generator writes the new format and reads both. Old codes from the CS:GO era are converted to pixels with the old rule that one unit was screen height divided by 480, which gets close but is not guaranteed to match what CS2 itself does, so the page says so when you load one. Codes from the short-lived first pixel versions (23 and 24 September) convert exactly.
Under the hood a share code is a 32 byte record turned into letters and digits, with a checksum in the first byte so a typo is caught. The encoding follows the open-source csgo-sharecode project, which documents the byte layout of every version.
Picking a crosshair that helps
Small and static is the usual starting point: a length of 4 to 8 pixels, thickness 1 to 2, a gap close to 0, no dynamic spread. A centre dot helps some players with tapping at range and distracts others. Bright green, cyan and yellow stay visible on most maps; check against the light background, because white and pale colours disappear on sunlit walls. Once it feels right, train your crosshair placement in the aim trainer at your CS2 sensitivity.
Questions
How do I import a crosshair share code in CS2?
Copy the code that starts with CS from this page. In CS2 open Settings, Game, Crosshair, and choose the share or import option, then paste the code. You can also paste the console commands into the developer console instead.
Why does my old CSGO- crosshair code not work any more?
CS2 changed its crosshair system in late September 2026: sizes became whole pixels and the share code moved to a new, longer format that starts with CS and has no dashes. The game no longer imports the old CSGO-xxxxx codes. Paste an old code here and the generator converts it to the new format, as an approximation you should check in game.
What do the console commands do?
Each line sets one crosshair setting, for example cl_crosshair_length for the line length and cl_crosshair_gap for the gap. Paste all of them into the console (enable it under Game settings) or save them in an autoexec.cfg file to load them every time.
What is the screen height setting?
Since the update, crosshair sizes are whole pixels authored at a screen height. When you play at a different resolution, CS2 scales the crosshair to keep the same look. Leave it at your own vertical resolution, for example 1080 for 1920x1080.
Does the preview look exactly like the game?
Close for the cross and dot styles. The preview draws the crosshair at rest, in pixels at your screen height, without the dynamic spread when you move or shoot. Circle styles are drawn simply, and the quad and square styles are shown as a cross, so check those in game.
Can I decode a pro player's crosshair code?
Yes. Paste any CS2 code (CS...) or older CSGO- code into the box and press Load. The builder shows the crosshair, the console commands and the new share code for it.
Is this an official Valve tool?
No. It is an independent tool that reads and writes the share code format documented by open-source projects. It does not connect to Steam or your account.
More tests
Valorant crosshair generatorBuild a crosshair, copy the profile code, or preview a pasted one
Sens converterConvert mouse sensitivity between games at the same cm/360
Aim trainerGridshot, flick, tracking and microshot at your real game sens
cm/360 calculatorHow far your mouse moves for a full turn, and the sens for a target
Mouse DPI testMeasure your real DPI with a ruler or a bank card
Polling rate testSee the report rate your browser receives (Hz)