Operations

ISO 8583 Message Format Explained: MTI, Bitmaps and Data Elements

ISO 8583 explained: the MTI, how bitmaps work, key data elements, a decoded ATM withdrawal message and the response codes you will see most.

By Magazine Inside· ·9 min read
A card payment terminal with a Visa card inserted

Short answer: ISO 8583 is the international standard for the messages that card payments and ATM withdrawals send between terminals, processors, card networks and banks. Every message has three parts: a 4-digit Message Type Indicator (MTI) such as 0200 (financial request) or 0210 (response), one or more bitmaps that say which fields are present, and the data elements themselves: card number, amount, response code and so on, up to 128 fields in the common versions.

There are three main versions (1987, 1993 and 2003), and the 1987 version is still the most widely used. In practice, each card network and processor publishes its own “dialect”, so you always work from a specific specification as well as the standard.

Last checked: 26 November 2026. Field definitions follow the widely used 1987 version of ISO 8583. Exact formats, lengths and encodings vary by network and processor; always check the specification you are building against. The examples are simplified for learning.
MTI
4 digits: version, class, function, origin
64 bits
per bitmap: one bit per field
128
data elements with a secondary bitmap
1987
still the most-used version

I will be honest with you: ISO 8583 looks intimidating the first time you see a raw message, a long string of digits and hex with no labels at all. Once you understand the three building blocks, though, it becomes surprisingly logical. This guide walks through the structure, decodes a real-world-style ATM withdrawal message bit by bit, and lists the fields and response codes you will meet most often.

Where ISO 8583 fits

When you tap a card in a shop or ask an ATM for cash, the terminal sends an authorisation request to the acquirer or processor, which forwards it across a card network to the bank that issued your card. The bank replies with approve or decline. In most card systems, the messages on those links are ISO 8583 or a network-specific version of it. Our guide to how ATM processing works explains that chain in plain English; this article zooms into the messages themselves.

A card payment terminal with a Visa card inserted
A card payment terminal with a Visa card inserted. Behind every tap, swipe or chip-and-PIN payment, the terminal’s request is usually turned into an ISO 8583 message for the card network. (Photo: Basile Morin / Wikimedia Commons, CC BY-SA 4.0)
VersionMTI first digitNotes
ISO 8583:19870The original and still the most widely implemented
ISO 8583:19931Revised fields and message classes
ISO 8583:20032Further revision; less common in practice
National / private use8 or 9Reserved for national and private variants
Most networks build their own specifications on the 1987 base.

The three parts of every message

1. MTI
Four digits saying what kind of message this is
e.g. 0200 = financial request
2. Bitmap(s)
64 bits (8 bytes, often sent as 16 hex characters) marking which fields follow
Bit 1 on = a secondary bitmap follows
3. Data elements
The fields, in number order, each in its defined format
Fixed or variable length

Many systems also put a length header (often 2 bytes) and sometimes a network header before the MTI, so the receiver knows where one message ends and the next begins. That framing is defined by the network or processor, not by ISO 8583 itself.

Decoding the MTI

PositionMeaningCommon values
1st digitVersion0 = 1987, 1 = 1993, 2 = 2003
2nd digitMessage class1 authorisation, 2 financial, 3 file actions, 4 reversal/chargeback, 5 reconciliation, 6 administrative, 8 network management
3rd digitFunction0 request, 1 request response, 2 advice, 3 advice response, 4 notification
4th digitOrigin0 acquirer, 1 acquirer repeat, 2 issuer, 3 issuer repeat
So 0210 = 1987 version, financial, response, from the acquirer side.
MTINameTypical use
0100 / 0110Authorisation request / responseCard purchases where the amount is held, then cleared later
0200 / 0210Financial request / responseATM withdrawals and debit purchases that move money at once
0400 / 0410Reversal request / responseUndo a transaction, e.g. the ATM failed to dispense
0420 / 0430Reversal advice / responseNotify that a reversal has happened
0800 / 0810Network management request / responseSign-on, sign-off, echo tests, key exchange
The message pairs you will meet first.

How the bitmap works

The bitmap is the clever part. Instead of labelling each field, the sender sets a bit for every field that is present. Bit 1 is the leftmost bit of the first byte; if it is set, a second 64-bit bitmap follows, covering fields 65 to 128. Each hex character represents four bits.

