A card verification value (CVV) is a short security code tied to a payment card, used to show that the person paying has the card's details in hand rather than just a stolen card number. On most credit cards and debit cards it is a three-digit number printed on the back; American Express prints a four-digit code on the front. Merchants ask for it mainly in card-not-present sales such as online and telephone orders.
The code goes by several brand names: CVV2 at Visa, CVC2 at Mastercard, CID at American Express and Discover, and CAV2 at JCB. All do the same job. The code is generated by the card issuer using secret keys, checked by the issuer during authorization, and protected by industry data-security rules that forbid merchants from keeping it after a payment is approved.
Card verification value in plain terms
Think of the card number as a house address and the CVV as a small detail that only someone standing at the front door could see, like the colour of the doormat. Anyone can learn an address, but a stranger who has only read it on a list cannot describe the doormat. When a website asks for the three digits on the back, it is checking that the buyer can "see the doormat".
The trick only works if the doormat detail is never written down on the list. That is why shops are banned from saving the code: if a database of card numbers is stolen, the codes should not be in it, so the thieves still cannot pass the check.
How the code is generated and checked
The issuer computes each code from the primary account number, the expiry date and a service code, run through a cryptographic algorithm with keys that only the issuer (or its processor) holds. There are in fact two static codes on a traditional card:
- CVV1. Encoded in the magnetic stripe and read automatically at a terminal in card-present transactions. It proves the stripe data came from a genuine card.
- CVV2. Printed on the card body and typed in by the cardholder for remote purchases. It is the number most people mean by "CVV".
- iCVV and dynamic codes. Chip cards built to EMVCo specifications use a different value in the chip data, and some issuers now offer cards or apps whose printed code changes every few hours.
When a shopper enters the code, it travels with the request from the merchant through the acquirer and the card networks to the issuer. The issuer recalculates the expected value and returns a match or no-match result alongside its approve or decline decision, as part of normal authorization and settlement. A merchant or its payment processor can choose to reject a sale on a mismatch even if the issuer approved it. The CVV result is one input to payment authorization, the real-time step in which the issuer approves or declines the sale and reserves the funds before settlement.
Rules on storing the code
The Payment Card Industry Data Security Standard (PCI DSS), maintained by the PCI Security Standards Council, classes the card verification code as "sensitive authentication data". Merchants, processors and service providers may handle it during authorization but must not retain it afterwards, even in encrypted form. This is the main difference from the card number itself, which may be stored if it is protected. Card issuers, which need the keys to verify codes, are the exception.
Because of this rule, a merchant that keeps cards "on file" for subscriptions or one-click checkout cannot ask the network to re-check the CVV on later charges. Those later payments rely on other signals, such as stored-credential flags, network tokenization and the merchant's own risk scoring.
Role in fraud control
The code is one layer in wider fraud prevention. It defeats a criminal who has only a list of card numbers, for example from a skimmed magnetic stripe or a breach of a database that complied with the storage rule. It is commonly paired with the Address Verification Service (AVS), which compares the billing address with the issuer's records.
The code does little against phishing pages, malware that captures what the cardholder types, or "card testing" bots that guess codes on poorly protected checkout pages. For that reason regulators and networks have moved towards stronger checks. In the European Economic Area, PSD2 requires strong customer authentication for most online card payments, and a CVV on its own does not count as one of the two independent factors, since it is printed on the same card as the number. In practice the issuer adds a one-time passcode or app approval through 3-D Secure, a form of multi-factor authentication.
Liability also matters. When an online sale goes through without the issuer's authentication and later turns out to be fraud, the merchant usually bears the chargeback, whether or not the CVV matched.
CVV compared with other card security data
The CVV is often confused with the personal identification number (PIN). The PIN is chosen or issued privately, never printed on the card, and used at ATMs and chip terminals; the CVV is printed openly and used mainly online. A cardholder should never be asked for a PIN in an online checkout.
Newer payment forms reduce reliance on the printed code. Virtual cards can be issued with a fresh code for a single merchant or purchase, and a digital wallet passes a device token and a one-time cryptogram instead of the card number and CVV, so the static code never leaves the phone. The printed CVV remains, however, the default fallback for e-commerce payments worldwide.