100% Client-Side No data leaves your browser
💳 Card Data

13–19 digit card number. Spaces are allowed.

4-digit expiry in YYMM format.

3-digit magnetic stripe service code.

🔑 Card Verification Keys

8-byte DES key (16 hex chars).

8-byte DES key (16 hex chars).

How it works: The CVV is calculated using the 2-key Triple DES algorithm. The PAN (minus check digit), expiry date (YYMM), and service code are concatenated and zero-padded to 32 characters, then encrypted with CVK-A and CVK-B. The encrypted result is decimalized (digits 0-9 extracted first, then A→0, B→1…F→5) and truncated to 3 digits.

CVV variants: CVV uses the actual magnetic stripe service code. CVV2 uses a fixed service code of 000 (printed on card). iCVV uses 999 (chip/contactless EMV transactions).

Related Tools

🔐

DES/3DES Calculator

Encrypt and decrypt hex data using Single DES and Triple DES

🔑

KCV Calculator

Calculate Key Check Values for 3DES and AES keys

🛡️

ARQC Calculator

Generate and verify EMV ARQC/ARPC cryptograms

📖 About This Tool

What is the CVV Calculator?

The CVV Calculator computes Card Verification Values (CVV, CVV2, and iCVV) from a PAN, expiration date, and service code using a pair of DES keys. These values are used to verify card-not-present and card-present transactions.

🛠️ How to Use
  1. Enter the CVV key pair (Key A and Key B) in hexadecimal.
  2. Enter the PAN (Primary Account Number).
  3. Enter the expiration date and service code.
  4. Click Calculate to generate CVV, CVV2, and iCVV values.
FAQ

What is the difference between CVV and CVV2?

CVV (Card Verification Value) is encoded on the magnetic stripe and used for card-present transactions. CVV2 is printed on the card and used for card-not-present (online/phone) transactions. They use different service code inputs in the calculation.

What is iCVV?

iCVV (Integrated Circuit Card Verification Value) is calculated with service code 999 and stored on the EMV chip. It prevents cloned magnetic stripes from working if the chip data is copied to a mag stripe.