Agvel

ISO 8583. Synthetic card-payment messages in the 1987 format, in ASCII and in binary, with broken ones and a benchmark scored by rule. Every message is checked by two independent libraries.

This dataset is private for now. It is described here only.

How it was built

At a glance

60,000messages
2encodings
17,000broken messages
8,000benchmark tasks
2libraries cross-checking

What’s in it. ISO 8583 is the message format behind most card payments. This dataset holds 60,000 synthetic messages across eleven scenarios and fourteen message types, each stored as parsed fields and as the exact bytes, in ASCII and in binary.

idstringThe message’s permanent id, shared by its two encodings.
pair_idstringLinks a request to its response.
scenariostringOne of eleven scenarios, from an authorization purchase to a network sign-on.
rolestringRequest, response, advice or network.
mtistringThe message type indicator, such as 0100.
encodingstringascii or binary.
rawstringASCII records: the whole message as sent, as text.
raw_hexstringBinary records: the bytes of the message, as uppercase hex.
fieldsobjectField number to value. The same in both encodings.
present_fieldslistThe field numbers present, in order.
bitmap_hexstringThe primary bitmap, plus the secondary one when present.
seedintegerReproduces the message.
validbooleanTrue for every message in the main set.

Files and splits

Messages60,000, in each encoding
Broken messages, ASCII13,000
Broken messages, binary4,000
Benchmark tasks8,000
Train messages48,062
Validation messages6,068
Test messages5,870
FormatsParquet, JSONL

A request and its response always land in the same split, and so do the two encodings of a message.

Broken messages. Each comes from a valid message with exactly one defect. It carries the same fields as a valid record, plus four more. Syntax defects fail to parse; semantic defects still parse, so only a reader that knows the rules catches them.

error_classstringSyntax, or semantic.
error_typestringThe one defect, such as luhn_fail or truncated.
error_fieldstringThe field the defect sits in.
source_idstringThe id of the valid message it was made from.

Benchmark tasks. 8,000 tasks in eight types, 500 of each in each of validation and test, each with one right answer and a scorer that ships with them.

parseA raw message. Expected: The message type and every field.
packA message type and fields. Expected: The raw message.
bitmap_decodeA bitmap in hex. Expected: The field numbers present.
mti_explainA message type. Expected: Version, class, function and origin.
field_extractA raw message and a field number. Expected: That field’s value.
parse_binaryA binary message as hex. Expected: The message type and every field.
transcodeAn ASCII message. Expected: The same message in binary, as hex.
validateA message in either encoding, valid or broken. Expected: Valid or not, and the defect.

How it was built. The data is synthetic, made only from open-source libraries and public facts. No card number in it belongs to anyone. A message ships only if every check passes, in each encoding.

  1. Built on one library, rebuilt by handA generator on moov-io/iso8583 writes each message. It must match a plain byte-by-byte build, read back, and pack again unchanged.
  2. Read by a second librarypyiso8583 must read the same fields and write the same bytes.
  3. Content and a third parserA validator checks every value, such as check digits, dates, currency codes and where the MAC sits. A small parser with no library behind it must agree.
  4. Fuzzed against both200,000 damaged messages per encoding went to both libraries, and the places they disagree are recorded, not hidden.

The numbers

Messages passing all six checks60,000 of 60,000
Broken messages behaving as labelled17,000 of 17,000
Go fuzzing runs, ASCII spec10,550,803
Go fuzzing runs, binary spec9,832,589
Damaged messages, per encoding200,000

Counts are for v0.2.0. Generation is seeded, so two runs give identical files.

What it doesn’t claim. The claim is narrow on purpose: every message is correct for the declared spec, and nothing more.

Correct for each declared specThe two specs are iso8583-1987-ascii-v1 and iso8583-1987-binary-v1. Each message is 100% correct for its spec.
Not any network’s variantIt makes no claim about a payment network’s own version of the format, or about its field rules.
Not real trafficEvery message is synthetic. Which fields a scenario uses is a synthetic profile, and the 1987 version comes first.

Licence and source

Versionv0.2.0
Built2 Dec 2026
Planned data licenceCC BY 4.0
Planned code licenceApache 2.0
AvailabilityPrivate for now

There is nothing to download yet. This page will link to the release when there is one.

More from Agvel