Batch Token Counter
Count tokens across multiple local Markdown or text files and export CSV.
All processing on this page runs locally in your browser unless noted otherwise.
Batch counting runs locally. Your files never leave your device.
Drop .md / .txt files here, or use Select files.
How to use
- Pick a model (and optional encoding / custom price).
- Select or drop multiple Markdown or text files.
- Review the table, then Export CSV for spreadsheets.
FAQ
Is my prompt uploaded?
No. Token counting runs entirely in your browser. Saving draft text is off by default; if you enable it, drafts stay in localStorage on your device only.
What file types are supported?
Plain text and Markdown (.txt, .md). Binary formats (PDF, DOCX) are out of scope for this privacy-first tool.
Can I export results?
Yes — download a CSV of the summary table, including per-file token and cost estimates.