Understand your spending. Protect your privacy.
KharchaLens is a privacy-first, offline personal finance analyzer for your
HDFC, SBI, and ICICI bank statements (.xls, .xlsx, .pdf).
Upload, parse, and get one clear answer: where did my money go?
Everything runs entirely on your computer — no account, no cloud, no tracking. Your statements never leave your device.
Total credit, debit, savings, savings rate, and average monthly spend.
Automatic recognition of Zomato, Swiggy, Amazon, and 100+ merchants.
Lifestyle, investment, insurance, transfers, cash withdrawals, and more.
Handles password-protected PDFs and encrypted Excel statements.
No statement handy? Click Try it with a sample statement inside the app and pick an ICICI or HDFC format — the bundled 12-month samples show the full dashboard without uploading anything.
git clone https://github.com/aakraj/kharchalens.git
cd kharchalens
uv sync
uv run streamlit run app.py
| Bank | .xls / .xlsx | |
|---|---|---|
| HDFC | ✓ | ✓ |
| SBI | ✓ | ✓ |
| ICICI | ✓ | ✓ |
⚠️ Prefer Excel (.xls/.xlsx) — PDFs can give unexpected results for unusual layouts.
KharchaLens turns a raw bank statement into a clear picture of your finances. Once a statement is parsed, the app works entirely on the resulting transactions — no data ever leaves your machine.
Bank statements contain sensitive data — account numbers, salaries, every merchant you pay. Most expense trackers upload these files to cloud servers for processing. KharchaLens is built to work the opposite way: the parser runs locally, the dashboard renders locally, and your statements are never uploaded anywhere. If you want the insights without handing your financial history to a third party, KharchaLens is the tool for you.
HDFC, SBI, and ICICI e-statements in .xls, .xlsx, or .pdf. The bank is detected automatically from the file content.
No. KharchaLens is 100% offline — statements are parsed entirely on your own computer. There is no account, no cloud, and no tracking.
Yes. Password-protected PDFs and encrypted Excel workbooks are supported. Enter the password in the Statement Password field; it stays in memory only for the parsing session.
Total credit, total debit, savings and savings rate, average monthly spend, a monthly spending trend, automatic merchant detection, category breakdowns, and a searchable list of every transaction.
Flip on Developer Mode, open the review screen for unknown spending, and choose Add new merchant. Rules are saved as YAML — either to your personal local_data/merchants.local.yml or the shared kharchalens/config/merchants.yml.
KharchaLens bundles 12-month sample statements in ICICI and HDFC format. Click Try it with a sample statement to explore the full dashboard without uploading anything.
Excel (.xls or .xlsx) is recommended. PDF parsing handles common layouts, but unusual or scanned PDFs can give unexpected results.