Skip to content
CS2 Crosshair Code

How to Import a Crosshair Code in CS2 (30 Seconds)

A crosshair share code holds every setting in one string. CS2 can read it from the settings menu or from the console, and both routes take less than a minute.

Example code to practise with (donk)

CSGO-aNQn2-upV5w-M8dOd-OOwcf-2pFKO

Method 1: the Share or Import dialog

This is the route almost everyone should use. It needs no console, no config file and no restart.

  1. Copy the share code you want. It always starts with CSGO- and is followed by five groups of five characters.
  2. Launch CS2 and open Settings from the gear icon in the top left of the main menu.
  3. Go to the Game tab, then scroll down to the Crosshair section.
  4. Click Share or Import at the top of the crosshair panel.
  5. Paste the code into the import field and click Import.

The preview in the settings panel updates as soon as the code is accepted, and the crosshair is written straight into your settings. You do not need to press apply anywhere else. If you are in a match, the new crosshair is live the moment you close the menu.

Method 2: the console command

CS2 also accepts a code from the developer console. The command is apply_crosshair_code followed by the code:

apply_crosshair_code CSGO-aNQn2-upV5w-M8dOd-OOwcf-2pFKO

For this to work the console must be turned on. Open Settings, go to the Game tab and set Enable Developer Console to Yes. The default key to open it is the tilde key, which sits under the escape key on most keyboards. If that key does nothing, check the key is still bound under Settings, Keyboard and Mouse, UI Keys.

The console route is faster once the console is open, and it is the only route that works inside a bind, which is what makes it worth setting up.

Exporting your own code

The same dialog exports as well as imports. Open Settings, Game, Crosshair, then Share or Import. Your current crosshair code is shown at the top of the dialog with a copy button next to it. That single string carries the style, size, gap, thickness, colour, alpha, outline, dot, T-style and the dynamic split values, so a teammate who imports it sees exactly what you see.

A few settings are deliberately not part of the format, including the master crosshair toggle, the friendly fire warning and the sniper scope options. If you rely on those, set them separately after importing. Our code decoder shows you every value a code contains before you apply it.

Binding codes to keys for hot-swapping

If you like a small static crosshair for rifles and something larger for AWP rounds or deathmatch, bind each code to a key and switch instantly:

bind F5 "apply_crosshair_code CSGO-aNQn2-upV5w-M8dOd-OOwcf-2pFKO"
bind F6 "apply_crosshair_code CSGO-hzGdv-OVFPn-OarUo-OSZCY-wwXsO"

Paste those lines into the console once, and F5 and F6 swap crosshairs for the rest of the session. Binds are not saved permanently unless you put them in a config file, which is the next step.

Making it permanent with autoexec.cfg

An autoexec file runs a list of commands every time the game starts. Create or open this file:

Steam\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg\autoexec.cfg

Put your crosshair code, your binds and anything else you want applied on launch inside it. For example:

apply_crosshair_code "CSGO-aNQn2-upV5w-M8dOd-OOwcf-2pFKO"
bind F5 "apply_crosshair_code CSGO-aNQn2-upV5w-M8dOd-OOwcf-2pFKO"
host_writeconfig

To make the game read the file on every launch, add a launch option. In Steam, right click Counter-Strike 2, choose Properties, and put this in the launch options box:

+exec autoexec

Save the file as a plain text file with the .cfg extension, not .cfg.txt. Windows hides known extensions by default, so turn file extensions on in File Explorer if you are not sure.

Copying an opponent crosshair while spectating

When you are dead and spectating a teammate, or watching a demo, the spectator panel shows the player crosshair settings and a copy option. Copy the code from there and import it the normal way once the round ends. This also works in community demos, which is the easiest way to lift a crosshair from a pro match without hunting for it online. If the panel is not visible, press the key that cycles spectator overlays, or check our pro crosshair codes instead, since most of them are already listed.

Troubleshooting

The code is rejected as invalid

  • Check for a stray space at the start or the end of the code. Copying from a chat message often adds one.
  • Check that all four dashes are present and that the groups are five characters each.
  • Some characters never appear in a real code: uppercase I, lowercase l, lowercase g, zero and one. If you see one of those, the code was retyped by hand or mangled by a font.
  • Codes start with CSGO- even in CS2. A code starting with CS2- is not a real share code.
  • A code with the right shape can still fail the checksum. If it does, the code was edited after it was generated.

The code imports but nothing changes

  • Make sure the master toggle is on. Run crosshair 1 in the console.
  • If you used the console route, confirm the console is actually enabled and that the command returned no error.
  • Check that you pasted into the import field and not the search box at the top of the settings menu.
  • If you use an autoexec, a command later in the file may be overwriting the crosshair. Put apply_crosshair_code at the end.
  • Some codes only differ by a pixel or two. Compare them side by side with our compare tool before assuming nothing happened.

What to do next

Once a code is in, the fastest way to fine tune it is to open the crosshair generator, paste the code, move the sliders and export a new one. If you would rather understand each value first, read all CS2 crosshair commands or our guide to the best crosshair settings.

Frequently asked questions

Why do CS2 crosshair codes still start with CSGO?

The share code format carried over from CS:GO and was never renamed. Every valid code starts with CSGO- followed by five groups of five characters, and CS2 accepts them exactly as they are.

Do I need the developer console to import a code?

No. The Share or Import dialog in Settings works without the console. You only need the console if you want to use apply_crosshair_code or bind codes to keys.

Where do I find my own crosshair code?

Open Settings, Game, Crosshair, then click Share or Import. Your current crosshair code is shown at the top of the dialog with a copy button next to it.

Can I copy a crosshair while spectating someone?

Yes. While spectating a player in a match or a demo, the spectator panel shows that player crosshair settings along with a copy option. Copy the code from there and import it through the Share or Import dialog.

The code imported but my crosshair looks different. Why?

Crosshair size and thickness scale with screen height, so the same code looks slightly larger at 1440p than at 1080p. A code also cannot carry settings that are not part of the format, such as cl_crosshair_sniper_width or the master crosshair toggle.