1. Home
  2. Tools
  3. Gen Code Generator

CS2 Gen Code Generator

Pick a skin, dial in the float and pattern seed, and copy the !gen command for community servers running the gen plugin.

Skin data from the open-source CSGO-API project; weapon defindexes are static Valve values. Want the full picture? Check floats with the Float Checker or preview skins in 3D with the Skin Inspector.

Frequently Asked Questions

Everything you need to know about CS2 gen codes, the !gen command format, and how to use them on community servers.

What is a gen code in CS2?

A gen code is a chat command used on CS2 community servers that run a skin-generation ("gen") plugin. Typing the command in chat spawns a weapon with the exact skin, float value, and pattern seed you specify, so you can preview any skin in-game before buying it. The command follows the format "!gen <weapon id> <paint kit id> <float> <seed>" — for example, "!gen 16 309 0.01 0" generates a Factory New M4A4 | Howl. Gen codes only work on community servers with the plugin installed; they have no effect in matchmaking and never create real, tradable items.

How do I use a gen code?

First join a CS2 community server that runs a gen plugin — search the community server browser for "skins" or "!gen" servers. Once connected, open chat and paste the command you copied from this tool, for example "!gen 7 180 0.15 42" for an AK-47 | Fire Serpent. The server will give your character the generated weapon so you can inspect it in-game. Each server may have its own limits or cooldowns, and some use slightly different command variants, so check the server's rules or MOTD if a command is rejected.

What do the four numbers in a gen code mean?

The command is "!gen <defindex> <paintkit> <float> <seed>". The defindex is the weapon's item-definition index — a fixed Valve ID like 7 for the AK-47, 9 for the AWP, or 16 for the M4A4. The paint kit ID identifies the skin finish, such as 180 for Fire Serpent, 344 for Dragon Lore, or 309 for Howl. The float is the wear value that controls how scratched the skin looks, and the seed (0–1000) controls where the pattern is positioned on the weapon — crucial for skins like Case Hardened or Fade.

Why doesn't my StatTrak or sticker choice show in the gen code?

The standard !gen command only carries four values: weapon ID, paint kit ID, float, and seed. StatTrak, Souvenir status, and stickers are not part of the command format — those attributes only exist in Steam inspect links, which encode a fuller item description. This tool intentionally generates only the four-value command so it works reliably across gen servers.

Are gen codes safe and legal to use?

Yes — using !gen commands on community servers that offer them is allowed and does not affect your account. The generated weapons exist only on that server while you play; they are not real inventory items, cannot be traded or sold, and disappear when you leave. Gen codes are a preview tool, most commonly used to check how a skin, float, and pattern combination looks in-game before spending money on the real item. Note that using third-party software to change skins in matchmaking is a different thing entirely and can lead to bans — gen codes on community servers carry no such risk.

Why does the float value matter in a gen code?

The float controls how worn the skin looks, from pristine at 0.00 to heavily battle-scarred at 1.00. Each skin also has its own allowed float range — the AWP | Dragon Lore only exists between 0.00 and 0.70, and the M4A4 | Howl between 0.00 and 0.40. This tool automatically clamps the float to each skin's valid range, so the command you copy always represents an item that could actually exist. That makes it ideal for previewing exactly what a listing with a specific float will look like before you buy it.

What are the most famous pattern seeds worth trying?

Pattern seeds shift where the finish texture sits on the weapon, and some placements are far more desirable than others. Legendary examples include seed 661 on the AK-47 | Case Hardened (the "Blue Gem" with a nearly full blue top), seed 387 on the Karambit | Case Hardened, and high-fade percentage seeds on Fade knives. Doppler phases, Marble Fade combinations, and Crimson Web spider placements also vary by seed. Generate the same skin with different seeds to compare patterns side by side in-game.

Where does the skin data come from?

The skin database is built from the open-source CSGO-API project (ByMykel), which tracks every CS2 skin with its paint kit index and minimum/maximum float straight from the game files. Weapon definition indexes are static Valve values from the game's item schema (items_game.txt). The database covers over 2,000 weapon, knife, and glove finishes and is refreshed regularly as new cases and collections are released.

