The fastest JavaScript BPE Tokenizer Encoder Decoder for OpenAI's GPT models (gpt-5, gpt-o*, gpt-4o, etc.). Port of OpenAI's tiktoken with additional features.
Encode and decode text for OpenAI's models quickly using a lightweight JavaScript library.
Claim its page: indexed whatever its rank, translated into six languages, and enriched with what you write yourself.
Get an email alert on its next release or when it starts trending — never miss the moment.
Free · no card · unsubscribe anytimeThe fastest JavaScript BPE Tokenizer Encoder Decoder for OpenAI's GPT models (gpt-5, gpt-o*, gpt-4o, etc.). Port of OpenAI's tiktoken with additional features.
gpt-tokenizer has 823 stars on GitHub. It has been forked 58 times. gpt-tokenizer is written mainly in TypeScript. It has been in active development since 2023. gpt-tokenizer is available under the MIT license. Its main topics are bpe, decoder, encoder, gpt-2.
The fastest JavaScript BPE Tokenizer Encoder Decoder for OpenAI's GPT models (gpt-5, gpt-o*, gpt-4o, etc.). Port of OpenAI's tiktoken with additional features.
gpt-tokenizer is an open-source project. It is released under the MIT license.
Yes. gpt-tokenizer is free and open source — you can use, modify and self-host it.
gpt-tokenizer is available under the MIT license.
gpt-tokenizer is written mainly in TypeScript.
Add this live badge to your README — your GitHub stars and directory rank, refreshed daily.
[](https://olud.ai/project/niieani-gpt-tokenizer.html)
Measured from GitHub topics shared by both projects, weighted by how rare each topic is.