Categories: NACHA File Format
Categories: NACHA File Format
A NACHA file — also called an ACH file — is a standardized, fixed-width text file that banks and businesses use to originate batches of ACH payments* through the ACH Network. Each line is exactly 94 characters long, and the leading digit of every line identifies its record type, from file headers to individual payment entries. Understanding this structure is essential for any organization that originates payroll, vendor payments, or recurring billing through ACH.
NACHA files serve as the instruction set a bank uses to move money electronically. When a business collects payment authorizations from customers or employees, it serializes that data into NACHA-compliant records and submits the file to its Originating Depository Financial Institution (ODFI), which then routes the batches into the broader ACH Network for settlement.
Because the ACH Network processes tens of trillions of dollars annually, file accuracy directly affects settlement timing, compliance exposure, and the likelihood of returns.
Every NACHA file follows a strict record hierarchy. Records are nested in matching header-and-control pairs, similar to opening and closing tags, and each is identified by the first digit of the line.
The file begins with a single File Header Record. It identifies the originating bank’s routing number, a timestamp, and the names of the originating financial institution and company. ODFIs often layer additional formatting requirements onto this record so they can identify which client submitted the file before consolidating it with other originators’ batches for transmission to the ACH Network.
Each batch of transactions opens with a Batch Header Record. This record defines the Standard Entry Class (SEC) Code, the batch description (such as “payroll” or “vendor pmt”), the company identifier, and the effective entry date — the date funds are intended to post to the receiver’s account. Any variation in these fields, such as a different description or effective date, requires its own separate batch.
Entry Detail Records carry the receiver’s account and routing numbers, the transaction amount, and a transaction code indicating whether the entry is a debit or credit to a checking or savings account. A unique trace number is also assigned to each entry, which becomes critical for researching exceptions later. More complex transactions, particularly under formats like CTX, may include Addenda Records that carry additional remittance details.
A Batch Control Record closes out each batch with entry counts, dollar totals, and a hash total used to validate the batch. The File Control Record performs the same function at the file level, summing every batch’s totals and padding the file with rows of 9s until the total line count is evenly divisible by block count (usually ten).
Not every NACHA file serves the same purpose, and the SEC Code in the Batch Header Record determines how a batch is handled downstream.
The effective date determines when a transaction is scheduled to post, and it must align with valid ACH processing days — ACH does not process on weekends or federal holidays. Debiting a receiver before the authorized effective date is a violation of Nacha operating rules, which is why originators typically send pre-notifications at least three business days before a live entry or an account change.
Same Day ACH allows eligible credit and debit entries to settle within the same banking day, provided the transaction is $1,000,000 or less, does not carry an International ACH Transaction (IAT) SEC Code, and is submitted before the ODFI’s same-day processing deadline. This faster settlement option has become central to payroll correction, bill-pay, and time-sensitive B2B disbursements.
Because field length, justification, and character encoding requirements are strict, even minor formatting errors can cause a file to be rejected outright. Alphanumeric fields must be left-justified and padded with spaces, while numeric fields must be right-justified, unsigned, and zero-padded — a level of precision that is difficult to maintain with manual file creation.
Volume adds a second layer of risk: large batches make it harder to catch a single malformed record or a mismatched hash total before submission, and errors caught late can delay settlement or trigger costly returns.
Manually building NACHA files or maintaining custom scripts against Nacha’s lengthy specification manual is resource-intensive and error-prone. Software like ACHgenie automates the serialization of payment data into properly formatted NACHA files, validating field lengths, justification, and hash totals before a file ever reaches the ODFI. This reduces the return rate associated with malformed batches and shortens the time between payment initiation and settlement.
Because Entry Detail Records contain sensitive account and routing information, file-level fraud prevention also matters. ACHgenie’s account verification feature screens receiver details before a batch is generated, helping originators catch invalid accounts prior to submission rather than after a return or dispute occurs. For originators running high-volume Same Day ACH batches, ACHgenie’s monitoring layer flags entries that fall outside standard formatting or dollar-limit rules before the file is transmitted.
What is the difference between a NACHA file and an ACH file?
The terms are used interchangeably. “NACHA file” refers to a file formatted according to Nacha’s operating rules for the ACH Network; “ACH file” is the more general industry term for the same standardized format.
How long is a NACHA file record?
Each line, or record, in a NACHA file is exactly 94 characters, and the total number of lines in a file must be evenly divisible by ten, with padding rows of 9s added as needed.
What does the SEC Code in a NACHA file mean?
The Standard Entry Class (SEC) Code identifies the type of ACH transaction — for example, PPD for consumer payments, CCD for corporate disbursements, or CTX for corporate payments with detailed remittance data — and it is required in every batch.
Can a NACHA file be created without specialized software?
Yes, technically, but the specification manual governing NACHA file formatting runs several hundred pages, and manual creation carries a high risk of field-length or justification errors that cause file rejection. Most originators use accounting software, ERPs, or an ACH file generation software.
What happens if a NACHA file has a formatting error?
A malformed file is typically rejected or returned by the receiving bank, which delays settlement and may require the entire batch to be corrected and resubmitted, making pre-submission validation an important step in the file creation process.