SteamAnalyst
Powered by Steam.
Not affiliated with Valve Corp.
© 2013-2026 SteamAnalyst.com - Tracking prices since 2013
Check back soon for updates!
Skin.clubSkin.club
Clash.ggClash.gg
BitSkins.com
CSGOHowl.comCSGOHowl.com
About Us
Pricing Methodology
API
Feedback
Terms of Service
Privacy Policy
Affiliate Disclosure
All CS2 Tools
All CS2 Skins
All CS2 Stickers
All CS2 Cases
All CS2 Keys
All CS2 Agents
All CS2 Markets
Marketplace Reviews
Deals & Bargains
Matching Loadouts
Market Dashboard
CS2 Guides
CS2 Stats Tracker
Knives
Rifles
Pistols
Sniper Rifles
Gloves
SMGs
Stickers
Cases
Doppler Skins
Fade Skins
Tiger Tooth Skins
Case Hardened Skins
AK-47
AWP
M4A4
M4A1-S
Karambit
Butterfly Knife
Desert Eagle
Glock-18
Dota 2
PUBG
CS.MoneyDMarketSkinportTradeItLis-Skins
CLASH.GG
SkinsMonkeySkinRave
SteamAnalyst.com
Browse All Collections
The Dead Hand CollectionThe Dead Hand CollectionThe Harlequin CollectionThe Harlequin CollectionThe Achroma CollectionThe Achroma CollectionThe Genesis CollectionThe Genesis CollectionThe Train 2025 CollectionThe Train 2025 CollectionThe Radiant CollectionThe Radiant CollectionThe Boreal CollectionThe Boreal CollectionThe Ascent CollectionThe Ascent CollectionThe Fever CollectionThe Fever CollectionThe Sport & Field CollectionThe Sport & Field CollectionThe Overpass 2024 CollectionThe Overpass 2024 CollectionThe Graphic Design CollectionThe Graphic Design CollectionThe Gallery CollectionThe Gallery CollectionThe Kilowatt CollectionThe Kilowatt CollectionThe Anubis CollectionThe Anubis CollectionThe Revolution CollectionThe Revolution CollectionThe Recoil CollectionThe Recoil CollectionThe Dreams & Nightmares CollectionThe Dreams & Nightmares CollectionThe Operation Riptide CollectionThe Operation Riptide CollectionThe Control CollectionThe Control CollectionThe Ancient CollectionThe Ancient CollectionThe 2021 Vertigo CollectionThe 2021 Vertigo CollectionThe 2021 Train CollectionThe 2021 Train CollectionThe 2021 Mirage CollectionThe 2021 Mirage CollectionThe 2021 Dust 2 CollectionThe 2021 Dust 2 Collection
Browse All Cases
Kilowatt CaseKilowatt CaseGallery CaseGallery CaseRevolution CaseRevolution CaseRecoil CaseRecoil CaseDreams & Nightmares CaseDreams & Nightmares CaseSnakebite CaseSnakebite CaseFracture CaseFracture CasePrisma 2 CasePrisma 2 CasePrisma CasePrisma CaseClutch CaseClutch CaseCS:GO Weapon CaseCS:GO Weapon Case
Browse All Capsules
Paris 2023 LegendsParis 2023 LegendsParis 2023 ChallengersParis 2023 ChallengersParis 2023 ContendersParis 2023 ContendersCopenhagen 2024 LegendsCopenhagen 2024 LegendsCopenhagen 2024 ChallengersCopenhagen 2024 ChallengersCopenhagen 2024 ContendersCopenhagen 2024 ContendersCharm CapsuleCharm Capsule10 Year Birthday Sticker Capsule10 Year Birthday Sticker Capsule
StickersStickersCharmsCharmsAgentsAgentsPatchesPatchesGraffitiGraffitiMusic KitsMusic KitsCollectiblesCollectiblesKeysKeysPassesPassesToolsTools
Browse All Colors
BlackBlueRedGreenWhiteGoldPurpleOrangePinkYellowCyanGreyBrownTanLimeCamoRainbowFloralAnimalTwo-Tone
Most ExpensiveDealsTop 500 InventoriesSearch Item DBLoadout BuilderComplete the LookCommunity LoadoutsBrowse InventoriesMarketplaces