Clean a Stripe itemized balance report CSV
The itemized balance report of a Stripe account has one line per balance transaction: a charge, a refund, a dispute or a fee, with two timestamps, a transaction ID, and the gross, the fee and the net of the line. 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 Stripe balance report CSV
The cleaner looks for the created, gross, fee, net, currency and description columns 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 Stripe 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.
Stripe lets you choose the columns of this report and can change them, 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 Stripe itemized balance report layout with invented values, was read by the same engine file: rows in 10, rows out 10. Its header line holds the column names the Stripe documentation marks as the default ones of the report "Itemized balance change from activity". The order of the columns, the way the timestamps are written (year first, then the time) and the sign of the fee (a number without a sign, with the net equal to the gross minus the fee) are assumptions of that sample, not something that documentation states, 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 Stripe itemized balance report CSV looks like
The header line this page was written from names these columns: available_on, balance_transaction_id, created, currency, description, fee, gross, net and reporting_category. The names are in lower case, with an underscore between words.
Each line is one balance transaction. The created column is the moment of the transaction, written as a date and a time such as 2024-03-01 09:14:22, and available_on is the day the money becomes available, which comes later. The gross is the amount of the charge or the refund, the fee is what the transaction cost, and the net is what reaches or leaves the balance. The reporting category names the kind of line: charge, refund, dispute or fee.
What the cleaner changes in a Stripe balance report
- The created timestamp becomes the date.
2024-03-01 09:14:22is written as2024-03-01. The time is left out, and the date is the one written in the file: it is not moved to another time zone. The available_on column is not used as the date. - The gross becomes the amount. It is written as one signed decimal with two places, with a leading minus where the file has one, as on a refund. Thousands separators and currency symbols, if your file has them, are taken out.
- The fee is written as the file has it. The fee column keeps the sign it has in your file. It is not turned into a negative number and it is not added to or taken from the amount.
- The net is the net column. It is copied from the file, not worked out again from the gross and the fee.
- The description is kept as written. A description that holds a comma (
Order 1003, gift wrap) stays in one field and is quoted in the output. - The currency code is carried over from the currency column and written in capital letters. Amounts are never converted between currencies.
- The reference stays empty. The balance transaction ID is not used as the reference, and the available_on and reporting_category columns are not carried over. If you need the transaction ID next to each line, keep your original file beside the cleaned one.
- Exact repeated rows are dropped and listed with their line numbers, and a row whose gross, fee or net is not a number is left out and listed under "Lines not parsed" with the reason. A value that is not a number is never turned into zero; an empty fee cell is written as 0.00.
Look at the fee and net columns in the preview of your own file before you rely on them: the sign of the fee in your report may not be the one of the sample below.
Dates, gross, fee and net of the Stripe-layout sample
| created in the export | gross in the export | fee in the export | net in the export | date in the cleaned file | amount in the cleaned file | fee in the cleaned file | net in the cleaned file |
|---|---|---|---|---|---|---|---|
| 2024-03-01 09:14:22 | 48.00 | 1.69 | 46.31 | 2024-03-01 | 48.00 | 1.69 | 46.31 |
| 2024-03-28 22:47:02 | 100.00 | 3.20 | 96.80 | 2024-03-28 | 100.00 | 3.20 | 96.80 |
How to do the same by hand in a spreadsheet
These steps work in Excel, Google Sheets and LibreOffice Calc. The formula below uses a placeholder column letter: created in C. Read your own header row and change the letter to match.
- Work on a copy and keep the downloaded file untouched.
- Import the created column as text. A spreadsheet that reads the timestamp by itself may show it in another format or shift it. In LibreOffice Calc set the column to Text in the Text Import dialog. In Excel use Data, From Text/CSV, Transform Data, and set the column type to Text.
- Cut the date out of the timestamp. With the timestamp as text in C2,
=LEFT(C2,10)turns2024-03-01 09:14:22into2024-03-01. - Keep the columns you need (the new date, description, gross, fee, net, currency) and delete the others, after checking that none of them holds something your books require.
- Check one line by eye: the gross minus the fee should be the net when the fee is written without a sign.
- Look at repeated rows before removing them. Two charges of the same amount on one day carry different timestamps and transaction IDs, and both should stay.
- Paste 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 or endorsed by Stripe, 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 exports
- Clean a Shopify Payments transactions CSV
- Clean a Wise statement CSV
- Gross, fee and net columns of a PayPal CSV
- Clean a PayPal activity CSV
- Clean an Etsy sold orders CSV
- Clean an Etsy monthly statement CSV
- Convert CSV dates to YYYY-MM-DD
- Commas and quotes inside the fields of a CSV
- Remove duplicate rows from a CSV export
- Any other CSV export of transactions