Skip to content

CS2 Crosshair Generator

Short answer

The CS2 crosshair generator shows your crosshair live on light and dark scenes as you change style, length, thickness, gap, outline and color. It writes the new pixel commands from the 22 September 2026 update, like cl_crosshair_length. Old share codes can be read. New-format share codes are coming.

Outline cl_crosshair_drawoutline
Options
Color

At 1x, one unit is one screen pixel at 1080p. The drawing is close to the game, not a pixel copy. Dynamic styles are shown standing still.

Console commands

cl_crosshairstyle 7
cl_crosshair_length 8
cl_crosshair_thickness 2
cl_crosshair_gap 4
cl_crosshair_drawoutline 1
cl_crosshairdot 0
cl_crosshair_t 0
cl_crosshaircolor_r 0
cl_crosshaircolor_g 255
cl_crosshaircolor_b 0
cl_crosshaircolor_a 255
cl_crosshair_recoil 1
cl_crosshair_dynamic_spread_limit 255

CS2 changed its crosshair code format on 22 September 2026. The new format is not public yet, so this tool gives you console commands for now. Share codes are coming as soon as we can test them.

Paste a CS2 code made before 22 September 2026 to see what it holds. Many pro codes online are still in this old format.

CS2 crosshair commands after the September 2026 update

CommandWhat it doesValues
cl_crosshairstyleCrosshair style. 0 Dynamic Cross, 1 Dynamic Circle, 2 Dynamic Cross (Legacy), 3 Static Circle, 4 Static Cross, 5 Static Cross (Shot Feedback), 6 Dot Only, 7 Dynamic Quad, 8 Static Square. Styles 0, 1 and 7 track the weapon's real inaccuracy.0 to 8, default 7
cl_crosshair_lengthLength of each bar in pixels, scaled with screen resolution.0 to 255, default 8
cl_crosshair_thicknessThickness of the bars and circle in pixels (minimum 1 pixel).0 to 31, default 2
cl_crosshair_gapOffset added to the gap between the center and the bars.0 to 128, default 4
cl_crosshair_drawoutlineBlack outline for visibility. 0 none, 1 full, 2 half (top and left parts only).0 to 2, default 1
cl_crosshairdotDraws a dot in the center.0 or 1, default 0
cl_crosshair_tT-style crosshair: hides the top bar.0 or 1, default 0
cl_crosshaircolor_r / _g / _bRed, green and blue parts of the color.0 to 255 each, default 0, 255, 0
cl_crosshaircolor_aOpacity. 0 is fully see-through, 255 is solid.0 to 255, default 255
cl_crosshair_recoilCrosshair follows the weapon's predicted recoil (aim punch).0 or 1, default 1
cl_crosshair_dynamic_spread_limitExtra distance dynamic parts may spread out from their baseline.0 to 255, default 255

Removed on 22 September 2026

These old commands are gone from the current CS2 command list, so old configs that use them no longer change your crosshair: cl_crosshaircolor, cl_crosshairgap, cl_crosshairgap_useweaponvalue, cl_fixedcrosshairgap, cl_crosshair_outlinethickness, cl_crosshairusealpha. List before the update, list now.

How does the CS2 crosshair generator work?

Pick a style, drag the sliders and choose a color. The preview updates as you go, on five simple scenes: a bright wall, a dark corridor, open sky, a sandy yard and a green field. Checking a crosshair on light and dark scenes is the fastest way to see if it stays visible everywhere.

When you are happy, copy the console commands and paste them into the CS2 console. You can also download them as crosshair.cfg and load it with exec crosshair.

What changed with CS2 crosshairs in September 2026?

Valve rebuilt the crosshair system in the update of 22 September 2026. The patch notes say "Crosshairs have been updated to be resolution independent" and the default is now "Dynamic Quad." A day later Valve explained that length and thickness are now set in pixels, and that the game rescales them for you if you change resolution.

Several old commands are gone from the current command list, including cl_crosshaircolor, cl_crosshairgap, cl_fixedcrosshairgap, cl_crosshair_outlinethickness and cl_crosshairusealpha. The new ones have clearer names, such as cl_crosshair_length, cl_crosshair_gap and cl_crosshair_thickness. This tool only writes the new commands.

Which crosshair commands does the tool use?

All limits and defaults below come from the current CS2 command list and match the sliders in the game's own settings menu.

