Tokenizers
A fast code library that splits text into the small pieces, called tokens, that AI language models read.
- Your data
- Stays on your device
- Coding needed
- Developers only
- Cost
- Free
- Computer
- An ordinary computer is fine
A fast code library that splits text into the small pieces, called tokens, that AI language models read.
AI language models don't read words directly. They read tokens, small chunks of text turned into numbers. Tokenizers is Hugging Face's library for doing this conversion quickly, and turning numbers back into text.
It can load the tokenizers used by many popular models. It is written in Rust for speed and can be used from Python and Node.js.
The README says the project is moving to a new major release, and some older features are still being brought back.
Programmers and researchers building or running AI language models.
Developers only. It is a code library for programmers. New to this? Start here.
Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?