Bank CSV preamble: account details above the header
Some bank exports open with a preamble: a title, the account name, the period covered, then an empty line, and only after that the row with the column names. A program that takes the first line of the file as the header then sees one or two columns named after your account, and every transaction below lands in the wrong place or is refused. Choose the file below: the page works in your browser, finds the real header row, 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
Prefer a file you keep? Offline CSV cleaner, single HTML file, 6 USD on Gumroad. The offline file was built from an earlier version of the engine, and its build self-check covered the six original sample layouts (PayPal activity, Etsy sold orders, Etsy monthly statement and three bank layouts); it does not include the later Fee/Net column reading used for the Stripe, Shopify, eBay and Square pages.
What happens to the account details
- The header row is found by its column names, wherever it sits. The cleaner does not assume that the first line is the header. It takes the row that names a date column together with an amount column or with a pair of debit and credit columns, and the report states the line number of that row.
- Every line of the preamble is left out and listed. The title, the account name and the period do not reach the cleaned file. Each of them is counted as a line above the header, so you can see what was removed.
- An empty line is not a line of the preamble. Blank lines are skipped and counted on their own.
- The cleaned file starts with its own header. Its first line is always the eight column names, and the transactions follow from the second line.
- A closing line is treated the same way at the other end. A line with no date after the last transaction, such as a closing balance, is left out and listed as a footer line.
The table below is taken from bank-preamble-debit-credit.csv, one of the synthetic sample files the test script runs the engine over. Each line on the left is copied from that file, and the cell on the right is the line the engine wrote for it, or says that it wrote none. For that file the report reads: lines above the header 3, rows in 11, rows out 8, rows not parsed 2, footer lines 1.
| What it shows | Line in the sample export | Line in the cleaned file |
|---|---|---|
| A title | Account statement export (synthetic test data) | no line: it is above the header |
| The account name | Account name,Example Trading Ltd | no line: it is above the header |
| The period | Period,01 Apr 2024 to 30 Apr 2024 | no line: it is above the header |
| The column names | Date,Transaction Type,Description,Money Out,Money In,Balance | no line: taken as the header row |
| The first transaction | 02 Apr 2024,Card,OFFICE SUPPLIES DIRECT,£123.45,,"£4,876.55" | 2024-04-02,OFFICE SUPPLIES DIRECT,-123.45,GBP,,-123.45,,bank |
| The closing balance | Closing balance,,,,,"£6,589.00" | no line: it has no date |
The two rows of the sample that were not parsed are a row with neither money out nor money in and a row whose date does not exist in the calendar.
The sample file is synthetic. The free preview shows what it does with your own file before you pay for anything.
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 total and footer lines from a bank CSV
- Bank statement CSV to a single amount column
- The sep= line at the top of a CSV file
- Clean a CSV before importing into accounting software
- CSV amount column read as text in Excel
- Any other CSV export of transactions