Calculate CVV CVC iCVV CVV2 CVC2 dCVV for Visa Mastercard verification

Calculate CVV/CVC

To calculate the verification values you need the following data:

Enter the 16 or 19 digits card number:

Enter the 4 digit Expiry Date YYMM(EX: 2312):

Enter the 32 hex digits CVV Encryption Key(MDK):

Service code (used for CVV/CVC only):

Application Transaction Counter ATC(used for dCVV only):


How Card Verification Value
calculation for Visa Mastercard works

Documentation - How to calculate CVV - Algorythm

Step 1. Ensure a 2-part 16 byte key. That is 32 hex characters. We will call this "Key"

Step 2. Ensure 16 or 19 digits PAN Card number

Step 3. Ensure 4 characters of Expiration Date

Step 4. Ensure 3 characters of Service Code

Step 5. Concatenate PAN, Expiry date, Service Code

Step 6. Fill with zeroes to the right until you have 32 characters. We will call this "Data"

Step 7. Encrypt (DES) the first half of the data with the first half of the key

Step 8. XOR the result with the second half of Data.

Step 9. Encrypt (DES) the result with the first half of the Key.

Step 10. Decrypt the result with the second half of the key.

Step 11. Encrypt the result with the first half of the key.

Step 12. Get only the digits(numbers) from the result; First 3 are the CVV

ISO8583 simulator scheduling tasks and test regressions

The neaPay ISO8583 simulator improves automated testing with full capabilities for scheduling minutely message exchanges, duration tests, nightly or weekend regressions. Any task can be scheduled and execution automatically.

ISO8583 Card Transaction BIN Prefix Router with neapay Switch

ISO8583 Card Transaction BIN Prefix Switch - routing solution with the neaPay Switch Router on ISO8583.

ISO8583 Load Balancer with neapay Switch Router

ISO8583 Load Balancer with neapay Switch Router. Route ISO8583 Card Transactions equally between nodes, or filter based on Brand, Prefix, Amount or Transaction Type, as needed

PCI compliant with neapay switch

PCI compliant with neapay switch Steps and procedure: Configuration parameters to acheive service PCI DSS compliance


ISO8583 Message Converter to XML SQL CSV interface specification mapping

ISO8583 Converter creating an XML,  SQL and CSV object from an incoming TCP/IP ISO8583 binary message, and then sending it to a HTTP host as a POST, a Mysql database, and a flat file on disk, respectively.

Recent Articles on Iso8583

Choose the product you need

ISO8583 Converter

Convert ISO8583 to JSON XML SQL

ISO8583 Interface

ISO8583 Interface Handler

ISO20022 Converter

Convert ISO20022 to ISO8583 ...

ISO8583 Builder

Build ISO8583 from scratch

ISO8583 Switch

ISO8583 Router by criteria

ISO8583 Authorization

Authorize cards and ledger

Payments Acquirer

Acquiring host from devices

Cards Issuing

Generate and issue cards

ISO8583 Simulator

ISO8583 HISO98 HISO87 simulator

ISO20022 Simulator

ISO20022 & SWIFT simulator

POS Simulator

POS protocols simulator

Web Api Simulator

Web API tester Performance


Get a free quote, Ask for details
Get help

Contact us

Try the software yourself

Download software

Read Documentation and Start guides


Online Tools Overview

Online Tools