Here is a worked example. Suppose a message contains fields 2, 3, 4, 7, 11, 12, 13, 22, 35, 41, 49 and 52, a typical set for an ATM withdrawal:

ByteFields coveredFields presentHex
11-82, 3, 4, 772
29-1611, 12, 1338
317-242204
425-32none00
533-403520
641-484180
749-5649, 5290
857-64none00
Within each byte the bits are worth 80, 40, 20, 10, 08, 04, 02, 01 in hex, from left to right.
Primary bitmap: 72 38 04 00 20 80 90 00
As hex text:    7238040020809000

Byte 1 = 0x72 = 0111 0010
               ^^^^ ^^^^
         bit:  1234 5678  -> bits 2, 3, 4 and 7 are on

My advice: when you are learning, decode a few bitmaps by hand like this. Once you have done it two or three times, reading a raw message log becomes much less mysterious, and you will spot “missing field” errors instantly.

The data elements you will see most

FieldNameFormat (1987)
DE 2Primary account number (PAN)n..19, variable (LLVAR)
DE 3Processing coden6, e.g. 01 = cash withdrawal, 31 = balance inquiry
DE 4Transaction amountn12, in minor units (cents)
DE 7Transmission date and timen10, MMDDhhmmss (GMT)
DE 11System trace audit number (STAN)n6, unique per message from the sender
DE 12 / 13Local transaction time / daten6 hhmmss / n4 MMDD
DE 22Point-of-service entry moden3, e.g. chip, magnetic stripe, contactless
DE 35Track 2 dataz..37, variable
DE 37Retrieval reference numberan12
DE 38Authorisation ID responsean6, the approval code
DE 39Response codean2, e.g. 00 = approved
DE 41 / 42Terminal ID / card acceptor IDans8 / ans15
DE 43Card acceptor name and locationans40
DE 49Transaction currency coden3, ISO 4217 (840 = US dollar)
DE 52PIN datab64, the encrypted PIN block
DE 55ICC (EMV chip) datab…255, variable (LLLVAR)
DE 64 / 128Message authentication code (MAC)b64
DE 70Network management information coden3, e.g. 001 sign-on, 301 echo test
DE 90Original data elementsn42, used in reversals
Networks may redefine or restrict fields; check your specification.
The microchip inside a payment card, close up
The tiny microchip inside a payment card, about 2 mm across. The cryptographic data the chip produces for each transaction travels in field 55 of the ISO 8583 message. (Photo: Rolf Süssbrich / Wikimedia Commons, CC BY-SA 4.0)

Field formats in brief

CodeMeaning
nNumeric digits only
a / an / ansAlphabetic / alphanumeric / alphanumeric plus special characters
bBinary data (the number is bits, e.g. b64 = 8 bytes)
zTrack 2 or Track 3 magnetic stripe data
LLVAR / LLLVARVariable length, with a 2- or 3-digit length prefix
Encodings (ASCII, EBCDIC, BCD or binary) are set by each network’s specification.

Worked example: an ATM withdrawal

Here is a simplified 0200 request for a $100 withdrawal from a checking account, followed by the bank’s approval. The card number is a test value and the PIN block is shown as a placeholder.

MTI     0200                     Financial request
Bitmap  7238040020809000
DE 2    16 4111111111111111      PAN (length 16, test number)
DE 3    012000                   01 cash withdrawal, 20 from checking
DE 4    000000010000             $100.00 (in cents)
DE 7    1126143005               26 Nov, 14:30:05 GMT
DE 11   000123                   Trace number
DE 12   093005                   Local time 09:30:05
DE 13   1126                     Local date 26 Nov
DE 22   051                      Chip read, PIN entered
DE 35   ...                      Track 2 equivalent data
DE 41   ATM00042                 Terminal ID
DE 49   840                      US dollars
DE 52   [8-byte encrypted PIN block]
MTI     0210                     Financial response
DE 3    012000
DE 4    000000010000
DE 11   000123                   Same trace number
DE 38   A1B2C3                   Approval code
DE 39   00                       Approved
DE 41   ATM00042

If the ATM then failed to dispense the notes, it would send a 0420 reversal advice, with field 90 carrying the original MTI, trace number and date and time, so the issuer can release the funds.