CommandWhat it doesRangeDefault
cl_crosshairstyleStyle, 0 to 8 (see below)0 to 87
cl_crosshair_lengthLength of each bar in pixels0 to 2558
cl_crosshair_thicknessThickness in pixels (at least 1 pixel is drawn)0 to 312
cl_crosshair_gapOffset added to the gap from the center0 to 1284
cl_crosshair_drawoutline0 none, 1 full, 2 half0 to 21
cl_crosshaircolor_r/g/bColor0 to 255 each0, 255, 0
cl_crosshaircolor_aOpacity0 to 255255
cl_crosshairdotCenter dot0 or 10
cl_crosshair_tHide the top bar0 or 10
cl_crosshair_recoilFollow predicted recoil0 or 11

The styles are 0 Dynamic Cross, 1 Dynamic Circle, 2 Dynamic Cross (Legacy), 3 Static Circle, 4 Static Cross, 5 Static Cross (Shot Feedback), 6 Dot Only, 7 Dynamic Quad and 8 Static Square. The game says styles 0, 1 and 7 track your weapon's real inaccuracy. For those, the tool also shows cl_crosshair_dynamic_spread_limit, which caps how far the dynamic parts can spread.

The gap can no longer go below 0. Old guides that set a negative gap were written for the old system.

What happened to share codes?

CS2 still has share codes, but the update changed their format. Codes made before 22 September 2026 have a version number of 1 inside them. New codes carry a different version and a new layout that has not been published. We will not guess it. So this tool gives you console commands for now, and share codes are coming as soon as we can test them against the game.

You can still paste an old code into "Read an old share code". The tool decodes it and shows the old settings it held, like size, gap, color and outline. We wrote the decoder ourselves from the layout documented in the open-source csgo-sharecode project (MIT license). It passes all six sample codes from that project's tests and matches the published settings of six pro codes.

Old values do not map one to one onto the new pixel settings, so use them as a guide.

Worked example 1: a small static cross

You want a small, clean cross that does not move when you shoot.

  1. Pick style 4, Static Cross.
  2. Set length 6, thickness 1 and gap 2.
  3. Keep the full outline and pick cyan.

The tool writes:

cl_crosshairstyle 4
cl_crosshair_length 6
cl_crosshair_thickness 1
cl_crosshair_gap 2
cl_crosshair_drawoutline 1
cl_crosshaircolor_r 0
cl_crosshaircolor_g 255
cl_crosshaircolor_b 255

plus the dot, T, opacity and recoil lines. Flip between the bright wall and the dark corridor. The black outline keeps it readable on both.

Worked example 2: a T-style with a dot

You like a T shape that leaves the top of the target clear.

  1. Pick Static Cross again.
  2. Tick "T style (no top bar)" and "Center dot".
  3. Set thickness 2 and gap 3, then choose a bright yellow.

The preview shows three bars and a dot. On the sandy yard, yellow can blend in. Switch to pink or cyan if you lose it.

How do I make my crosshair stick?

Crosshair settings are saved by the game, but pasting them in an autoexec keeps them safe after a reset or on a new PC. Put the commands in autoexec.cfg in the game\csgo\cfg folder. The autoexec builder can make that file for you.

Want ideas first? Browse the pro crosshair library, then set up your gun position with the viewmodel generator. If a site asks you to log in with Steam to get a crosshair or config, read how to spot fake Steam login pages first.

When should you use this tool?

Use it after the September 2026 update if your old crosshair looks wrong, when you set up a new PC, or when you want to try a new style without clicking through menus. The preview is a close drawing, not a pixel copy of the game, so give your final pick a quick check in a practice match.

Frequently asked questions

Why does my old CS2 crosshair look different now?

Valve rebuilt crosshairs on 22 September 2026. Sizes are now in pixels and several old commands like cl_crosshairgap and cl_crosshaircolor were removed, so old settings can look different.

What replaced cl_crosshairsize in CS2?

cl_crosshair_length, which sets the length of each bar in pixels from 0 to 255. Thickness is now cl_crosshair_thickness (0 to 31) and gap is cl_crosshair_gap (0 to 128).

Can I still use a negative crosshair gap?

No. cl_crosshair_gap now runs from 0 to 128. Negative gaps belonged to the old system.

Why does the tool not make share codes?

CS2 changed its share code format with the September 2026 update and the new layout is not public yet. We give you console commands for now and will add codes once we can test them.

Can I still read an old crosshair code?

Yes. Paste any code made before 22 September 2026 into the reader and it shows the old size, gap, thickness, color and outline it held.

What is the default CS2 crosshair?

Since the September 2026 update the default style is 7, Dynamic Quad, with length 8, thickness 2, gap 4, a full outline and green color.

What does half outline mean?

cl_crosshair_drawoutline 2 draws only the top and left parts of the black outline. 1 draws a full outline and 0 turns it off.

How do I save my crosshair?

Paste the commands into the console, or add them to an autoexec.cfg with the autoexec builder so they load every time.

Try next