tiktoken

JSON →
library 0.12.0 ·python
verified Jun 9, 2026 install

Fast BPE tokenizer from OpenAI, written in Rust. Used to count tokens and encode/decode text for OpenAI models. 3-6x faster than comparable Python tokenizers. Does NOT call any API — purely local computation. Requires a Rust compiler at build time on platforms without pre-built wheels. Package name and import name are both 'tiktoken'.

total hits 102
actors 12 distinct systems
last hit 9h ago human
GPTBot
4
Amazonbot
4
ByteDance
3
ClaudeBot
3
Script
2
Sogou
1
CommonCrawl
1
PerplexityBot
1
Search engines
7
Humans
50

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇸🇬 Singapore · 🇬🇧 United Kingdom · 🇨🇳 China