Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CtokenNew to Visual Studio Code? Get it now.
Ctoken

Ctoken

Danny Christensen

| (0) | Free
See an estimated token count for your file or selection, offline. Built by Cepho — cepho.cloud
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Ctoken

Offline estimate of how many tokens text would be as AI input if pasted into chat (heuristic: chars ÷ 4).

Shows two estimates:

  1. Open file / selection — ~N tok ≈ file (or sel)
  2. Whole project — proj ~M — as if you sent the entire workspace as AI input (sensible excludes)

Status bar example: ~1.2k · proj ~48k

  • Updates file/sel on edit and focus change
  • Project scan is debounced (save / folder change); does not block the UI
  • Excludes node_modules, .git, dist, build, binaries/media, files >500KB; respects .gitignore via git ls-files when available
  • No network calls

Free. No login. No cloud. No telemetry.

Built by Cepho.

What this is / is not

  • Is: “If I paste this file/selection — or the whole project — into chat / AI input, roughly how many tokens?” — offline size heuristic.
  • Is not: live usage. Is not tokens already used by Cursor Agent / chat. Is not Cursor billing.
  • Future live metering: only if Cursor exposes a usage API, or you paste bills yourself.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft