Reading a file format you did not design
A domestic rail may carry no message at all. It carries a file you read by counting: characters, or separators. Four shapes, one skeleton, and one rule about who publishes what.
L1–L4 are part of the Pro pass
L0 Explain simply
Arjun has to load a from a Brazilian supplier. He opens it. Every line is exactly 240 characters long. There are no tags, no field names, no commas, no quotes. Just characters.
He has met before, so he expects to find a label. In an ISO 20022 message the amount sits inside an element that says IntrBkSttlmAmt. Read the message and you can see what each part is. This file tells him nothing.
That is not a broken file. It is a whole family of formats, and the domestic rails of market after market still run on them. The rule is simple and strange: a field is identified by where it sits, not by what it is called. Characters 120 to 134 are the amount. Not because the file says so. Because a separate document says so.
So the file cannot be read on its own. You need the layout too, and the right version of it.
This topic teaches you how to read one anyway. This lesson groups common payment formats into four shapes, and file formats nearly all share one skeleton. Once you can see the skeleton, an unfamiliar file stops being a wall of characters. (SYNTHETIC / TRAINING ONLY — every person and firm named in this topic is invented.)
PICTURE IT
A corridor of identical doors with no labels and a plan at the front desk
Picture a long hotel corridor. Every door looks the same and none has a number or a name. You are told to collect the envelope behind the door at a certain distance from the entrance. You cannot find it by looking at the doors. You need the floor plan, and the plan is kept at the front desk, not on the corridor wall. A sign opens each stretch of doors and says what kind they are. At the end of each wing, a note gives a count of the rooms. Some envelopes are padded with blank paper or zeros so that every envelope is the same size.
The plan has an edition. If the hotel adds a room in the middle, every door after it moves along by one place. You can still walk the corridor and open doors, and each one holds something that looks like an envelope. Only the right edition of the plan tells you that you opened the wrong door.
THE REAL JOB A format lets two organisations exchange many payments in a compact text file, on the agreement that both hold the same layout document.
- What shape is the format
- Which layout document, and which version
- Where is the record type code, found by position from the layout
- Who publishes the layout document
HOW THE PICTURE MAPS
| In the picture | In the payment |
|---|---|
| The corridor | The file, one record after another |
| A door at a set distance | A field, found by its character range and not by a name |
| The plan kept at the front desk | The layout document, published separately from the file |
| The edition of the plan | The layout version, written in the file header |
| A sign opening each stretch of doors, saying its kind | The record type code, a positional field saying what kind of line a record is |
| The count of rooms written at the end of each wing | The batch and file trailers, with a count and a sum to check against |
| An envelope with leading blanks or zeros | Filler, which keeps every field at its full width and is part of the data |
| The office that issues the plan | The layout publisher, who decides how much you can know about the file |
WHERE THIS PICTURE STOPS
- A hotel plan is drawn once and checked by people. A layout document may be read by a program that never questions it, so a wrong edition produces wrong values and no error message.
- The picture shows where a field sits but not the implied decimal point. The layout says where the point belongs. A money field holds no point character, so a valid file can be read as a far larger whole number.
- A corridor has one shape. Real formats come in four shapes: positional, delimited, tag-value and self-describing, and a real format can be more than one of them. This frame is this site's teaching device and not a standard.
- Not every file has a batch layer. The header, batch, detail and trailer skeleton is the common case and not a rule.
HOOK
Position finds the field; the plan gives its meaning.
REMEMBER IT THIS WAY
A sequence: the real steps, in order.
Ask in this order: shape, layout, type, publisher. Shape first, then the layout and its version, then the that the layout locates, then who publishes it.
| In the trick | What it stands for |
|---|---|
| shape | positional, delimited, tag-value or self-describing, each read a different way |
| layout | the layout document and its version, which the file itself does not contain |
| type | the record type code, found by its position in the layout, which says which kind of line a record is |
| publisher | who releases the layout, which tells you how much you can know |
This order is a reading aid and not a standard, and when a format mixes shapes the first question has more than one answer.
TELL A FRIEND
A positional is characters in fixed places, so it means nothing without the exact layout document and edition it was written to. Read it with the wrong edition and the values can come out wrong without any error.
OFTEN MIXED UP WITH Reading an ISO 20022 message definition. A self-describing schema message names every field and publishes a schema that says what may appear where, so the message explains itself. A explains nothing: its fields are found by position and the meaning lives in a separate layout document.
PRACTISE AND KEEP
IMPLEMENTATION RESOURCES
37 RESOURCES
EVIDENCE AT ARM'S REACH
Apply the base message definition first, then the scheme or infrastructure profile that governs this topic.
An XSD checks XML structure. A usage guideline adds profile rules, conditional fields, code restrictions, and business controls. XSD-valid does not mean scheme-compliant.
ACH — a file header, a batch header and one entry detail — raw POSITIONAL
Bacs Standard 18 — synthetic HSBC-scoped multi-processing data records — raw POSITIONAL
CNAB400 — one detail record from a Brazilian collection file — raw POSITIONAL
BR Code — one Pix Copia e Cola string, single-use, addressed by a key — raw TLV
ACB EFT — two payments and the contra that balances them — raw POSITIONAL
Bacs Standard 18 — synthetic HSBC-scoped submission frame — raw POSITIONAL
Zengin Data — two company-to-bank transfer records — raw POSITIONAL
Zengin frame — the header, the trailer and the end record around two transfers — raw POSITIONAL
Image cash letter — a file, a cash letter, a bundle, one cheque and its image, with all three controls — raw POSITIONAL
ABA — a whole Direct Entry file, from the Descriptive record to the totals — raw POSITIONAL
CNAB240 Segmento B — two Pix payments, addressed two ways — raw POSITIONAL
AFT Record C — a header, one record of two payments, and the trailer — raw POSITIONAL
BgMax — synthetic Receivables report, one service profile — raw POSITIONAL
PKO-profile Elixir-O illustration — ordinary and split transfer — raw DELIMITED
BAI2 — one American account, reported back the next morning — raw DELIMITED
ISO 8583 0100 — a card authorisation, element by element — raw ISO8583
UPI intent link — a payment instruction anyone can read — raw URL
CNAB240 Seg A field matrix
ACH Record 6 field matrix
Bacs Std 18 field matrix
CNAB400 Detalhe field matrix
Zengin データ field matrix
ABA Record 1 field matrix
CNAB240 Seg B (Pix) field matrix
AFT Record C field matrix
ISO 8583 0100 field matrix
upi://pay field matrix
ACH 306 field matrix
BR Code field matrix
Bankserv ACB field matrix
Bacs Std 18 frame field matrix
Zengin frame field matrix
BgMax field matrix
Elixir-0 field matrix
X9.100-187 ICL field matrix
BAI2 field matrix
Sources for this topic — 14 sources
- Scheme-specific rule
Layout Padrão CNAB240 ↗ — FEBRABAN (Federação Brasileira de Bancos) · the CNAB240 layout FEBRABAN publishes and what it governs: the record kinds a payment file carries and the batch structure around them. No character position on this page is quoted from it — the publisher's host could not be fetched (a reachability gap, not a statement about the publisher).
Published openly as a versioned PDF, and this entry does not claim to have opened it: febraban.org.br could not be fetched, so verification relied on two independent web-search excerpts.
The version and date carried here — V 10 11, 21/08/2023 — are read off the published file name rather than from the document itself. And search results list a second file carrying the same version string under a different date, so treat both as the publisher's naming and not as the layout's own declaration.
FEBRABAN revises the layout, and a revision moves field positions, so the version in force between a bank and its customer is what governs. Individual banks publish their own manuals derived from it and are free to use the reserved areas, which is why two banks' CNAB240 files can differ while both conform.
- Scheme-specific rule
ACH Network and Nacha Operating Rules ↗ — Nacha · the ACH Network and what the Operating Rules govern — who takes part, what the Rules cover and who enforces them. The Rules are a paid publication rather than an openly published document, so no record length, character position or code value on this page is quoted from them.
Nacha writes and enforces the Operating Rules but does not itself process ACH payments. The Rules themselves are a paid publication and cannot be read. So this entry supports the ACH Network's identity, scope and governance — who takes part, what the Rules cover and who enforces them — rather than the wording, character position or code value of any individual field. Where this site shows a record length, a record type code or a Standard Entry Class value, the open implementation that was read for it is cited beside this entry.
- Market practice
moov-io/ach — a reader and writer for the Nacha ACH file format ↗ — The Moov Authors (open source, Apache 2.0) · file.go and entryDetail.go — the 94-character record length and the record type codes, read from an open implementation of the format
An implementation, not the standard: Nacha's Operating Rules are the authority, and where a scheme rule and an implementation disagree the rule wins. Cited because it is readable — a reader can open the parser and count the same characters this site counts.
- Market practice
CNAB Layouts — FEBRABAN file layouts transcribed to YAML ↗ — Glauber Portella (open source) · position ranges and picture clauses for the CNAB240 payments layout, including the record-type field at position 8 and the seven values of its domain
A community transcription, not the standard: the payments (pagamentos) layout it carries declares itself version 09.1, which is older than the version FEBRABAN currently publishes.
It is cited for the shape of the record and for positions that are stable across versions: the 8-character common prefix of bank code, batch number and record type, and the segment letter. It is never cited as the authority on a current field position.
Positions 9 to 13 are not part of that prefix: on a detail record they carry the record's sequence number within the batch, and on a file header the same characters are a FEBRABAN-reserved filler. Read FEBRABAN's own PDF, at the version your counterparty sends, before building.
- Official requirement
Swift Standards MT (annual standards releases) ↗ — Swift · SWIFT MT as a tag-value format — the field tags, such as 32A for the amount, defined by the annual standards releases
Full field-level specifications live in the Swift Knowledge Centre User Handbook behind a swift.com login. Coexistence for in-scope FI-to-FI payment instructions ended on 22 November 2025, but treatment differs by MT: some instructions are NAKed and selected messages can enter temporary, chargeable contingency conversion. Reporting, initiation, investigations and correspondence follow separate roadmaps.
Re-checked on 2026-10-04 by web search for the schedule of Standards Release 2026. Only search excerpts of the Standards Releases page were seen; the page was not opened. They said the deferred part of the release, which holds MT messages outside category 1, ISO 20022 securities and funds messages, tracker messages and exceptions and investigations messages, now has a date of 12 June 2027. They said the first target was the first quarter of 2027, and that the later date follows industry feedback about other change work, including the European move to T+1 settlement. An audit note in docs/research dated 29 September 2026 recorded the same date from the same page.
Re-checked 12 November 2026 via Swift Standards Releases schedule: SR2025 remains the in-force annual MT release pending the deferred SR2026 package.
- Official requirement
ISO 8583:2023 — Financial-transaction-card-originated messages ↗ — International Organization for Standardization (ISO) · ISO 8583 as a numbered-data-element card message — the message type indicator, the bitmap and the data elements
Verification relied on web-search excerpts of the publisher's own catalogue page. iso.org refused a direct fetch, which is an access limit rather than a finding about the catalogue.
Under the 2023 edition the document itself spells out message structure and format. Message, field and code-value tables are licensed electronic inserts at standards.iso.org/iso/8583 under a customer licence agreement. That is a different access model from treating the standard as a single paid PDF. This entry supports the standard's identity, scope and structure rather than the wording of any individual data element.
- Scheme-specific rule
Unified Payments Interface (UPI) ↗ — National Payments Corporation of India (NPCI) · UPI as an NPCI-operated scheme, and what NPCI publishes about it openly
NPCI is an RBI-regulated entity. UPI is built over IMPS and uses a VPA rather than raw account details.
- Scheme-specific rule
Bacs Standard 18 file format ↗ — Pay.UK / Bacs Payment Schemes Limited · Bacs Standard 18 as the positional file submitted into Bacs, named here as one of the fixed-width domestic formats
A positional layout rather than a message standard: meaning is carried by where a character sits in each record.
The publication itself is reached through the scheme and its accredited software suppliers and is not reachable. So the transaction-record positions this site publishes are taken from two independent open implementations that agree position for position, cited beside it.
The label records that wrap the data — VOL1, HDR1, HDR2, UHL1, EOF1, EOF2, UTL1 — are NOT published here: the only open description of them is self-declared as inferred from validator behaviour, and they vary by bank and service user number.
- Scheme-specific rule
Zengin System ↗ — Japanese Banks Payment Clearing Network (Zengin-Net) · the Zengin System — Japan's interbank clearing system for domestic retail credit transfers, named here as one of the file-based domestic rails
Zengin clears retail credit transfers and nets positions settled at the Bank of Japan; large-value items are diverted to RTGS in BOJ-NET.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
What this simplifies: The four-shapes frame is this site's teaching device, not a standard, and real formats mix them — an ISO 8583 message is tag-value at the data-element level and fixed-width inside several of those elements. The header/batch/detail/trailer skeleton is the common case rather than a rule: some file formats carry no batch layer at all.
Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.
- Scheme-specific rule
National Automated Clearing House (NACH) ↗ — National Payments Corporation of India (NPCI) · NACH as NPCI's bulk clearing rail, named here as one of the file-based domestic rails
NACH is Indias bulk/recurring batch system, analogous to Bacs (UK) and ACH (US).
- Scheme-specific rule
NACH circulars on the NACH Debit 156 to ACH Debit 306 file-format migration — Circular No. 219 (2016-17), No. 267 (2017-18) and No. 26 (2018-19) ↗ — National Payments Corporation of India (NPCI) · circular titles naming the NACH Debit 156 and ACH Debit 306 file formats
Search excerpts only, page not opened. The two record lengths were read from the operator's own circular titles as they appeared in search results, and corroborated across three separate circulars naming the same two numbers. Strong, because a filename is hard to scramble, and still not a page read. These circulars name the record lengths and do not carry the field layout; the layout negative is recorded as india-nach-file-layout with verdict member-only.
- Market practice
BBPS API — Bharat Bill Payment System API Integration Document, version 1.4 ↗ — BillAvenue (a Bharat Connect / BBPS operating unit) · the rule that every amount in a Bharat Connect request or response is in paise
An operating unit restating the scheme's specification, not the scheme itself; the scheme's own BBPS API Specifications v14.1 sits on bharat-connect.com and is likewise 403 here. Search excerpts only, page not opened, so this was read as search summarisation. It supports the single sentence the site takes from it — that every amount in a Bharat Connect request or response is expressed in paise. No element name, length, cardinality or code table is asserted from it.
- Market practiceVersion16,8pages; publicationdate not seen
PKO iPKO biznes ELIXIR-O bank input structure — Version16 ↗ — PKO Bank Polski · the Elixir-0 record as Polish banks publish it to their corporate customers: one payment order per line, fields separated by a comma, text fields wrapped in quotation marks. Cited for the delimited shape and for nothing else on this page; no document behind it was opened.
Historical search/access notes from 5 August 2026 follow. Verification boundary, and it is the whole of this entry's weight. Every one of these publishers answers a refusal to a fetch — pkobp.pl, mbank.pl, ing.pl, bankmillennium.pl, aliorbank.pl, bosbank.pl, sgb.pl, bgk.pl, citibank.pl and i-bs.pl were each attempted — so no document behind this entry was opened. Everything cited from it comes from web-search summarisation over those documents across eleven searches on the access date. Those searches were run in Polish rather than in English, because a United States search index under-represents Polish publishers badly enough to have hidden the format entirely.
That is weaker than a page-image read and it is cited at that strength: nothing on this site quotes a line from any of these documents. And no field ordinal rests on this entry alone — the order of the sixteen fields comes from three open implementations read in full and is cited to them.
These are also banks' documents rather than the scheme owner's. Where one narrows the format, that is a bank rule: the documents recovered here disagree with each other on how many fields a record has, on which code pages are accepted and on what the last field carries. Say as this bank publishes it, never as Elixir-0 requires.
Follow-up6November2026: actual entire8-page170832-byte PKOv16PDF downloaded and text read; SHA256 ea3a6866d84ce4b0d7ac5f85c07af27c3ad3d47149169e86400f07f130cdcb9d. This resolves earlier no-document-opened statement only for this named bank/version, not every publisher in the old search set. Whole field16is6×35aV; first-line reference16characters. Actual quoted VATcomma allowed, nestedquotes rejected, field5route0/2/7, banklimit5000records. No live bank acceptance or whole private KIRprofile certification.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.