An early 1970 ATM card, a punched card with no magnetic stripe
An early ATM card issued in Israel around 1970: a punched card with no magnetic stripe. ISO 8583, first published in 1987, standardised the messages as card networks grew around the world. (Photo: בנק לאומי לישראל / Wikimedia Commons, Public domain)

Common response codes (field 39)

CodeMeaningCodeMeaning
00Approved51Insufficient funds
05Do not honour54Expired card
12Invalid transaction55Incorrect PIN
13Invalid amount61Exceeds withdrawal limit
14Invalid card number75PIN tries exceeded
41 / 43Lost / stolen card91Issuer unavailable
Codes from the 1987 version; networks add their own and map some differently.
A payment terminal screen showing a response message
A payment terminal showing a response message. Terminals and ATMs translate the two-character response code in field 39 into the message you see on screen. (Photo: VulcanSphere / Wikimedia Commons, CC BY 4.0)

Network management and security

Not every message is a payment. 0800 network management messages let systems sign on and off, send regular “echo tests” to check that a link is alive, and exchange encryption keys. Security is built in at several levels: the PIN travels only as an encrypted PIN block in field 52, chip cards add a one-time cryptogram in field 55, and many links add a message authentication code in field 64 or 128 so the receiver can detect tampering. The connection itself is usually protected too.

Racks of servers in a data centre
Racks of servers in a data centre. Card processors and networks run ISO 8583 switches on systems like these, handling large volumes of messages with very high availability. (Photo: Victorgrigas / Wikimedia Commons, CC BY-SA 3.0)

ISO 8583 vs ISO 20022

ISO 8583ISO 20022
Main useCard authorisations and ATM transactionsBank payments, transfers and securities messaging
FormatCompact bitmap and positional fieldsRich XML (or JSON) messages
StrengthFast, small, deeply embedded in card systemsDetailed structured data
TodayStill dominant in card processingSpreading across payment systems
ISO 20022 is growing, but ISO 8583 remains the workhorse of card payments.

Tips for developers

  1. Start from the network’s spec, not just the ISO standard: lengths, encodings and mandatory fields differ.
  2. Use a proven library (for example the open-source jPOS project in Java) rather than writing a parser from scratch.
  3. Log safely: never write full card numbers, track data or PIN blocks to logs; mask them.
  4. Test with a simulator and the network’s certification scripts before going live.
  5. Handle timeouts and reversals carefully: a lost response is the classic source of double charges.

More business explainers: how ATM processing works, how to start an ATM business, machine shop cost estimating, configuration management in telecom.

Frequently asked questions

What is ISO 8583?

An international standard for card-originated financial messages, used for card payments and ATM transactions between terminals, processors, networks and banks.

What is an MTI in ISO 8583?

The Message Type Indicator: four digits giving the version, message class, function and origin, such as 0200 for a financial request.

What is the bitmap in ISO 8583?

A 64-bit field in which each bit shows whether a data element is present. If bit 1 is set, a secondary bitmap covers fields 65-128.

What is the difference between 0100 and 0200 messages?

0100 is an authorisation request (funds held, settled later); 0200 is a financial request that moves money immediately, typical for ATM withdrawals.

What does response code 00 mean?

Approved. Other common codes include 05 (do not honour), 51 (insufficient funds) and 55 (incorrect PIN).

What is field 55 in ISO 8583?

The ICC data field, carrying EMV chip data such as the cryptogram for the transaction.

Which ISO 8583 version is used most?

The 1987 version (MTIs starting with 0) remains the most widely implemented, usually adapted by each network.

What is an 0800 message?

A network management request, used for sign-on, sign-off, echo tests and key exchange.

Is ISO 8583 being replaced by ISO 20022?

ISO 20022 is spreading across payment systems, but ISO 8583 is still dominant for card authorisations.

How do I parse ISO 8583 messages?

Use the specification for your network and a tested library such as jPOS, and validate against sample messages and simulators.

Final thoughts

ISO 8583 comes down to three parts: an MTI that names the message, a bitmap that lists the fields, and the data elements that carry the details. Learn to read those, keep your network’s specification open, and the long strings of digits behind every card payment become easy to follow.

Sources: ISO 8583 financial transaction card originated messages, interchange message specifications (1987, 1993 and 2003 editions); published card-network and processor message specifications; the jPOS open-source project documentation; ISO 4217 currency codes. Images: Wikimedia Commons, credited in each caption.