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.

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

Dates, amounts, fees and nets of the Square-layout sample

Four payments of the synthetic sample in the Square transactions layout. All values are invented.
Date in the exportTotal Collected in the exportFees in the exportNet Total in the exportamount in the cleaned filefee in the cleaned filenet in the cleaned file
2024-06-14£9.99-£0.17£9.829.99-0.179.82
2024-06-18£80.25-£1.40£78.8580.25-1.4078.85
2024-06-21£150.00-£2.63£147.37150.00-2.63147.37
2024-06-27£64.50-£1.13£63.3764.50-1.1363.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.

  1. Work on a copy and keep the downloaded file untouched.
  2. Import the amount columns as text. A spreadsheet may read £9.99 as 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.
  3. Take the currency mark and the thousands separators out with find and replace, so that £9.99 becomes 9.99 and -£0.17 becomes -0.17.
  4. 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.
  5. 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.
  6. Check that the net equals the amount plus the fee on a few lines before you rely on the file.
  7. 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

Other exports

Report a problem — tell us what failed; we reply to your email when it is fixed.