EMV APDU and trace log decoder
Decode command/response APDUs and full tracer logs (ISO 7816-4 + EMV).
- Runs in your browser
- No sign-up
Input
3 commands, 3 responses decoded.
Result
Card and terminal disagree and the log does not say why? IDNTEQ can help. EMV transaction troubleshooting
About this tool
Runs in your browser. This page loads no analytics or third-party scripts and does not send what you type.
Decode a single APDU or a whole tracer log. The decoder names the instruction, breaks down CLA/P1/P2, gives the meaning of SW1SW2, and TLV-parses response data (and the GPO command template) inline.
Commands and responses
Every command is decoded per ISO/IEC 7816-4 and EMV Book 1/3: SELECT, GET PROCESSING OPTIONS, READ RECORD, GENERATE AC, VERIFY, GET DATA, INTERNAL/EXTERNAL AUTHENTICATE and more. The CLA byte is broken down for secure-messaging and logical-channel bits; P1/P2 carry instruction-specific meaning (record number + SFI for READ RECORD, AC type for GENERATE AC).
Status words are decoded, including the ranged ones: 61xx (GET RESPONSE available), 6Cxx (wrong Le) and 63Cx (a counter; after VERIFY it is the PIN tries remaining). Short and extended length fields are recognised, and a command whose length does not match its Lc is reported as truncated or as having surplus bytes.
Log mode
Paste output straight from a tracer or simulator. Direction markers (>>/<<, C-APDU/R-APDU, terminal/card) and timestamps are removed before the hex is read, lines starting with #, // or ; are treated as comments, and each line is classified as command or response; when a line has no marker the direction is inferred and the guess is noted. Once the hex of a command or response starts, every token must be hex: a bad token is reported with its line and character position, and that line is not decoded rather than shortened to the valid part. Response data is TLV-parsed inline when it parses cleanly (FCI, records, GET DATA responses), as is the GPO command template. GENERATE AC command data is the CDOL values without tags, so it is shown raw. STORE DATA carries DGIs or BER-TLV depending on the personalization profile; the GlobalPlatform P1 bits state which. The default example is a contactless selection: SELECT of the PPSE, SELECT of a Visa AID and GET PROCESSING OPTIONS with Le.
Spec references
- ISO/IEC 7816-4 §5 (APDU) §5.1.3 (status bytes)
- EMV 4.4 Book 1 §11
- EMV Book 3 §6 (commands)
Verified against
- Specifications
- ISO/IEC 7816-4 §5 (APDU cases, class byte, status bytes)
- EMV 4.4 Book 3 §6 (commands)
- EMV CPS v1.0 and GlobalPlatform 2.2.1 Table 11-81 (STORE DATA)
- Published examples in the tests
- None: no published example with these inputs was found. The checks below are the ones the tests run.
- Other checks in the tests
- Short and extended cases 1–4, truncated and surplus-byte commands
- Status words including 61xx, 6Cxx and the 63Cx PIN try counter
- Log parsing: direction markers, timestamps, separators, comments; a bad token is reported with its line and position, never dropped
- The default example decodes without errors with consistent TLV lengths (made-up test data)
- Inputs
- One APDU or a tracer log, one command or response per line.
- Not covered
- Secure messaging is named in the class byte but not decrypted; GENERATE AC command data is shown raw (it has no tags).
- Last reviewed