Home › Tokens and context windows
Tokens and context windows
Count tokens, convert between tokens and words, and learn how context windows work.
Tools
Token counterTokens to wordsHow many words is 1,000 tokens?Guides and data
Context window sizesContext window and maximum output for current Claude, GPT, Gemini, DeepSeek and Grok models, with a CSV.What is a token in AIWhat tokens are, real token splits, byte-pair encoding, and the same sentence counted in eight languages.Count tokens with tiktokenTested Python examples for counting tokens with tiktoken, choosing an encoding and estimating cost.Tokens in other languagesToken counts for the same two sentences in 15 languages, with OpenAI's exact tokenizers.