Skip to main content

CS2 Crosshair Code Decoder

Decode a CS2 crosshair share code into the cl_crosshair console commands of the current game. Reads the new CS... format and old CSGO- codes.

Reviewed by

Runs 100% in your browser - your data never leaves your device

Console commands
Paste a share code above to see the cl_crosshair* commands.
Rate this tool

Update, 13 November 2026. The decoder now reads the new CS share code that Valve introduced on 30 September 2026, and prints the cl_crosshair_gap, cl_crosshair_length and cl_crosshair_thickness variables of the current game, in pixels, instead of the pre-September ones that no longer exist. Old CSGO-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx codes are still decoded and are converted where a rule exists. What changed, and what to do instead.

How to Use the Crosshair Code Decoder

  1. Copy a share code - from a pro settings site, a teammate, or the Crosshair/Scopes tab in the CS2 settings.
  2. Paste it into the input. Decoding happens instantly, and a code whose checksum does not match is flagged rather than decoded. The checksum is one byte, so it catches almost every typo but not quite all of them - copy and paste rather than retyping.
  3. Read the console lines - style, length, thickness, gap, colour, outline, centre dot, T-style, follow recoil and the dynamic-style settings, named the way the current game names them. The line above the output says which format the code is in and which screen height the pixel sizes were set at.
  4. Copy the console lines to paste them into the console or an autoexec. For a current code that is the whole crosshair; for an old code the notice under the output lists what could not be converted, and you set those in the Crosshair/Scopes tab.

What the Decoder Actually Does

A current share code is CS followed by 44 characters, a base-57 number written with a custom dictionary that drops five visually ambiguous characters (0, 1, I, l and g). It decodes to 32 bytes: a checksum, a version, the screen height the pixel sizes were set at, the style and flags, the crosshair colour and outline colour as RGBA, thickness, gap and length in pixels, and the dynamic-style settings. Valve has not published this layout. The decoder uses the layout from two open-source implementations that agree with each other, one ported from the game client of 8 October 2026, and its output matches the console variables the game wrote for 30 exported crosshairs, all of them set at 1080p.

An old CSGO- code is 18 bytes with signed fixed-point sizes. The decoder reads it as before, then converts it. Valve published no formula for old values to pixels, and the only measured rule, taken at 1080p and 960p, covers the Classic Static style. For that style the tool prints length, thickness and gap for a 1080p screen. For every other style it prints the settings that carry over unchanged and says which it left out. Everything runs in your browser - the code never leaves the page.

A match share code looks identical and is not the same thing: same prefix, same alphabet, same 18 bytes, but no checksum and three match IDs where the crosshair settings would be. If a code from the Watch tab is rejected here, that is why. The match share code decoder reads those.

Why Decode Instead of Just Importing?

  • See the exact values. Import takes the crosshair as-is; decoding shows you the pixel gap, length, thickness and alpha behind it, so you can compare it with your own or put it in an autoexec.
  • Check an old crosshair. Decoding an old code shows what the code stored, and the conversion shows what is known about carrying it into the pixel-based settings.
  • Understand a pro's setup. Seeing that a crosshair is a static cross, 1 px thick with a gap of 3 teaches you more than a screenshot does.

Frequently Asked Questions

How do I use a CS2 crosshair share code?

Paste the code into this tool. A current code (CS followed by 44 characters, no dashes) is decoded into the cl_crosshair* commands the game itself writes, with sizes in pixels. An old CSGO-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx code is converted to the current variables where a published or measured rule exists, and the tool lists what it could not convert. To use a code as it is, import it in the game's Crosshair/Scopes settings instead.

What changed in the crosshair share code?

Valve's 30 September 2026 update changed the format of the share code, and the 22 and 23 September updates moved crosshair sizes to pixels. The new code starts with CS, is 46 characters long, has no dashes and decodes to 32 bytes instead of 18. Valve has not published the layout; this tool uses the layout from two open-source decoders, and it reproduces the console variables of 30 crosshairs exported from the game exactly.

Why does it say my code is invalid?

Each code carries a one-byte checksum. If a character is missing, swapped, or mistyped, the checksum almost always fails to match and the tool reports the code as invalid. Re-copy the whole code: a current code is CS plus 44 characters, an old one is CSGO- plus five groups of five. One byte can only do so much: a small share of single-character typos still passes the check and decodes to a different crosshair without complaint.

Is my crosshair code sent to a server?

No. Decoding is pure math that runs entirely in your browser. There is no network request and nothing is stored.

Why are some lines of an old code missing from the result?

Valve moved the crosshair sizes to pixels and published no formula for turning the old values into pixels. The only measured rule covers the Classic Static style at 1080p and 960p, so that is the only style the tool converts. For any other old style, the colour presets and a few removed variables it prints no line rather than a wrong one, and says which lines it left out.

Does this work for both CS:GO and CS2 codes?

It reads the current CS2 format and the old CSGO-xxxxx format that CS:GO used and CS2 used until the 30 September 2026 update. Valve's release notes do not say how the game treats an old code, so import an old code in the game to see what it does with it.

Embed this tool

Copy the snippet below and paste it into your site. The widget includes a branded attribution link injected into your page.

<iframe
  src="https://zeroutil.com/embed/cs2-crosshair-code/"
  width="100%"
  height="820"
  style="border:0;max-width:100%"
  loading="lazy"
  title="CS2 Crosshair Code Decoder by ZeroUtil"
></iframe>
<script>
(function(){
  var a=document.createElement('a');
  a.href='https://zeroutil.com';
  a.rel='nofollow';
  a.textContent='Powered by ZeroUtil';
  var s=document.currentScript;
  if(s&&s.parentNode){
    s.parentNode.insertBefore(a,s.nextSibling);
  }
})();
</script>

Learn more

Related tools

More Gaming Tools

Support ZeroUtil