Keep duplicate transactions in a CSV
Two identical rows are not always a mistake: the same amount to the same payee on the same day can be two real payments. This page has no switch that keeps them. It drops exact copies and lists each one with its line number, so you can see which rows were taken out and put back the ones that are real. Choose the file below: the page works in your browser and shows the first 20 cleaned rows.
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 this page does with identical rows
- Only exact copies count. Two rows are duplicates when every cell of one equals the same cell of the other, after spaces at the ends of each cell are removed. Rows that differ in any column of your file, such as a running balance, a time or a reference, are both kept without your doing anything.
- The first copy stays and later copies are dropped. The copies do not need to be next to each other.
- Every dropped row is listed. It appears under "Lines dropped" with its own line number, the line number of the copy that was kept and its text. The report line "Dropped: exact duplicates" gives the count and the line numbers.
- The count check includes them. Rows in equals rows out plus the duplicates dropped, the footer lines and the rows not parsed, so a dropped copy never goes missing without a trace.
- Near-duplicates are not touched. The same payment written with a different description or date stays twice.
The keep mode of the engine, and what this page offers
The cleaning engine of this site has a mode that keeps repeated rows: every row is written, and each repeated row is still reported, counted as kept and marked with the line number of its first copy. The test script checks that mode. This page does not offer it as a switch: it always runs the engine in the mode that drops exact copies and lists them. If you need a file in which repeated rows stay without any step by hand, this page does not produce it.
To keep a real second payment with this page:
- Read the list under "Lines dropped" and find the entries marked as an exact copy of another line.
- For each one, decide whether it is a second payment or the same payment exported twice. The section below gives signs to look for.
- For a real second payment, open the cleaned file and repeat the line of the copy that was kept. A dropped row was an exact copy of it, so the repeated line is the row that was taken out.
A repeated line in the sample files
The lines below are copied from a synthetic sample file of this site and from the cleaned file the engine wrote for it. The sample file is made up for testing and holds no real person's data.
| Lines in the sample export | Line in the cleaned file |
|---|---|
03/18/2024,SERVICE CHARGE,(12.00),,"6,685.51"03/18/2024,SERVICE CHARGE,(12.00),,"6,685.51" | 2024-03-18,SERVICE CHARGE,-12.00,,,-12.00,,bank |
In this sample the last column is a running balance, and it is the same on both lines. Two real charges would move the balance twice, the two lines would differ in that column, and both would be kept. The same balance on both lines is what a line exported twice looks like.
Is it a real second payment?
- A running balance that does not move between the two rows points to one payment exported twice.
- A transaction ID or reference that is the same on both rows points to one payment, where the export gives each payment its own.
- No balance, no reference and no time in the export means the file cannot tell you. Two coffees at the same price on the same day look exactly like one coffee exported twice. Compare with the statement of the account.
- Exports that overlap in their date ranges, or two downloads pasted into one file, repeat every row of the overlap. Those copies are not second payments.
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 spreadsheet instead: sort by every column, and add a helper column that counts how often each whole row occurs. Rows with a count above one are the candidates; decide on each before you delete 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.