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.

Your file never leaves your browser.How to check that
No file at hand?

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

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.

TypeRecordWhat it holds
1File HeaderSender, receiver, creation date. One per file.
5Batch HeaderCompany, SEC code, settlement date.
6Entry DetailOne payment: receiving bank, account, amount, name, trace number.
7AddendaOptional remittance information for the entry above it.
8Batch ControlCount, hash and totals of the batch.
9File ControlCount, hash and totals of the file, then lines of 9s as padding.

Entry Detail (6) of PPD, CCD, WEB and TEL:

PositionsFieldContent
1Record type6
2-3Transaction code22 checking credit, 27 checking debit, 32 savings credit, 37 savings debit; 23, 28, 33, 38 are prenotes
4-11Receiving DFI identificationFirst eight digits of the routing number
12Check digitNinth digit of the routing number
13-29DFI account numberLeft-justified, space-filled
30-39AmountIn cents, zero-filled, no decimal point
40-54Identification numberYour reference for the receiver
55-76NameReceiver's name
77-78Discretionary dataPayment type code for WEB and TEL
79Addenda record indicator1 if an addenda record follows, otherwise 0
80-94Trace numberYour 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 wording of every message is fixed, so you can search for it.

MessageKind
The file is emptyerror
This does not look like a NACHA fileerror
The file starts with a byte-order mark (BOM), invisible bytes that are not part of a NACHA fileerror
A record is not 94 characters longerror
A record contains characters that are not allowed in a NACHA fileerror
A record starts with an unknown record type codeerror
Records are out of ordererror
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 01warning
The immediate destination is not a routing numbererror
The immediate destination does not pass the routing number check digit testwarning
The immediate origin is blankerror
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-9error
The record size field is not 094error
The blocking factor is not 10error
The format code is not 1error
The service class code is not 200, 220 or 225error
The standard entry class (SEC) code is not recognisederror
A mandatory batch header field is blankerror
The effective entry date is not a valid date (YYMMDD)error
The originator status code is not 0, 1 or 2warning
The originating DFI identification is not 8 digitserror
Batch numbers are not in ascending ordererror
The transaction code is not validerror
The service class code does not allow this transaction codeerror
The receiving DFI routing number is not numericerror
The routing number check digit is wrongerror
The DFI account number is blankerror
The amount is not numericerror
A prenotification or zero-dollar entry has a non-zero amounterror
A live entry has an amount of zerowarning
The receiver name is blankwarning
The addenda record indicator does not match the addenda records that followerror
The addenda type code is not valid for this SEC codeerror
Addenda sequence numbers are not consecutive starting at 1error
The addenda's entry detail sequence number does not match the entry's trace numbererror
The entry has more addenda records than its SEC code allowserror
The number of addenda records stated in the entry does not matcherror
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 identificationwarning
Trace numbers are not in ascending order within the batcherror
The trace number is not 15 digitserror
A batch contains no entrieserror
The service class code in the batch control does not match the batch headererror
The batch entry/addenda count does not matcherror
The entry hash does not matcherror
The batch debit or credit total does not match the entrieserror
The company identification in the batch control does not match the batch headererror
The originating DFI identification in the batch control does not match the batch headererror
The batch number in the batch control does not match the batch headererror
The batch count in the file control does not matcherror
The block count does not matcherror
The file entry/addenda count does not matcherror
The file debit or credit total does not match the batcheserror
A numeric field contains something other than digitserror
The file is not padded with 9s to a multiple of 10 recordswarning
A line of 94 nines stands before the File Control recordwarning
The file has more 9-padding than is needed to fill its last blockwarning
The file ends with a Ctrl-Z character (the DOS end-of-file mark), which is not part of a NACHA filewarning
There is data after the File Control record that is not 9-paddingerror
A field that must be upper case contains lower-case letterserror
The file contains no batchesnote
IAT batches: structure, counts, entry hash and totals are checked; the contents of the IAT addenda records are notnote
ADV (automated accounting advice) batches use different control records; their totals are not checkednote
The settlement date is filled in, which normally means the file came from an ACH Operator or bank rather than an originatornote
The file has no line breaks; it was read as consecutive 94-character recordsnote

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.

Written from Nacha's ACH developer guide, a NEACH course and moov-io/ach, not from the Nacha Operating Rules.