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 118
actors 12 distinct systems
last hit 17h ago human
ByteDance
12
GPTBot
6
Script
4
PerplexityBot
3
ClaudeBot
2
ChatGPT-User
2
Sogou
1
Search engines
5
Humans
55

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · 🇩🇪 Germany · 🇬🇧 United Kingdom