CS2 Crosshair Generator
Set the crosshair with sliders and copy the cl_ command string or the share code right away: everything is computed in your browser.
How we calculate
The command string is assembled in a fixed order from a convar table where every row carries its own source and a flag telling whether the range is confirmed. The order does not depend on which fields you touched, so two identical crosshairs always produce the same string.
A share code is 18 bytes packed into 25 characters of a 57-character alphabet, plus a checksum in byte zero. We did not invent the format: it is ported from the open library akiver/csgo-sharecode (MIT licence), and the reference «code to values» pairs from its own tests live in our dataset and are verified in both directions.
The preview is drawn as our own SVG from the same numbers: convar units are turned into pixels by a constant multiplier that is printed under the picture. It is a model of the geometry, not a screenshot of the game, so antialiasing, resolution scaling and the Source 2 renderer are not reproduced here.
Sources
checked 18 August 2026
Questions and answers
Where do I paste the command string?
Into the in game console or into autoexec.cfg. These are regular cl_ commands, sv_cheats is not required, so there is no risk to the account.
Why is custom color 5 and not 4?
According to totalcsgo.com value 4 is light blue, while custom RGB is enabled by 5; the fixtures of the share code library show the same. The brief said 4, and we kept what the source confirms.
The preview looks different from the game. Is that a bug?
No. The preview shows geometry: line length, thickness, gap, outline and dot. The exact look depends on resolution, scaling and antialiasing, so we do not promise a pixel exact match.
Why are some fields greyed out?
They depend on other fields. Line spread works only with style 0 or 5, the R/G/B fields only with custom color, and outline thickness only when the outline is on. Instead of silently ignoring such values, the interface disables them.
Where do the value ranges come from?
From a dump of the CS2 client convar list and from community guides. Valve has no official page with these bounds: developer.valvesoftware.com returns 403, so every number is labelled as community.
Unofficial tool. Not affiliated with Valve.