Convert Australian ETF Annual Tax Statements (PDF or extracted text) into split transaction CSV files ready to import into accounting programs (such as GnuCash).
- Direct Text Extraction: Extracts data directly from PDF text without manual coordinate mapping.
- Multi-Registry Support: Parsers currently support pdf/txt statements from:
- Computershare
- Link Market Services / MUFG Corporate Markets
- Automic
- Magellan
- One Registry Services
- Flexible Input Formats: Accepts
.pdf, plain-text.txtdumps, or normalized.csvfiles. - Customisable Account Mapping: Maps ATO tax labels and AMIT cost base adjustments to your chart of accounts via
tax-acc.csv.
Download etf2cb.exe and tax-acc.csv from the Releases page and place them in the same directory (or in your PDF statements folder).
Install uv, create a virtual environment, and install the dependencies:
uv venv
uv pip install -r requirements.txtCheck the installed version:
uv run etf2cb.py --versionProcess a single PDF or text dump (produces <filename>_split.csv):
# Using the compiled executable
etf2cb.exe "VAS-annual-tax-statement.pdf"
# Or from source with uv
uv run etf2cb.py "VAS-annual-tax-statement.pdf"Individual *_split.csv files are generated without a header row so they can be merged cleanly into a single all_splits.csv file.
Windows Command Prompt (CMD):
del *_split.csv all_splits.csv 2>nul
for %f in (*.pdf) do etf2cb.exe "%f"
echo Entity,Date,Description,Account,Deposit > all_splits.csv & type *_split.csv >> all_splits.csvSample transaction showing splits:
Entity,Date,Description,Account,Deposit
X0123456789,30/06/2018,VAS,Income:Distribution:13U,-3606.42
X0123456789,30/06/2018,VAS,Income:Distribution:13C,-22870.71
X0123456789,30/06/2018,VAS,Income:Distribution:13Q,7069.35
X0123456789,30/06/2018,VAS,Income:Distribution:18H:18A,-1568.43
X0123456789,30/06/2018,VAS,Income:Distribution:18H:GCTGrossUp,-1567.05
X0123456789,30/06/2018,VAS,Income:Distribution:20E/20M,-463.54
X0123456789,30/06/2018,VAS,Income:Distribution:20O,15.64
X0123456789,30/06/2018,VAS,Asset:Shares:CostBase,-62.21
X0123456789,30/06/2018,VAS,Income:Distribution:Attributed,23053.38
X0123456789,30/06/2018,VAS,Income:Distribution:Rounding,-0.01Before using the data, open all_splits.csv in a spreadsheet and create a Pivot Table to reconcile against your statements and check your ATO pre-fill report and cashbook:
- Filters:
Entity,Date - Rows:
Account - Columns:
Description - Values:
Sum of Deposit
- Zero Net Balance: Confirm the Grand Total for every ETF column (and overall) equals
0.00. - Rounding Check: Inspect the
Income:Distribution:Roundingrow—values should only be a few cents (±0.01–0.02). A larger figure indicates an unmapped or skipped component on that statement. - Match Tax Totals: Compare the tax code row totals (
10L,13U,13C,13Q,18A,18H,20E, and20O) directly against each ETF's Annual Tax Statement and your myTax / ATO pre-fill summary. - Verify Cash Distributions: Confirm
Income:Distribution:Attributedmatches the total net cash distributions received in your bank or broker cash account for the financial year (and adjust for any distributions paid across the 30 June financial year boundary).
- Open GnuCash and select File → Import → Import Transactions from CSV.
- Select
all_splits.csv(or an individual*_split.csv). - Configure the import settings:
- Encoding:
UTF-8 - Separator:
Comma - Date Format:
d-m-y - Multi-split: Checked
- Leading lines to skip:
1forall_splits.csv(or0for a headerless*_split.csv)
- Encoding:
- Map the columns:
Entity→ Notes (or Memo / Num, used to separate holdings/HINs)Date→ DateDescription→ DescriptionAccount→ AccountDeposit→ Deposit
- Review the account matches and complete the import.
Edit tax-acc.csv to match your own chart of accounts:
Label: ATO tax return label (13U,18A, etc.) or statement component name.Type:DB(negates positive amounts for income/cost-base reductions),CR(keeps positive sign for offsets/cash/cost-base increases), orskip(ignores subtotal lines).Account: Target account path in your accounting software.
Releases are built manually via GitHub Actions (.github/workflows/release.yml):
- Go to Actions → Manual Date-Based Release → Run workflow.
- Leave
release_dateblank to use today's date (yyyy.mm.ddin Australia/Sydney time) or enter a custom date. - The workflow strips
-dev, compilesetf2cb.exevia PyInstaller, creates tagv<yyyy.mm.dd>withetf2cb.exe,tax-acc.csv, andetf2cb-<version>-windows.zip, and bumps_version.pyin the repository to<yyyy.mm.dd>-dev. - Same-day duplicate releases are blocked by default unless the overwrite checkbox is ticked.
This project is licensed under the terms of the GNU General Public License v3.0 (or any later version).