TokenPad
Counting

Words to Tokens Converter

How many tokens is 1,000 words? It depends, and here is by how much.

1,000 words — converted by content type

Content typeWordsTokensCharactersAs input
English prose1,0001,3305,320$0.002660
Technical writing1,0001,5005,400$0.003000
Source code1,0002,6007,020$0.005200
JSON, pretty-printed1,0003,4007,480$0.006800
Non-English, Latin script1,0001,9005,890$0.003800
Non-Latin script1,0003,2005,120$0.006400

These are averages, and averages are the reason budgets go wrong. The spread between the first and last row is more than double for identical word counts. When the number matters, measure the actual text in the token counter — it takes ten seconds and it is exact.

How many tokens is 1,000 words?

For ordinary English prose, about 1,330 tokens. The usual rule of thumb is 0.75 words per token, or equivalently four characters per token.

That figure is correct and routinely misapplied. It describes English prose specifically, and most of what people actually send to a language model is not English prose. The same 1,000 words of source code runs closer to 2,600 tokens. As pretty-printed JSON, over 3,000. In a non-Latin script, 3,000 and up. The table above converts across all of them at once so the spread is visible rather than assumed away.

Why one number cannot cover it

A tokenizer is a learned vocabulary, not a formula. Byte-pair encoding starts from individual bytes and repeatedly merges the most frequent adjacent pair until it has a fixed-size vocabulary — around 200,000 entries for the current OpenAI encoding. Sequences that appeared often in the training corpus earn a single token. Everything else is rebuilt from fragments.

Since those corpora are dominated by English prose, English prose is what the vocabulary is efficient at. Common words are one token each. A UUID is a dozen. Deep indentation is one token per level per line. Non-Latin scripts frequently fall back to two or three tokens per character. None of that is a defect; it is simply what optimising for one distribution does to everything outside it.

Working backwards from a token budget

The conversion runs both ways, which is the more useful direction in practice. Given a 200,000 token context window, you can hold roughly 150,000 words of English prose — a full-length novel. The same window holds perhaps 75,000 words of source code, or 60,000 words of formatted JSON.

This is worth doing before you design around a window rather than after. Teams regularly plan a feature on the prose figure, build it against a corpus of structured data, and discover mid-implementation that the real capacity is half what they assumed. Confirm the actual fit in the context window calculator.

When to stop estimating

An estimate is fine for a sanity check, a rough capacity plan, or deciding whether an idea is in the right order of magnitude. It is not fine for:

  • Sizing a prompt against a context window with little headroom.
  • Committing to a monthly budget or a contract.
  • Comparing two models where the difference is under about twenty percent.
  • Anything involving code, JSON, or a language you did not measure.

In all of those, measure the real text. The token counter runs the actual encoder in your browser and takes about ten seconds, and it is exact for OpenAI models rather than approximately right. Precision is available; there is rarely a good reason to decline it.

Where these ratios come from

Each row is measured with o200k_base over representative samples of that content type, not copied from a blog post. They are averages, and the variance within a category is real — a densely commented codebase behaves more like prose, and a minified bundle behaves worse than the code row suggests. Treat them as a starting point, and see the methodology page for how everything on this site is derived.

Frequently asked questions

How many tokens is 1,000 words?
For ordinary English prose, around 1,330 tokens — the ratio is roughly 0.75 words per token. For source code the same word count runs closer to 2,000 tokens, and for text in a non-Latin script it can exceed 3,000. The single-number answer people quote is an English-prose answer being applied to everything.
Is characters ÷ 4 good enough?
For a rough sanity check on English prose, yes. For a budget, no. It understates minified JSON by thirty to fifty percent, and the payloads that dominate real API bills are rarely English prose. Use this converter for planning, and count the actual text when the number matters.
Why does the ratio change by language?
Tokenizer vocabularies are trained on English-dominated corpora, so English words earn dedicated tokens while other languages are rebuilt from sub-word fragments or individual bytes. The same meaning therefore costs more tokens in most other languages — a real difference in unit economics between markets.

More counting tools