Remove total and footer lines from a bank CSV export
Some bank exports end with lines that are not transactions: a total, a closing note, a line saying how many records the file holds. An importer reads them as broken rows or rejects the file. Choose the file below: the page works in your browser, shows the first 20 cleaned rows and lists every line it left out, with the reason.
Clean your CSV export
The cleaner detects the delimiter (comma, semicolon or tab), looks for a header row with a date column and an amount column, and writes eight fixed columns, comma-delimited: date, description, amount, currency, fee, net, reference and source. It recognises common header names in English, Spanish, German and French, such as Date, Fecha, Buchungstag, Amount, Importe, Betrag and Montant.
Your file is read in your browser and is never uploaded, stored or logged. It is held in the memory of this tab only, and closing or reloading the page discards it. Operator: Augeo. See the privacy notice.
Exports do not share one layout, and this page makes no promise about yours: the free preview shows what it does to your file.
The cleaning logic is checked by an automated test script that runs the engine file of this site over six synthetic sample files and a set of checks of the parsing rules; it ran in a sandbox before this site was published and finished with no failed check. The script does not open this page in a browser, does not test the licence key step, and nothing was tested against a real export from any provider. Use the free preview to check your own file.
Report
Warnings
Lines not parsed
Lines dropped
Preview of the cleaned rows
| line | date | description | amount | currency | fee | net | reference | source |
|---|
Download the full cleaned file
- Price: 6 USD, paid once on Gumroad. No subscription. You receive a licence key.
- What the key unlocks: the download of every cleaned row of the file you chose, as one CSV named after your file with -cleaned.csv at the end, instead of the first 20 rows on screen. The report and the way files are read stay the same.
- The key is for one buyer. Runs are not counted and no number of runs is promised. The key is kept in the memory of this page only, so you enter it again after closing or reloading the page.
- Refunds are requested through your Gumroad receipt and follow Gumroad's refund policy.
- Try the free preview first. If the preview cannot read your file, the full download cannot either.
Get a licence key on Gumroad for 6 USD
How total and footer lines are handled
- The rule looks at the date cell. A row counts as a footer line when its date cell is empty or does not hold a date the cleaner can read, and it comes after the last row that was read as a transaction.
- Footer lines are dropped and listed. Each one appears under "Lines dropped" as a footer line, with its line number, the reason (
date is empty, ordate not recognisedwith the text found) and the text of the line. The report counts them in "Dropped: footer lines". - The same kind of line between transactions is not called a footer. A subtotal row in the middle of the file, with transactions after it, is left out of the output too, but it is listed under "Lines not parsed".
- A closing line with a date and no amount is not a footer either. When the date cell holds a readable date and the amount cell is empty or is not a number, the row is left out and listed under "Lines not parsed" with that reason.
- Blank lines are skipped and counted in the report, and a header row repeated further down is skipped and counted.
- The report ends with a count check for your file: rows in equals rows out plus duplicates dropped plus footer lines plus rows not parsed.
Two limits follow from that rule. A closing line that holds a readable date in the date column and a number in the amount column, such as a dated closing balance, is read as a transaction, because nothing in the rule tells it apart from one: look at the last rows of the preview or of the downloaded file. And a real transaction at the end of the file whose date cannot be read is listed as a footer line, so read the list before you rely on the output.
When no row of the file is read as a transaction, nothing is listed as a footer line; every row that could not be read is listed under "Lines not parsed".
The output is always the same eight columns (date, description, amount, currency, fee, net, reference and source), comma-delimited. Columns of your file that are not among them are not carried over, so this is a cleaner for files of transactions and not a general CSV editor.
In a text editor instead: open a copy of the file, delete every line after the last transaction and save it under a new name.
Notices
- Privacy: files are read in your browser and never uploaded, stored or logged. Operator: Augeo.
- Independent tool, not affiliated with or endorsed by Etsy, PayPal, QuickBooks or any bank.
- Check the output before you use it. This is not accounting, tax or financial advice.
- Price of the full download: 6 USD one-time. The key is for one buyer. Refunds are requested through the Gumroad receipt.
- Only upload data you have the right to process. Choosing a file here does not send it anywhere, but you remain responsible for the data in it.
Other pages
- Remove the lines above the header of a CSV
- Remove duplicate rows from a CSV export
- Merge debit and credit columns into one amount
- Fix date and decimal format in a bank CSV
- Convert decimal commas to decimal points in a CSV
- Fix DD/MM and MM/DD dates in a CSV
- Convert a tab-delimited file to a comma CSV
- Line breaks inside quoted fields of a CSV
- Gross, Fee and Net columns of a PayPal CSV
- Convert a semicolon CSV to a comma CSV
- Convert CSV dates to YYYY-MM-DD
- Negative amounts in parentheses in a CSV
- Any other CSV export of transactions