Skip to content
Raisalon

Writing tool

Word Counter and Text Statistics

Count words, characters, sentences, and paragraphs, estimate reading and speaking time, and get a rough LLM token estimate for any text.

Words
0
Characters
0
No spaces
0
Sentences
0
Paragraphs
0
Lines
0
Reading time
0 min
225 wpm
Speaking time
0 min
140 wpm
UTF-8 bytes
0
≈ LLM tokens
0
Estimate: characters ÷ 4

Token counts vary by model and tokenizer. Use the estimate for budgeting only; use the model provider’s tokenizer for exact counts.

Advertisement

How to use it

Paste or type text into the box. The statistics update as you type, and nothing leaves your browser.

How each number is calculated

  • Words are counted with the browser’s built-in Intl.Segmenter, which follows Unicode word-boundary rules. Contractions such as “don’t” count as one word, and punctuation is ignored.
  • Characters counts Unicode code points, so an emoji or an accented letter counts once. No spaces excludes all whitespace, including line breaks.
  • Sentences are runs of text ending in ., !, ?, or …. Abbreviations such as “e.g.” can inflate this count, so treat it as approximate.
  • Paragraphs are blocks separated by at least one blank line.
  • UTF-8 bytes is the size of the text when saved as UTF-8. Characters outside basic Latin take two to four bytes each, which matters for database column limits and SMS messages.

Reading and speaking time

Reading time assumes 225 words per minute, a common figure for adults reading non-fiction on screen. Speaking time assumes 140 words per minute, a comfortable pace for presentations. Dense technical material, code, and mathematics take longer, so pad estimates for those.

About the token estimate

Large language models process text as tokens rather than words. A token is often a word fragment: “tokenization” might become “token” and “ization”. For English prose, a widely used rule of thumb is that one token is about four characters, or roughly three quarters of a word.

The estimate here is simply the character count divided by four. Real counts depend on the model’s tokenizer and on the text itself:

  • Code, URLs, and numbers usually use more tokens per character than prose.
  • Languages other than English, especially those with non-Latin scripts, often use many more tokens per character.
  • Repeated common words use fewer.

Use the estimate for quick budgeting, such as checking whether a document is likely to fit in a context window. For exact counts, use the tokenizer published by your model provider.

More tools

  • Developer

    JSON Formatter and Validator

    Format, minify, validate, and sort JSON in your browser, with error messages that point to the exact line and column of a syntax problem.

    Open tool

  • Developer

    Base64 Encoder and Decoder

    Encode text to Base64 or decode Base64 back to text, with full UTF-8 support and an optional URL-safe alphabet for tokens and URLs.

    Open tool

  • Developer

    Unix Timestamp Converter

    Convert Unix timestamps in seconds or milliseconds to readable UTC and local dates, and convert dates back to timestamps, with live current time.

    Open tool