Measure the text you will actually supply
AI Tokens vs Words, Characters and Bytes
A word count cannot reliably predict a token count. Count the supplied text with an explicit encoding, then keep that result separate from writing length, file size, and context planning.
Fictional Lumen Atlas Museum is preparing exhibit notes in English, Romanian, Japanese, and Arabic. Its editors need comparable records of each approved text, not a language ranking or a conversion rule borrowed from an English paragraph.
Start by naming the unit you need
Words describe a writing task, characters describe some aspect of a string, bytes describe its encoded size, and tokens describe the pieces produced by a particular tokenizer. Those measurements are related to the same text without being interchangeable. A museum editor can approve a short label by reading it, while a file limit concerns bytes and a context plan concerns tokens. Before comparing two totals, ask which question each total answers. Otherwise an apparently smaller translation can look like a mistake when the team has simply switched units between its writing brief and technical review.
Even character count needs a definition. A visible symbol may contain several Unicode code points, and a programming environment may count code units instead. A grapheme cluster is a useful approximation of a user-perceived character, not another name for a token. Likewise, counting spaces to find words works poorly as a universal language rule. Keep editorial length checks in the writing workflow with their stated counting method. This counter does not turn a token total into a certified word count, a reading-time estimate, or a measure of how much information the author conveyed.
Use the AI Token Counter planner when the question is about supplied plain text. Choose an encoding explicitly and retain the exact version you count. Record whether the sample is a translation, a source excerpt, or a complete request package. Lumen Atlas keeps the approved label text in its editorial files and uses the counter for a narrower technical check. That separation prevents the token result from quietly becoming the acceptance criterion for a translation that still needs a human language review and a check against the actual exhibit facts.
Use an encoding instead of a word-ratio shortcut
The available encoding choices are o200k_base and cl100k_base. Both have defined tokenization rules; they are not two adjustable versions of a characters-per-token estimate. Byte pair encoding groups text using a learned vocabulary of byte sequences, so familiar word parts and surrounding text can affect the pieces produced. A token need not equal a whole word or one visible character. The practical implication is to run the actual text through the selected encoding rather than assigning a token value to each word in a spreadsheet and adding those guesses together.
Do not divide a character count by four, or multiply a word count by a familiar English ratio, to decide whether an approved passage fits. Such shortcuts hide variation in spelling, punctuation, script, and formatting. A ratio observed for one sample is only a description of that sample under its chosen method. It does not become a conversion factor for the next document. When text is available, counting it directly is both clearer and easier to reproduce than debating which approximation should apply to a mixture of names, dates, quotations, and translated prose.
If you compare the two encodings, keep the text and its placement unchanged, count once for each choice, and label the records accordingly. Different encoding definitions can produce different totals without either calculation being defective. The selector does not detect the intended model or certify compatibility with every provider. In particular, it is not a universal counter for Claude, Gemini, or arbitrary chat applications. Consult the tokenizer coverage guide before treating either encoding as relevant to a destination whose tokenizer and request format you have not independently established.
Compare multilingual work without ranking languages
Lumen Atlas begins with the complete approved text for each exhibit label, including the artifact name, date line, and curator note. It does not count only an English summary and scale the result to the other languages. The Japanese version may organize the explanation differently, while the Arabic version may require different wording around a quoted name. Those are editorial choices, not errors to erase for a tidy comparison. Each counted record should identify its language and revision so a reviewer knows which actual deliverable the technical result describes and can find that version again.
Use parallel scope rather than forced visual equality. If the English record includes the curator note but the Romanian record omits it, their totals describe different packages. Correct the scope before discussing a difference. Preserve the authentic script and approved punctuation; transliterating everything into Latin letters changes the material being evaluated. For mixed-language labels, include the complete mixture instead of estimating each language separately with an assumed ratio. Product names, accession identifiers, and short quotations belong in the counted version whenever they will be present in the text supplied to the eventual system.
A higher token total does not mean that a language is less clear, that its translation is poor, or that the eventual answer will be worse. The count describes representation under one encoding, not linguistic quality. Give the translator a specific space or content problem to solve instead of a demand to make their language match an English total. Lumen Atlas may shorten an unnecessary explanation across all versions, but it keeps required provenance intact. After each approved revision, the team counts the changed text again rather than claiming a saving from the number of words removed.
Separate visible characters from Unicode representation
Two strings can look alike while containing different Unicode sequences. An accented letter can, in some cases, be represented as a precomposed code point or as a base letter followed by a combining mark. Unicode normalization defines ways to handle such equivalence, but this utility does not apply NFC normalization to your text. It preserves the supplied Unicode apart from its disclosed newline conversion. A reviewer investigating an unexpected difference should therefore compare the underlying strings, not assume that matching screenshots establish identical input or that changing the font can explain a token result.
Emoji and writing-system marks also make visual counting unreliable. A displayed emoji sequence can contain multiple code points, and marks or joiners can participate in legitimate text. Do not delete these characters indiscriminately as invisible clutter. In the museum workflow, a language editor confirms whether a questionable character belongs before the text is revised. This is a content decision, not a feature the counter performs automatically. If a copy operation has introduced something unintended, fix it in the working source, preserve the approved meaning, and count the corrected version as a new revision.
UTF-8 size is another distinct measurement: different Unicode code points require different numbers of bytes. The tool accepts a combined supplied-text size of at most 256 KiB in UTF-8; that is an input bound, not a token allowance. A file can encounter this byte limit independently of the context capacity you enter. Shortening a filename or project title does not shrink the supplied passages. Keep the original editorial document outside the counter if the material is too large, then choose a smaller, meaningful text scope instead of cutting at an arbitrary byte position and risking incomplete content.
Replace the ratio with a count
Count your multilingual text
Keep the approved script and whitespace, choose an explicit encoding, and count each supplied section.
Treat whitespace and line endings as part of the text
Whitespace is not automatically irrelevant to tokenization. Leading spaces, repeated spaces, tabs, and blank lines can affect how text is divided, although deleting one does not imply a fixed reduction. They can also carry meaning in a table, quotation, or structured example. Preserve them for the first count so the baseline represents the text you actually have. When preparing a plain exhibit label, Lumen Atlas can remove an accidental empty line after editorial review. It should not quietly flatten a quoted layout merely because a visually denser version seems likely to have fewer tokens.
This tool converts CRLF and standalone CR line endings to LF at input or import. Otherwise it does not trim the text or normalize its Unicode. That means the counted version is the supplied text after the disclosed newline conversion, not a promise of original file-byte identity. When reproducing a count elsewhere, use the same newline policy and encoding. A disagreement between a raw file and a pasted textarea can begin before tokenization if the two strings use different line endings. Check that representation difference before treating either tokenizer as broken or inventing a language-specific explanation.
For a controlled whitespace comparison, retain the baseline, change one intentional formatting feature, and count again with the same encoding. Review meaning and readability as well as the new total. The counter rejects unsupported control characters and lone UTF-16 surrogates rather than silently repairing them. A validation error is a reason to inspect the source, not to paste progressively smaller fragments until the warning disappears. If the text is JSON or code, use the JSON and code token-count guide to distinguish safe formatting changes from edits that alter the data or behavior.
Keep the four supplied sections distinct
Place enduring directions in instructions, relevant previous conversation text in history, reference passages in sources, and the immediate task in request. These are four supplied text sections, not automatic imports from a chat. The tool counts each separately and adds the four totals. It does not concatenate them into a simulated provider message stream. Section boundaries are consequently part of the counting method. Moving a phrase between sections can change token boundaries, so preserve placement when comparing revisions. An empty section contributes no supplied text, but an unseen section that still contains text remains part of the count.
For Lumen Atlas, instructions might state that accession identifiers must remain unchanged; history might contain the curator’s approved terminology decision; sources might hold the artifact description; and request might ask for a label revision. None of those labels makes the content authoritative or enforces instruction priority in a model. The counter never executes that request. If an identifier occurs in both the reference passage and the immediate task, both supplied occurrences are counted. Deduplication is a manual editorial choice, and removing the second occurrence should depend on whether the eventual request remains understandable and correctly scoped.
This sum excludes message wrappers, attachments, hidden context, and tool definitions or results you have not pasted. It also excludes an actual generated answer. A document title or a pasted special-token spelling does not cause the tool to discover a chat structure; literal special-token spellings are counted as ordinary text. If your next step needs a context allowance, consult the context-window budget guide. If it concerns application or MCP payloads, the Skye and MCP planning guide explains why manually supplied text cannot establish the complete payload of an uninspected workflow.
Make comparisons reproducible before drawing conclusions
A useful comparison record names the text revision, encoding, section placement, and intended purpose. Count the baseline before editing and save its project explicitly. Then save the candidate under a distinct filename after reviewing and counting the changes. This counter does not maintain an automatic comparison history or decide which version is better. Lumen Atlas keeps its approval notes in the editorial system and its counted snapshots alongside them. A reviewer can then distinguish a translation correction from a formatting experiment without relying on memory or assuming that the most recent filename represents the accepted museum copy.
Change only the feature relevant to the question. To compare encodings, keep the passages fixed. To compare translations, keep their required content scope equivalent. To test removal of repeated headings, preserve every other character you can. If several variables change at once, describe the result as a whole-package comparison rather than attributing the difference to punctuation alone. Count both candidates before recording a difference; shorter wording alone does not establish a saving. The useful evidence is the current result for your actual text, obtained after the specific edits you intend to keep and with the same stated counting assumptions.
Do not turn the comparison into an exact bill. Context planning adds supplied input tokens to a manually reserved output allowance; that allowance is not generated text or a prediction. Optional cost scenarios use your own USD rates per million tokens, with no built-in price table. A blank rate is unknown, not free. Manually assumed cached input can affect that scenario but still occupies full context. The cached-input cost guide covers those distinctions so a smaller text sample is not confused with a verified charge, a cache hit, or a guarantee about the next request.
Share a complete record, not an accidentally private sample
Review all four sections before copying or downloading anything. Copy report, TXT, CSV, PDF, and saved project JSON include the complete supplied text, not just the active section or a redacted summary. In the museum example, history may contain an internal discussion even while the editor is looking only at request. Switching the section selector does not exclude that discussion. Remove material you are not authorized to share from a separate working copy, preserve any constraints the task needs, and count that revised copy before creating a report for someone outside the original editorial group.
After any text or setting edit, use Count again before exporting the current result. An older total must not be presented with a newer draft. Save project JSON explicitly for later editing; the tool has no autosave or background history. Clear removes the working texts and results but cannot recall files already downloaded or content already copied elsewhere. Exclude passwords, API tokens, and authentication secrets from this workflow. Browser-local counting is useful for minimizing disclosure during calculation, but a complete report is still a copy of the text that its recipient can read and retain.
Choose an export that the receiving reviewer can inspect faithfully. PDF has explicit size, page, and glyph-support limits; use TXT, CSV, or project JSON when PDF cannot represent the complete accepted material. Spreadsheet-safe CSV handling may alter a cell’s presentation to prevent formula interpretation, so distinguish that from the literal-text option when fidelity matters. Before closing the page, confirm that the saved record identifies the intended revision and encoding. The outcome should be a reproducible account of supplied text, leaving language quality, final model compatibility, and any actual provider usage to their own separate checks.
Questions about Tokens, Words and Characters
Can I convert a word count into an exact token count?
No. Count the actual text with o200k_base or cl100k_base. Word and character ratios are not reliable substitutes across languages, punctuation, Unicode representations, or formatting changes.
Why can text that looks identical produce a different comparison?
Check the encoding, section placement, whitespace, and underlying Unicode sequences. This tool normalizes CRLF and CR to LF but does not trim text or apply NFC normalization. Matching appearance does not establish identical input.
Will exporting only the active section keep the others private?
There is no active-section-only export. Copy report, TXT, CSV, PDF, and project JSON include complete supplied text from all four sections. Review and remove unintended material, then count the revised draft before sharing.
Continue planning your AI inputs
Return to the AI Token Counter & Context Planner or browse all free tools.
Context Window Budget
Build a four-section input budget, reserve output, interpret overflow, and narrow sources or history without losing essential constraints.
Read the guideJSON, Code, Tables and URLs
Compare structured text formats without sacrificing field meanings, working code, useful evidence, or readable review copies.
Read the guideCached Input Cost Planning
Separate counted input from assumed cache reuse, reserved output, manual rates, and repeated-call scenarios before comparing costs.
Read the guideSkye and MCP Token Planning
Separate a Skye or MCP task brief from unknown application context, then reserve room for evidence and replies.
Read the guideTokenizer Coverage
Choose an explicit encoding and diagnose differences caused by line endings, Unicode, literal markers, or message overhead.
Read the guideKeep the comparison reproducible
Check the text you intend to use
Count the final revision and review every section before saving or sharing a complete report.