Comparison
tiktoken vs toktok-rs
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
tiktoken is a fast BPE tokeniser for use with OpenAI's models
Maintained. Last release 3 months ago, commits in 2 of the last 26 weeks. Weaker on commit activity and release cadence.
$
pip install tiktokenFast, exact BPE tokenizer for OpenAI encodings — Rust core, tiktoken-identical ids
Maintained. Last release 2 weeks ago, commits in 4 of the last 26 weeks. Weaker on commit activity and contributor spread.
$
pip install toktok-rsIn short
- tiktoken is the most used: 230M downloads a month, 1369× more than toktok-rs.
- toktok-rs is better maintained: Pythie’s Index 65 against 47.
- tiktoken is growing fastest: downloads +12% over the last month.
- toktok-rs is the newcomer: first released Sep 2026.