CAVV and AAV decoder (3-D Secure)
When you pay online, 3-D Secure (3DS) lets the card issuer check that you are the cardholder, for example with a code or a banking app. When the check is done, the issuer returns a proof value: Visa calls it CAVV (Cardholder Authentication Verification Value) and Mastercard calls it AAV (Accountholder Authentication Value).
The merchant receives it as a 28-character Base64 string and sends it in the authorization together with the electronic commerce indicator (ECI), which says how the cardholder was authenticated. Visa carries the CAVV as 20 bytes in field 126.9 of its authorization messages.
Developers decode it to check that the value travelled whole: a CAVV has 20 bytes and a current Mastercard AAV (SPA2) has 21. Decoding it twice or cutting a byte is a common cause of declines. Only the issuer can validate it, with secret keys; this tool shows its structure and nothing else.
Worked example: the synthetic value jHyn+7YFi1EUAREAAAAvOptcHQI= decodes to 20 bytes that start with 8C. That is the layout of a Mastercard SPA AAV from 3-D Secure 1.0 for an authenticated cardholder: ACS 1, password, key 1, and transaction sequence number 47.
New to EMV? Read EMV in 5 minutes or browse the glossary
Everything runs in your browser. Nothing you enter leaves this page.
Paste the value from the 3-D Secure response or the authorization log. Spaces and line breaks are ignored.
Electronic commerce indicator (ECI)
The ECI travels next to the CAVV or AAV and tells the issuer how the cardholder was authenticated.
| Scheme | ECI | Meaning |
|---|---|---|
| Visa | 05 | Cardholder authenticated |
| Visa | 06 | Authentication attempted |
| Visa | 07 | Not authenticated |
| Mastercard | 02 | Cardholder authenticated |
| Mastercard | 01 | Authentication attempted |
| Mastercard | 00 | Not authenticated |
Visa CAVV results codes
In the authorization response, Visa returns a one-character code in field 44.13 that says whether the CAVV passed validation.
| Code | Meaning |
|---|---|
| Blank | No CAVV in the message, or the issuer did not ask for validation |
| 0 | The CAVV could not be validated, or it was missing |
| 1 | Validation failed for an authenticated transaction |
| 2 | Validation passed for an authenticated transaction |
| 3 | Validation passed for an attempt |
| 4 | Validation failed for an attempt |
| 6 | Not validated because the issuer does not take part |
| 7 | Validation failed for an attempt |
| 8 | Validation passed for an attempt |
| 9 | Validation failed for an attempt |
| A | Validation passed for an attempt |
| B | Validation passed, without chargeback protection |
| C | Not validated for an attempt, although the issuer asked for validation |
| D | Not validated for an authenticated transaction, although the issuer asked for validation |
ECI values and results codes come from public Visa and processor documents. Liability rules change: check them against the current scheme rules.