Converter tool

Categorise Bank Transactions

Tag every transaction in a bank or card CSV with a category from keyword rules you write, and see totals per category. It runs in your browser.

Matching ignores case and looks anywhere in the description, so "uber" also matches "UBER EATS". The first rule that matches wins: put the narrower keyword above the wider one. Lines starting with # are ignored. 0 rules read.

Preview

Output Preview

Load a statement, write your rules, and press Categorise transactions.

Categorise Bank Transactions

Operator: Abdulla Al Fahad. How tools are built and checked

A bank export tells you the date, the amount and a line of merchant text such as "UBER *TRIP 4471" or "AMAZON.CO.UK*7Y2". Before you can see where the month's money went, every one of those lines needs a label: Travel, Groceries, Software, Income. Doing that by hand in a spreadsheet means filtering for each merchant over and over, and next month you start again.

This page lets you write the labelling once, as a short list of rules like "uber => Travel", and apply it to any statement CSV. It adds a category column to every row, totals each category, and shows how many rows no rule caught, with the first ten of them as examples, so you can write rules for them rather than having the page invent a category. Keep your rules in a text file and paste them in each month; the same list gives the same result every time.

Key features

  • Rules you write as plain text, one keyword => category per line, with # comments allowed
  • Case-insensitive substring matching on the description column you choose
  • Top-to-bottom rule order, where the first matching rule decides the category
  • The same category can be the target of as many keywords as you like
  • An Uncategorised label for rows no rule matches, with a count and the first ten descriptions shown
  • A totals table with the number of transactions per category and, optionally, the sum of an amount column
  • Amount cells that are empty or not numbers listed by row instead of silently counted as zero
  • A note naming any rule that categorised nothing, which usually means a typo or a rule placed below a broader one

Rule syntax and the added category column

Input is a comma-separated statement with one header row. Pick the column that holds the merchant or narrative text; banks call it Description, Details, Narrative, Payee or Memo, and the page pre-selects one of those when it finds it. Semicolon-separated exports from some European banks need to be re-saved with commas first, otherwise every row lands in a single column.

Each rule is one line: the keyword, then =>, then the category. Spaces around both parts are trimmed, so "tesco => Groceries" and "tesco=>Groceries" are the same rule. The line is split at the first =>, which means a category such as "Home => Repairs" survives intact. Blank lines and lines starting with # are skipped, so you can head groups of rules with comments. A line with no => or with an empty side is reported by line number and left out.

The output is your original CSV with one extra column, named category, or category_2 if the file already has a category column. Every original column and value is kept as it was. The amount column, if you choose one, is only read for the totals: plain numbers, minus signs, thousands separators such as 1,200.10, a leading currency sign, and bracketed negatives like (41.99) are all understood.

How it works

For each row the page lower-cases the description and walks your rules from the top. A rule matches when its lower-cased keyword appears anywhere in that text, so "uber" matches "UBER *TRIP 4471" and also "UBER EATS 9921". As soon as one rule matches, its category is written and the remaining rules are not checked for that row.

Rows that reach the end of the list without a match get the category Uncategorised. There is no fuzzy matching, no merchant database and no learning from earlier files: a row is only given a category you typed. That makes the result predictable and easy to audit, and it means the Uncategorised list is the to-do list for your next rule.

When an amount column is chosen, each row's amount is added to its category's sum. Signs are kept, so a refund reduces the Shopping total rather than adding to it. Cells that cannot be read as a number are counted in the category but left out of its sum, and each one is listed with its row number.

Common use cases

  • A freelancer splitting a year of card spending into software, travel, equipment and meals before filling in a self-assessment return.
  • A household that exports a joint account every month and wants the same grocery, fuel and utilities totals each time without re-filtering.
  • A bookkeeper preparing a client's bank CSV for import into accounting software that expects a category or account column.
  • Someone checking how much went on food delivery last quarter, by giving delivery apps their own category above the general ride-hailing rule.

How to use this tool

  1. Choose your statement CSV, or press the sample button to load a ten-row statement with a matching rule list.
  2. Check the description column and, if you want sums, the amount column.
  3. Type or paste your rules into the box, narrowest keywords first.
  4. Press Categorise transactions and read the totals table.
  5. Look at the Uncategorised examples, add a rule for each merchant that should have a category, and run again.
  6. Download the CSV with the category column when the Uncategorised count is where you want it.

Example

Six card transactions and three rules

date,description,amount
2026-09-02,UBER *TRIP 4471,-18.60
2026-09-03,UBER EATS 9921,-24.15
2026-09-05,AMAZON.CO.UK*7Y2,-41.99
2026-09-06,Corner bakery,-6.20
2026-09-08,AMAZON REFUND,15.00
2026-09-09,UBER *TRIP 5502,-11.35

