Counter-Strike 2

Crosshair generator

Move a slider and the share code, the console commands and the preview change together. Paste a code — a pro's, a friend's — and the sliders jump to it.

≈ 1920×1080 · the head is 14 px wide
Share code — paste one here to decode it

Console commands
Start from
Style
Colour

How it works

A share code packs every crosshair setting into eighteen bytes, guarded by a checksum, and writes them in a 57-letter alphabet that skips look-alikes such as 0/O and 1/l. This page uses the open-source csgo-sharecode codec rather than its own, because a generator that emits a subtly wrong code is worse than none.

The scenes behind the preview are drawn for this page — no map screenshots — and each is a test: a sunlit wall, a dark corner, foliage the colour of the default crosshair. The bot's head is 14 pixels wide at 1080p, about what you aim at across a bombsite, and it scales with the zoom so the crosshair and the target always stay in proportion.

The preview sizes the lines the way the engine does: lengths are multiplied by screen height ÷ 480 (2.25 at 1080p), thickness is rounded but never below one pixel — which is why 0.5 and 0 look the same — and the gap is counted from a built-in offset of four units, so −3 is a small gap, not an overlap.

Questions people ask

How do I use a CS2 crosshair code?

In the game open Settings → Game → Crosshair → Share or Import, paste the code and press Import. Or paste the console commands from this page into the developer console.

Do CS:GO crosshair codes work in CS2?

Yes. The share-code format is unchanged, which is why the codes still begin with "CSGO-".

Is the preview exact?

It follows the engine's sizing rules — lengths scale with screen height ÷ 480 and thickness never drops below one pixel — so it matches a 1920×1080 game to within a pixel. Dynamic styles are drawn at rest.

Sources and method

  1. csgo-sharecode — akiver (MIT licence). The share-code codec this page uses, by the author of CS Demo Manager.
  2. List of Counter-Strike 2 console commands and variables — Valve Developer Community.

Checked 21 September 2026. The maths behind each tool is covered by automated tests against known values; if the game changes a rule, tell us and the test changes first.