Validate a NACHA (ACH) file
Check an ACH file's structure, counts, entry hash and totals before you send it to your bank, or after the bank rejected it. Each finding names the line, the field and what was expected against what was found.
From an e-mail: save the attachment to Files first, then choose it here.
Nothing is uploaded
The file is read in your browser and the result is made on your device. No upload, no account, no cookie, no analytics script.
To check, switch off Wi-Fi once the page has loaded; the tool keeps working. The page's security policy blocks most background requests, but it is not a complete guarantee by itself (WebRTC, for example, is not covered). Privacy page
What is checked
- File shape: 94-character records, printable ASCII, record types in the order header, batches, control, padding with 9s to a multiple of ten records.
- File and batch headers (1, 5): priority code, destination and origin, dates, record size, blocking factor, format code; service class, company, SEC code, effective date, originating DFI, ascending batch numbers.
- Entries and addenda (6, 7): transaction code against the batch's service class, routing number and check digit, amount, ascending trace numbers, addenda indicator, type and sequence.
- Controls (8, 9): entry and addenda count, entry hash, debit and credit totals, batch and block count.
A summary above the findings shows each batch with its company, SEC code, date, entry count and totals, and the totals and hash worked out from the entries.
To see every entry as a table or spreadsheet, use NACHA file to Excel or CSV. It only reads the file.
What is not checked
Passing does not mean your bank will take the file. The validator cannot know your bank's own rules (company ID, offsetting entry, file naming, cut-off times), whether a routing number belongs to a real bank or an account exists, or whether the effective date is a banking day. IAT batches are checked for structure, counts, hash, totals and the seven mandatory addenda records, not for the contents of those records. ADV batches are recognised and their totals are not checked. Field rules that apply to a single SEC code are not all covered.
Record types
Every record, field by field, with a sample file read line by line: NACHA file format.
| Type | Record | What it holds |
|---|---|---|
| 1 | File Header | Sender, receiver, creation date. One per file. |
| 5 | Batch Header | Company, SEC code, settlement date. |
| 6 | Entry Detail | One payment: receiving bank, account, amount, name, trace number. |
| 7 | Addenda | Optional remittance information for the entry above it. |
| 8 | Batch Control | Count, hash and totals of the batch. |
| 9 | File Control | Count, hash and totals of the file, then lines of 9s as padding. |
Entry Detail (6) of PPD, CCD, WEB and TEL:
| Positions | Field | Content |
|---|---|---|
| 1 | Record type | 6 |
| 2-3 | Transaction code | 22 checking credit, 27 checking debit, 32 savings credit, 37 savings debit; 23, 28, 33, 38 are prenotes |
| 4-11 | Receiving DFI identification | First eight digits of the routing number |
| 12 | Check digit | Ninth digit of the routing number |
| 13-29 | DFI account number | Left-justified, space-filled |
| 30-39 | Amount | In cents, zero-filled, no decimal point |
| 40-54 | Identification number | Your reference for the receiver |
| 55-76 | Name | Receiver's name |
| 77-78 | Discretionary data | Payment type code for WEB and TEL |
| 79 | Addenda record indicator | 1 if an addenda record follows, otherwise 0 |
| 80-94 | Trace number | Your bank's eight-digit ID plus a seven-digit sequence |
SEC codes recognised: ACK (ACH Payment Acknowledgment), ADV (Automated Accounting Advice), ARC (Accounts Receivable Entry), ATX (Financial EDI Acknowledgment), BOC (Back Office Conversion), CCD (Corporate Credit or Debit), CIE (Customer Initiated Entry), COR (Notification of Change), CTX (Corporate Trade Exchange), DNE (Death Notification Entry), ENR (Automated Enrollment Entry), IAT (International ACH Transaction), MTE (Machine Transfer Entry), POP (Point-of-Purchase Entry), POS (Point of Sale Entry), PPD (Prearranged Payment and Deposit), RCK (Re-presented Check Entry), SHR (Shared Network Transaction), TEL (Telephone-Initiated Entry), TRC (Truncated Entry), TRX (Truncated Entries Exchange), WEB (Internet-Initiated/Mobile Entry), XCK (Destroyed Check Entry).
Messages with a page of their own
Each has its own page with the cause, the fix and a sample file:
- The entry hash does not match
- A record is not 94 characters long
- The block count does not match
- The routing number check digit is wrong
- The batch debit or credit total does not match the entries
- The service class code does not allow this transaction code
- The file is not padded with 9s to a multiple of 10 records
The wording of every message is fixed, so you can search for it.
| Message | Kind |
|---|---|
| The file is empty | error |
| This does not look like a NACHA file | error |
| The file starts with a byte-order mark (BOM), invisible bytes that are not part of a NACHA file | error |
| A record is not 94 characters long | error |
| A record contains characters that are not allowed in a NACHA file | error |
| A record starts with an unknown record type code | error |
| Records are out of order | error |
| The file does not start with a File Header record (type 1) | error |
| The file has no File Control record (type 9) | error |
| The priority code is not 01 | warning |
| The immediate destination is not a routing number | error |
| The immediate destination does not pass the routing number check digit test | warning |
| The immediate origin is blank | error |
| The file creation date is not a valid date (YYMMDD) | error |
| The file creation time is not a valid time (HHMM) | warning |
| The file ID modifier is not an upper-case letter A-Z or a digit 0-9 | error |
| The record size field is not 094 | error |
| The blocking factor is not 10 | error |
| The format code is not 1 | error |
| The service class code is not 200, 220 or 225 | error |
| The standard entry class (SEC) code is not recognised | error |
| A mandatory batch header field is blank | error |
| The effective entry date is not a valid date (YYMMDD) | error |
| The originator status code is not 0, 1 or 2 | warning |
| The originating DFI identification is not 8 digits | error |
| Batch numbers are not in ascending order | error |
| The transaction code is not valid | error |
| The service class code does not allow this transaction code | error |
| The receiving DFI routing number is not numeric | error |
| The routing number check digit is wrong | error |
| The DFI account number is blank | error |
| The amount is not numeric | error |
| A prenotification or zero-dollar entry has a non-zero amount | error |
| A live entry has an amount of zero | warning |
| The receiver name is blank | warning |
| The addenda record indicator does not match the addenda records that follow | error |
| The addenda type code is not valid for this SEC code | error |
| Addenda sequence numbers are not consecutive starting at 1 | error |
| The addenda's entry detail sequence number does not match the entry's trace number | error |
| The entry has more addenda records than its SEC code allows | error |
| The number of addenda records stated in the entry does not match | error |
| An IAT entry is missing one of its seven mandatory addenda records (types 10 to 16) | error |
| The trace number does not begin with the batch's originating DFI identification | warning |
| Trace numbers are not in ascending order within the batch | error |
| The trace number is not 15 digits | error |
| A batch contains no entries | error |
| The service class code in the batch control does not match the batch header | error |
| The batch entry/addenda count does not match | error |
| The entry hash does not match | error |
| The batch debit or credit total does not match the entries | error |
| The company identification in the batch control does not match the batch header | error |
| The originating DFI identification in the batch control does not match the batch header | error |
| The batch number in the batch control does not match the batch header | error |
| The batch count in the file control does not match | error |
| The block count does not match | error |
| The file entry/addenda count does not match | error |
| The file debit or credit total does not match the batches | error |
| A numeric field contains something other than digits | error |
| The file is not padded with 9s to a multiple of 10 records | warning |
| A line of 94 nines stands before the File Control record | warning |
| The file has more 9-padding than is needed to fill its last block | warning |
| The file ends with a Ctrl-Z character (the DOS end-of-file mark), which is not part of a NACHA file | warning |
| There is data after the File Control record that is not 9-padding | error |
| A field that must be upper case contains lower-case letters | error |
| The file contains no batches | note |
| IAT batches: structure, counts, entry hash and totals are checked; the contents of the IAT addenda records are not | note |
| ADV (automated accounting advice) batches use different control records; their totals are not checked | note |
| The settlement date is filled in, which normally means the file came from an ACH Operator or bank rather than an originator | note |
| The file has no line breaks; it was read as consecutive 94-character records | note |
The validator only reads. A NACHA file moves money, so a wrong count or total is corrected in the system that produced the file, not here.
Sample files
Synthetic data: the routing numbers begin with 99 and were invented for these files.
- nacha-sample-valid.ach - a payroll (PPD) batch and a vendor (CCD) batch with one addenda record
- nacha-error-entry-hash.ach - shows "The entry hash does not match"
- nacha-error-record-length.ach - shows "A record is not 94 characters long"
- nacha-error-block-count.ach - shows "The block count does not match"
- nacha-error-routing-check-digit.ach - shows "The routing number check digit is wrong"
- nacha-error-batch-totals.ach - shows "The batch debit or credit total does not match the entries"
- nacha-error-service-class-mismatch.ach - shows "The service class code does not allow this transaction code"
- nacha-warning-not-padded.ach - shows "The file is not padded with 9s to a multiple of 10 records"
Written from Nacha's ACH developer guide, a NEACH course and moov-io/ach, not from the Nacha Operating Rules.