Clean a Square transactions CSV export
A Square transactions report saved as a CSV has one line per payment or refund and more than fifty columns: sales, discounts, tax, tip, tender, card, fees, deposit and device. Amounts are written with a currency mark. Choose the file below: the page cleans it in your browser, shows the first 20 cleaned rows and lists every line it left out, with the reason.
Clean your Square transactions CSV
The cleaner finds the columns by their names in the header row and writes eight fixed columns: date, description, amount, currency, fee, net, reference and source. The file is read with the general bank layout of this site; there is no layout written for Square alone.
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.
Square can change the columns of its report, and this page makes no promise about yours: the free preview shows what it does to your file. If the header names are not recognised, the page says so and outputs nothing.
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.
One more synthetic sample, written in the Square transactions layout with invented values, was read by the same engine file: rows in 9, rows out 9. In that run the header was on line 1 and no date order had to be chosen. The date was taken from the Date column, the amount from Total Collected, the fee from Fees and the net from Net Total; the description came from Description and the reference from Transaction ID.
The header line of that sample follows the column names listed in a product update post on Square's own seller community. No help page published by Square that gives the column order could be read. The values, the way amounts are written with a pound sign and the signs of the fees are assumptions of that sample, not something Square has published, so your file may differ.
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. The offline file was not checked against the layout of this page.
What a Square transactions CSV looks like
The header line this page was written from starts with Date, Time, Time Zone, Gross Sales, Discounts, Service Charges and Net Sales. Further along are Tip, Total Collected, Fees, Net Total, Transaction ID, Description and the deposit columns.
Each line of the sample is one payment or one refund. Dates are written like 2024-06-14, with the time in its own column. Amounts carry a pound sign, and a fee or a refund is written with a minus sign in front of it. Total Collected is the sales figure plus the tip: in the sample, a payment with a tip of £5.00 has a Total Collected of £80.25.
What the cleaner changes in a Square transactions report
- The amount is Total Collected, not Gross Sales. Total Collected is the figure that the fee and the net belong to, so the tip is part of the amount. The Gross Sales, Discounts, Service Charges, Net Sales and Tip columns are not in the output.
- The fee is the Fees column, written as the file has it. In the sample, every fee that is not zero is negative.
- The net is the Net Total column, written as the file has it.
- The currency mark is read off the amounts.
£12.50is written as12.50, with thousands separators taken out. Check the currency column in the preview of your own file: the report of the sample run does not say where it comes from. - The date is the Date column. The Time and Time Zone columns are not in the output.
- The reference is the Transaction ID column and the description is the Description column. The Payment ID, the card and device columns and the deposit columns are not in the output.
- Exact repeated rows are dropped and listed with their line numbers, and a row whose amount is not a number is left out and listed under "Lines not parsed" with the reason. Nothing is turned into zero.
Dates, amounts, fees and nets of the Square-layout sample
| Date in the export | Total Collected in the export | Fees in the export | Net Total in the export | amount in the cleaned file | fee in the cleaned file | net in the cleaned file |
|---|---|---|---|---|---|---|
| 2024-06-14 | £9.99 | -£0.17 | £9.82 | 9.99 | -0.17 | 9.82 |
| 2024-06-18 | £80.25 | -£1.40 | £78.85 | 80.25 | -1.40 | 78.85 |
| 2024-06-21 | £150.00 | -£2.63 | £147.37 | 150.00 | -2.63 | 147.37 |
| 2024-06-27 | £64.50 | -£1.13 | £63.37 | 64.50 | -1.13 | 63.37 |
How to do the same by hand in a spreadsheet
These steps work in Excel, Google Sheets and LibreOffice Calc. Read your own header row to find which column holds what.
- Work on a copy and keep the downloaded file untouched.
- Import the amount columns as text. A spreadsheet may read
£9.99as a number in the currency format of its own locale, or fail on it. In LibreOffice Calc set the columns to Text in the Text Import dialog. In Excel use Data, From Text/CSV, Transform Data, and set the column type to Text. - Take the currency mark and the thousands separators out with find and replace, so that
£9.99becomes9.99and-£0.17becomes-0.17. - Decide which amount your books need. This page takes Total Collected, which includes the tip. If your bookkeeping wants the sale without the tip, use Net Sales and keep the Tip column.
- Keep the columns you need (Date, Description, Total Collected, Fees, Net Total and Transaction ID) and delete the others, after checking that none of them holds something your books require.
- Check that the net equals the amount plus the fee on a few lines before you rely on the file.
- Paste the formulas back as values and save as CSV UTF-8. Then open the saved file in a text editor and read one line.
Notices
- Privacy: files are read in your browser and never uploaded, stored or logged. Operator: Augeo.
- Independent tool, not affiliated with Square, Etsy, PayPal, QuickBooks or any bank, and not endorsed by any of them.
- 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 exports
- Clean an eBay transaction report CSV
- Clean a Stripe itemized balance report CSV
- Clean a Shopify Payments transactions CSV
- Clean a PayPal activity CSV
- Gross, Fee and Net columns of a PayPal CSV
- Remove currency symbols and thousands separators from a CSV
- Rows in versus rows out: the count check
- Remove duplicate rows from a CSV export
- Any other CSV export of transactions