Rules:
uber eats => Eating out
uber => Travel
amazon => Shopping

Categorised rows and the totals table

date,description,amount,category
2026-09-02,UBER *TRIP 4471,-18.60,Travel
2026-09-03,UBER EATS 9921,-24.15,Eating out
2026-09-05,AMAZON.CO.UK*7Y2,-41.99,Shopping
2026-09-06,Corner bakery,-6.20,Uncategorised
2026-09-08,AMAZON REFUND,15.00,Shopping
2026-09-09,UBER *TRIP 5502,-11.35,Travel

Eating out     1   -24.15
Travel         2   -29.95
Shopping       2   -26.99
Uncategorised  1    -6.20

Tips for best results

  • Use the shortest keyword that is still unique to the merchant. "spotify" is safer than "SPOTIFY P1A2B3", because the reference after the name changes on every payment.
  • Start with the merchants that appear most often in the Uncategorised examples. Each new rule shrinks the list, and one-off purchases can stay Uncategorised.
  • Add a # comment above each group (# Travel, # Bills) so the list stays readable as it grows past a screenful.
  • Save the rules as a .txt file next to your statements. Pasting the same file each month is what makes month-to-month totals comparable.

Common pitfalls

Order matters more than anything else. If "uber => Travel" sits above "uber eats => Eating out", every food order is filed under Travel, because the broader keyword matches first. The page flags a rule that never categorised anything, which is the usual sign that a broader rule above it is taking its rows.

Substring matching cuts both ways. A keyword like "bp" for the fuel station also matches any description containing those two letters, such as "BPAY" or a reference code. Spaces at the ends of a keyword are trimmed, so "bp " behaves like "bp"; a keyword with a following word, such as "bp connect", is what narrows the match.

The page cannot read meaning. A transfer to your own savings account and a payment to a stranger can both say "TRANSFER"; only a rule with a more specific keyword (an account nickname or reference) can tell them apart, and if the bank prints nothing distinguishing, they will share a category.

Sums are only as good as the amount column. Exports that put money out and money in into separate Debit and Credit columns need one of them chosen per run, or a single signed column made first; the page sums one column and does not combine two.

Common errors and how to fix them

Line 4 ignored: no "=>" between the keyword and the category.
That line has no arrow, often because it was typed with a single = or a hyphen. Write it as keyword => category, or start it with # if it is a note.
Almost every row comes out Uncategorised.
Check that the description column is the merchant text and not the date or a reference number. Keywords are matched against the chosen column only.
A category total is far larger than expected.
Look for a short keyword catching unrelated rows. Filter the downloaded CSV on that category and scan the descriptions.
Some amounts are listed as left out of the sums.
Those cells are empty or hold text such as a currency code after the number. Fix them in the source file, or accept that the count includes them but the sum does not.

Best practices

  • Run the rules on two or three past months before relying on them; merchants change how their name appears on statements more often than you would expect.
  • Keep an Uncategorised share you can live with instead of writing a rule for every one-off purchase.
  • Treat the totals as a check, then use the downloaded CSV as the record, since it shows which rule placed each row.

Why rules instead of automatic guessing

Automatic categorisers decide from merchant codes or a model, and when they are wrong you often cannot see why. With a rule list, every category in the output traces back to a line you wrote. If "AMAZON REFUND" lands in Shopping, you can see it was the amazon rule, and you can decide whether refunds deserve their own rule placed above it.

The trade-off is that someone has to write the rules. The Uncategorised list shortens that job: it shows real descriptions from your file, so you copy the merchant name out of the list instead of guessing how the bank spells it.

Splitting one merchant into several categories

Some merchants cover several kinds of spending. Ride-hailing companies print one prefix for trips and another for food; large retailers print a separate string for subscriptions. Put the specific rule first and the general rule after it, as in the example above, and each row lands where you want it.

When the bank prints exactly the same text for different purposes, no keyword can separate them. In that case either accept one shared category or edit those few rows by hand in the downloaded CSV.

Frequently asked questions

Can two keywords point to the same category?

Yes. Write as many lines as you need, for example "tesco => Groceries" and "sainsbury => Groceries". The totals table shows the category once with all its rows combined.

Are the rules case-sensitive?

No. Both the keyword and the description are compared in lower case, so "Amazon", "AMAZON" and "amazon" behave the same.

Does it support wildcards or regular expressions?

No. A keyword is plain text matched anywhere in the description. Characters such as * or . are treated literally, which is useful because many statements contain them, as in "AMAZON.CO.UK*7Y2".

What happens to a row with an empty description?

No keyword can match empty text, so it is Uncategorised and appears in the examples as an empty description, with its row number, so you can find it.