Crosshair Generator

Design a custom crosshair with a live preview on dark, light, and map-style backgrounds. Tune style, color, size, gap, and outline, then copy CS2 console commands or download a transparent PNG.

The preview approximates how the crosshair renders at 1080p.

Preview background

Style

Color

3
1
0
100%

CS2 console commands

cl_crosshairstyle 4; cl_crosshair_t 0; cl_crosshairsize 3; cl_crosshairthickness 1; cl_crosshairgap 0; cl_crosshairdot 0; cl_crosshair_drawoutline 1; cl_crosshair_outlinethickness 1; cl_crosshaircolor 5; cl_crosshaircolor_r 0; cl_crosshaircolor_g 255; cl_crosshaircolor_b 102; cl_crosshairalpha 255; cl_crosshairusealpha 1

Build a Crosshair You Can Actually Aim With

A crosshair that blends into the map costs you fights you should have won. This tool lets you test a design against dark corners, bright walls, and a map-style background before you commit to it in a match. The sliders use the same value ranges as the CS2 console settings, so what you build here transfers to the game with one paste. Valorant players can read the same numbers straight into the in-game crosshair menu.

CS2 · Valorant · FPS

Why Use This Crosshair Generator?

Live Preview on Three Backgrounds

Check your design against a dark scene, a bright scene, and a map-style backdrop, because a crosshair that works on one often disappears on another.

Ready-Made CS2 Console Commands

One click copies a complete command line with size, gap, thickness, color, and alpha values that match exactly what you see in the preview.

Same Units as the Game

Size, gap, and thickness sliders use CS2 value ranges instead of arbitrary pixels, so nothing gets lost in translation.

Transparent PNG Export

Download your crosshair as a transparent 256-pixel PNG for thumbnails, stream overlays, or settings guides.

How this Crosshair Generator works

The preview is drawn on an HTML canvas, the same drawing surface browsers use for 2D games. Every time you move a slider, the tool clears the canvas and rebuilds the crosshair from four rectangles: a left, right, top, and bottom arm placed around the exact center point. The size slider controls how long each rectangle is, thickness controls its width, and gap controls how far each arm sits from the center. Choosing the T-style simply skips the top rectangle, and the circle style swaps the rectangles for a stroked ring.

The sliders use the same value ranges as the CS2 console settings, so the numbers you pick here transfer directly to the game. When you press the copy button, the tool builds a single line of console commands — cl_crosshairsize, cl_crosshairgap, cl_crosshairthickness, and the rest — from your current settings and places it on your clipboard. Your chosen color is converted from its hex value into the separate red, green, and blue values the game expects, and the opacity slider becomes the alpha value.

The outline option draws a slightly larger black shape behind each arm before the colored shape goes on top, which keeps the crosshair visible against both bright skies and dark corners. The PNG download redraws your design onto a transparent 256-pixel canvas and saves it as a file. Everything runs locally in your browser tab; no settings, images, or personal data leave the page.

How to use this Crosshair Generator

1

Pick a style and color

Choose cross, T-style, circle, or dot, then select a preset color or set your own with the color picker.

2

Tune it on real backgrounds

Adjust size, gap, thickness, and opacity while switching between dark, light, and map-style preview backgrounds.

3

Export your crosshair

Copy the generated CS2 console commands with one click, or download the design as a transparent PNG.

Frequently Asked Questions

How do I use the generated crosshair in CS2?
Copy the commands, then open the developer console in CS2 with the tilde key (enable it first under Settings > Game > Enable Developer Console) and paste the whole line. All values apply at once and are saved with your config, so you only need to do this once per design.
Does this work for Valorant too?
Yes, with one extra step. Valorant has no console, but its crosshair menu uses the same concepts: line length matches the size slider, line thickness matches thickness, and inner line offset matches gap. Open Settings > Crosshair in Valorant and copy the numbers across by hand.
What does the gap value actually change?
It sets how far each arm sits from the center. Positive values open up the middle so you can see the target between the lines; negative values pull the arms inward until they touch. Many rifle players run a small negative gap for a tighter feel.
Should my crosshair be big or small?
Smaller crosshairs cover less of the target and suit precise, single-shot aiming, while larger ones are easier to track during fast movement. A common starting point is size 2 to 3 with thickness 1, then adjust after a few matches rather than every round.
What color works best for a crosshair?
Pick a color that rarely appears on the maps you play. Green, cyan, and magenta stay visible on most CS2 and Valorant maps, while red and yellow can vanish against fire, blood, or desert textures. The outline option helps any color stay readable.
Why does the crosshair look slightly different in game?
The preview approximates rendering at 1080p, but games draw the crosshair at your actual resolution and round each line to whole pixels. The proportions carry over exactly since the values are the same; only the on-screen scale can differ slightly.
Can I get banned for using a custom crosshair?
No. The generated commands only change official CS2 settings, the same ones the in-game menu edits. This is completely different from third-party overlay software, which some anti-cheat systems flag. Stick to the built-in settings and there is no risk.
What is the PNG download for?
The PNG is a transparent 256-pixel image of your design. Games do not accept image files as crosshairs, but the PNG is useful for stream overlays, YouTube thumbnails, settings guides, or sharing a design with teammates.
What does T-style mean and why do players use it?
A T-style crosshair removes the top arm, leaving only the left, right, and bottom lines. Players use it because the missing top line keeps the area above the aim point clear, which makes headshot-height targets easier to see.
Does this tool upload or store anything?
No. The preview, the command generation, and the PNG export all run locally in your browser tab. Nothing you design here is sent to a server, and closing the page removes it completely.

Related Tools

The Crosshair Generator is maintained by CodeItBro. We aim to provide the best free developer tools on the web. If you have feedback or suggestions, please visit our contact page.

Comments

Questions, corrections, and useful tips are welcome. Comments are reviewed before publication.

Loading comments...

Comments are stored and moderated using Cusdis Cloud. Email is optional. Privacy Policy

As featured on

CodeItBro - Free dev tools + practical guides to help you ship faster | Product HuntCodeItBro - Free Online Developer Tools badgeCodeItBro badge