NACHA ACH File Viewer
Operator: Abdulla Al Fahad. How tools are built and checked
An ACH file is a stack of 94-character lines with no separators, and almost everything that can go wrong with one is arithmetic: a control total that does not equal the sum of its entries, an entry hash miscounted by one routing number, a file that is not padded to a multiple of ten lines. Here the file is laid out as batches and entries, and every total the control records state is recomputed.
Each line is read by its record type: 1 file header, 5 batch header, 6 entry detail, 7 addenda, 8 batch control and 9 file control, with lines of nines as padding. A file saved without line breaks, as one long string of whole 94-character records, is split for you.
Account numbers and identification numbers are masked on screen and in the CSV unless you turn that off, and so is the account data that travels in addenda records.
Key features
- File and batch headers with service class, standard entry class (PPD, CCD, CTX, WEB, TEL, IAT and fourteen more), company, effective date and originating DFI
- Entries with transaction code names, routing number with its check digit tested, amount, name, identification, addenda and trace number; return (99) and notification-of-change (98) addenda show the reason or change code with its meaning
- Ten control comparisons for a one-batch file: entry and addenda count, entry hash, total debits and total credits for the batch and the file, the batch and block counts, each shown as stated against computed
- Findings by line: record length, record type order, date formats, trace numbers that do not start with the batch's originating DFI or do not ascend, debits in a credits-only batch, addenda indicator mismatches
- A trace number check: each must be 15 digits, start with the batch's originating DFI and ascend within the batch
- Entries CSV and findings CSV, with account numbers, identification numbers and the account data in notification-of-change and remittance addenda masked by default
What the records contain and what is recomputed
The file header (type 1) holds the immediate destination and origin, each a blank plus a nine-digit routing number, the creation date and time, a file ID modifier, record size 094, blocking factor 10 and format code 1. A batch header (5) holds the service class (200 mixed, 220 credits only, 225 debits only), the company name and identification, the three-letter SEC code, the entry description, the effective date and the originating DFI and batch number.
An entry detail (6) holds the transaction code, the first eight digits of the receiving routing number, a check digit, the account number, the amount in cents, an identification number, the receiver's name, an addenda indicator and a 15-digit trace number. For CTX the name field is shortened to make room for a count of addenda records, and IAT entries use their own positions for the number of addenda and the foreign account number; IAT addenda types 10 to 18 are named but not unpacked. NACHA is the file a company sends to its bank to originate payments; the BAI2 balance and transaction reports a bank sends back are a different format.
Account numbers can sit outside the entry's account field. A notification of change (addenda 98) carries the corrected data in positions 36 to 64: for C01 the whole field is the new account number, for C03 and C07 the account follows the nine-digit routing number, and for C06 it is the first 17 characters, before the new transaction code. A CTX remittance is an X12 820 document cut into 80-character addenda records, and its BPR segment holds the originating account in element 09 and the receiving account in element 15. With masking on, the page hides the account part of a change code's data (keeping the last four digits, as in the account column), blanks BPR elements 09 and 15, and hides any run of six or more digits in addenda text, apart from a valid CCYYMMDD date. Because an account number can straddle two 80-character records, the remittance records of an entry are masked as one text.
The batch control (8) repeats the service class, originating DFI and batch number and states the entry and addenda count, the entry hash and the debit and credit totals. The file control (9) adds the number of batches, the block count and file-wide totals.
How it works
The routing number check uses the ABA weights 3, 7, 1 across the nine digits, whose weighted sum must be a multiple of ten. For the file header it is applied to a destination written as a blank plus nine digits.
The entry hash is the sum of the eight-digit receiving DFI identifications of every entry detail record, keeping the rightmost ten digits; the file hash adds up the entry hashes of the batches. Totals are summed in cents as integers, debits and credits by transaction code, so a 0.05 difference cannot hide in rounding.
The entry and addenda count is the number of type 6 and type 7 records in the batch. The block count is the number of records divided by ten, rounded up, and the file must hold exactly that many tens of lines, the last ones being padding of 94 nines.
Transaction codes ending in 5 to 9 are debits and those ending in 1 to 4 are credits; prenote and zero-dollar codes should carry a zero amount.
When this helps
- A payroll clerk gets a bank rejection saying the file hash is wrong, opens the file here, and sees the batch control hash differs from the sum of the entries after one employee's routing number was edited by hand.
- A treasury analyst exports a 3,000-entry vendor payment file to CSV with accounts masked and shares it with the auditor without exposing full account numbers.
- A returns clerk opens a COR file in which a C01 notification of change gives the corrected account 98765432101234: with masking on, the screen and the CSV show **********1234 instead, so the file can be forwarded to the originator's help desk.
Opening a file
- Drop an ACH file onto the page or paste its records, or press Example.
- Read the totals panel: it says how many control totals match and lists the ones that do not.
- Open the batches to read entries and addenda; routing numbers that fail the check digit are marked.
- Check the findings list for the line numbers to fix.
- Switch masking off only if you need the full values for a reconciliation.
- Download the entries CSV (masked) or the findings CSV.
Example
An invented payroll batch for Meridian Dairy, in its correct and its broken copy
One PPD batch with 4 entries and 1 addenda record: three credits of 1,842.50, 2,120.75 and 1,560.00 and a debit of 120.00, written to 10 records with 1 line of padding. In the broken copy the second credit is raised by 5.00 and the third entry's routing check digit is wrong.Control totals and findings
The correct file shows all 10 control totals matching: 5 entries and addenda, entry hash 0048400029, debits 120.00, credits 5,523.25, 1 batch, 1 block. The broken copy shows 2 of 10 not matching, because the control records say credits of 5,523.25 and the entries give 5,528.25, and an error that routing number 321000010 fails its check digit (expected 9, found 0).Tips for best results
- Leave the masking on when you share a screenshot or a CSV; masking keeps the first and last characters of an identification and the last four of an account.
- A file that fails only the padding check was likely truncated or edited after it was generated; the finding names the line where the file control sits.
- Sort out the first control mismatch before the later ones: a wrong count or hash in one batch often explains the file-level mismatch too.
Limits
The checks cover file format and arithmetic. They do not know whether an account exists, whether a routing number is active, or the cut-off and risk rules your bank applies.
Settlement dates and the company identification are read as written; the page does not validate a company identification against any registry.
Common errors and how to fix them
- Record length 96 characters; every record is exactly 94
- Something added characters to the line, often a tab or an editor adding spaces. Regenerate or repair the file; the page reads the first 94 characters and reports the rest.
- A short line is padded for reading
- A text editor stripped trailing spaces. Restore the spaces or regenerate the file; the bank expects full 94-character lines.
Best practices
- Compare the entry hash first when a bank queries a file: it is the control that changes when any routing number is mistyped, even one digit.
Frequently asked questions
Does a file need an offset entry to balance?
The page does not require one. A batch of service class 220 holds credits only and is read as such; a balanced file adds a debit to the originator's own account for the credits' total, and the page treats that entry like any other debit, so its amount appears in the debit total. Whether your bank wants the offset inside the file or books it itself is a bank rule.
Does it check Same Day ACH?
No. The effective entry date is checked only as a real YYMMDD date and shown in ISO form. Whether an entry qualifies for same-day settlement, such as the ODFI's cut-off times or the 1 million dollar per-payment limit that has applied since March 2022, is for your bank to decide.
Why are some digits masked in the addenda text of a remittance?
A CTX remittance is an X12 820 document, and its BPR segment carries both parties' account numbers inside the addenda records. With account masking on, those elements and any run of six or more digits are hidden, so an invoice number of six digits is hidden too, while a date such as 20240315 is left readable.