ISO 8583 message decoder and compare
Decode an ISO 8583 message in a declared dialect, or compare two messages field by field.
- Runs in your browser
- No sign-up
Input
Result
MTI 0100, authorisation, request, from acquirer (ISO 8583:1987); 15 fields decoded, 243 bytes, no errors.
- MTI
- 0100 (30 31 30 30): authorisation, request, from acquirer (ISO 8583:1987)
- Primary bitmap
- 72 24 06 80 20 C0 92 00
- Fields in the bitmap
- 2, 3, 4, 7, 11, 14, 22, 23, 25, 35, 41, 42, 49, 52, 55
| DE | Name | Format | Value | Bytes (offset) |
|---|---|---|---|---|
| 2 | Primary account number | n..19 LLVAR | 476173******0010 | 31 36 •• •• •• •• •• •• … (16 bytes hidden) (@12, 18 bytes) |
| 3 | Processing code | n6 | 000000 type 00 goods and services; from account 00 default; to account 00 default | 30 30 30 30 30 30 (@30, 6 bytes) |
| 4 | Amount, transaction | n12 | 000000002550 | 30 30 30 30 30 30 30 30 32 35 35 30 (@36, 12 bytes) |
| 7 | Transmission date and time (MMDDhhmmss) | n10 | 1130143015 | 31 31 33 30 31 34 33 30 31 35 (@48, 10 bytes) |
| 11 | System trace audit number (STAN) | n6 | 000123 | 30 30 30 31 32 33 (@58, 6 bytes) |
| 14 | Expiration date (YYMM) | n4 | 2812 | 32 38 31 32 (@64, 4 bytes) |
| 22 | POS entry mode | n3 | 051 PAN entry 05: chip (contact ICC); PIN entry 1: terminal can accept PINs | 30 35 31 (@68, 3 bytes) |
| 23 | Card sequence number | n3 | 001 | 30 30 31 (@71, 3 bytes) |
| 25 | POS condition code | n2 | 00 normal presentment | 30 30 (@74, 2 bytes) |
| 35 | Track 2 data | z..37 LLVAR | 476173******0010=2812201************* | 33 37 •• •• •• •• •• •• … (37 bytes hidden) (@76, 39 bytes) |
| 41 | Card acceptor terminal ID | ans8 | "TERM0001" | 54 45 52 4D 30 30 30 31 (@115, 8 bytes) |
| 42 | Card acceptor ID (merchant) | ans15 | "MERCHANT0000001" | 4D 45 52 43 48 41 4E 54 30 30 30 30 30 30 31 (@123, 15 bytes) |
| 49 | Currency code, transaction | n3 | 986 BRL | 39 38 36 (@138, 3 bytes) |
| 52 | PIN data (encrypted PIN block) | b64 | 1A2B3C4D5E6F7081 | 1A 2B 3C 4D 5E 6F 70 81 (@141, 8 bytes) |
| 55 | ICC (chip) data, BER-TLV | b..255 LLLVAR |
| 30 39 31 9F 26 08 8E 19 ED 4B 98 AE 5A 41 9F 27 01 80 9F 10 07 06 01 12 03 A0 00 00 9F 37 04 9B AD BC AB 9F 36 02 00 27 95 05 00 00 04 00 00 9A 03 26 11 30 9C 01 00 9F 02 06 00 00 00 00 25 50 5F 2A 02 09 86 82 02 39 00 9F 1A 02 00 76 9F 33 03 E0 F0 C8 5A 08 •• •• •• •• •• •• •• •• (@149, 94 bytes) |
Use test data. Card numbers and track data are masked on screen unless you choose to show them; the message itself never leaves your browser.
Migrating hosts and DE 55 no longer matches? IDNTEQ compares the traces field by field. 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.
Paste a message in hex and choose its dialect. The tool reads the MTI and bitmaps, decodes each data element with its format, value and bytes, parses DE 55 as TLV and explains DE 3, 22, 25 and 39. Compare mode lines up two messages, such as a request and its response, and marks what differs.
Dialects
ISO 8583 fixes the data element numbers and their meaning. The wire format varies. Each network and host chooses how the MTI, the numbers and the lengths are encoded, so the decoder works only in the dialect you select and does not try another one on its own. Anything that does not fit is reported with its byte offset and the bytes around it.
Two dialects are available. ASCII: MTI as 4 ASCII digits, binary bitmaps, numeric and text fields in ASCII, variable lengths as 2 or 3 ASCII digits, and DE 52, 55, 64 and 128 as binary; this is the encoding used in the EMV transaction walkthrough. BCD (the common ISO 8583:1987 binary layout): MTI as 2 BCD bytes, binary bitmaps, numeric fields as packed BCD, lengths as BCD (1 byte for LL, 2 bytes for LLL), track data in BCD with D as the separator, and text in ASCII. A 2-byte binary or 4-digit ASCII length header can be declared and is checked against the message length.
What is decoded
The primary bitmap and, when bit 1 is set, the secondary bitmap; then every data element from 2 to 128 in bitmap order, with its ISO 8583:1987 name and format, its value, its bytes on the wire and its offset. DE 55 is parsed as BER-TLV with the EMV tag names. DE 3 (processing code), DE 22 (POS entry mode), DE 25 (POS condition code), DE 39 (response code) and the currency codes are explained from lists of common values; a value outside the list is shown as network-specific.
The PAN (DE 2 and 34), track data (DE 35, 36 and 45) and the card data tags inside DE 55 (5A, 57, 5F20 and others) are masked by default, in the value and in the bytes. Tick the box to show them.
Comparing two messages
Compare mode decodes two messages, each in its own dialect, and lists every data element present in either: the same, different, only in A or only in B. The values are compared after decoding, so a message from a host that uses BCD can be compared with one in ASCII. When both carry DE 55, the chip data is also compared tag by tag. A response MTI (0110 for 0100) is recognised.
Limits
Only the 1987 field layout is implemented. EBCDIC text, DE 65 (a further bitmap) and the subfields of private and national fields (48, 60 to 63, 120 to 127) are not decoded: those fields are read as text, and binary content in them stops the decode with an error. DE 55 is limited to 255 bytes, as in the walkthrough encoder. Network-specific layouts need their own dialect.
Spec references
- ISO 8583:1987 (message type indicator, bitmaps, data elements 1–128)
- EMV 4.4 Book 3 Annex A (data elements carried in DE 55)
- EMV 4.4 Book 4 (terminal-generated authorisation response codes Y1, Z1, Y3, Z3)
Verified against
- Specifications
- ISO 8583:1987 (MTI, bitmaps, data elements 1–128)
- EMV 4.4 Book 3 Annex A (DE 55 tags)
- 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
- Round trip with the walkthrough encoder (ASCII dialect) for every field it writes
- A hand-built BCD message: every field, an odd-length PAN, errors with byte offsets
- Secondary bitmap and DE 128; DE 65 reported, not guessed; masking of PAN, track data and DE 55 card tags
- Inputs
- A message in hex in the ASCII or BCD dialect, with an optional length header.
- Not covered
- No EBCDIC, no DE 65, no subfields of private fields (48, 60–63, 120–127); network-specific layouts need their own dialect.
- Last reviewed