A local worksheet for supplied text and explicit assumptions
AI Token Counter, Cost & Context Planner
Count supplied text tokens, review a context budget, and compare a cost scenario using assumptions you choose. Keep instructions, history, sources, and the request separate throughout the review.
Tool preview

Count first. Make the budget deliberate.
Review your text, context space and cost scenario
Choose one of two explicit encodings, separate your instructions from source material, and reserve room for the answer. Add your own rates when you want a priced scenario.
Your supplied text stays inside an isolated browser workspace. Only its height is shared with this page, where normal website assets and analytics still run. Do not enter passwords, API keys or 2FA secrets.
What this count includes
The tool counts each supplied section separately with o200k_base or cl100k_base, then sums the four counts. CRLF and CR line endings become LF; other whitespace and Unicode are preserved. Special-token spellings are treated as ordinary text.
This is not exact chat billing. Message wrappers, images, audio, tool definitions or results you have not pasted, hidden application context and provider processing are not measured. Choose the correct encoding for your actual system; this is not a Claude, Gemini or universal tokenizer.
Planning assumptions and complete exports
Context capacity, output allowance, repeated calls, assumed cached tokens and USD rates are entered by you. Cached input still uses context space. A blank rate is unknown, not zero. Repeated costs assume identical input and the full output allowance on each call; they do not predict cache eligibility, actual answers or growing history.
Combined text is limited to 256 KiB. Project JSON is limited to 512 KiB, TXT/CSV to 1 MiB and PDF to 10 MiB/60 pages. All four text sections are included in reports, regardless of which is open in the editor. Unsupported PDF characters are rejected explicitly, with complete TXT/CSV/JSON alternatives.
Save a project explicitly before leaving. There is no autosave or input history. Clear removes the browser workspace, not files already downloaded.
Technical details & licenses
Tokenization and exports run locally with bundled libraries. No provider API, account connection or key is required. Bundled open-source licenses and font attribution.
Put approved AI briefs to work on social.
Connect Skye AI to real Android phones to publish, audit & grow across 9 social apps.
Define the text you want to review
Count tokens for the selected encoding, then compare the input with room for an expected response. Enter the applicable prices when you need a cost estimate and keep cached input assumptions separate. Recheck the actual model, encoding and provider billing details before sharing an estimate.

This browser-local planner does not run a model, connect a provider account, inspect another application, or calculate an actual bill. Its counts cover the text you supply, not a complete hidden request payload.
Use the AI token counter when you have text to inspect before making a separate decision about an AI request. Begin with a short project title that identifies the review, such as a fictional workshop briefing. Decide which material belongs in the exercise and which material is unavailable. The planner cannot recover hidden instructions or discover an application’s request structure. A useful result starts with an honest boundary: these are the supplied texts being counted, under one selected encoding, with capacity and cost assumptions entered by the person preparing the plan.
Keep the four supplied sections distinct. Instructions describe the behavior or constraints you intend to provide. History contains any earlier conversation text you choose to include. Sources hold the reference material pasted into this review, while Request contains the current task. Each section is tokenized separately and the four counts are summed.
This is not the token count of a concatenated chat transcript or a provider’s message serialization. Switching the active section changes the editor view without removing the other three texts. Review all four before deciding that the input represents your intended scope.
Exclude secrets before you paste anything. Passwords, access tokens, recovery material, and two-factor authentication seeds do not belong in a planning worksheet. Use a reduced or fictional example when the actual material is unnecessary for the decision. The tool does not need an API key because it performs local text tokenization rather than submitting a request.
That boundary also means it cannot tell you whether an account has funds, whether a model is available, or whether your organization permits the planned use. Resolve those questions through the appropriate authorized process outside this page.
Choose an encoding without treating it as model detection
Choose explicitly between o200k_base and cl100k_base. The selected encoding determines how the supplied text is divided into tokens; it does not identify a model from the writing or certify compatibility with every provider. Changing the encoding can change the count, so record that choice whenever you compare revisions or share a report. Do not interpret either option as a verified token counter for Claude, Gemini, or another provider’s complete request. The tokenizer coverage guide explains how to keep an encoding-specific result separate from claims about an application or service.
Words, characters, and tokens answer different questions. A short-looking identifier, punctuation sequence, or multilingual passage can behave differently from an ordinary English sentence under an encoding. This planner uses bundled tokenization rather than dividing a character count by four. Literal spellings that resemble special tokens are counted as ordinary text, not activated as control instructions. The tokens, words, and characters guide is useful when someone is using a document’s visible length as a substitute for a token count. Compare the actual supplied text instead of assuming that a word limit establishes a reliable context requirement.
Whitespace is part of the text being reviewed. Input and import normalize CRLF and standalone CR line endings to LF; otherwise the planner preserves whitespace and Unicode rather than trimming the text or applying Unicode normalization. A blank line, indentation change, or altered punctuation can therefore matter to a comparison.
Unsupported controls and lone UTF-16 surrogates are rejected instead of silently repaired into a different passage. Keep the complete supplied input within the 256 KiB UTF-8 limit. If a source exceeds that boundary, choose a documented excerpt rather than pretending that an omitted remainder has also been counted.

| Check | What to verify |
|---|---|
| Encoding | Choose the tokenizer that fits the model and text. |
| Context | Reserve room for the expected output and other inputs. |
| Cost | Apply the relevant prices and document any caching assumptions. |
Count a current revision before interpreting the result
Prepare the text and assumptions together, then choose Count. Live edits invalidate a prior result because an earlier count should not appear to describe a changed draft. Settings such as capacity, output allowance, rates, cached input, and calls also belong to the revision being counted. Changing one does not silently attach the new setting to an old report.
Count again before copying a report or exporting TXT, CSV, or PDF. This discipline makes a saved result easier to explain: the text, selected encoding, and assumptions were reviewed as one explicit revision rather than assembled from unrelated moments during editing.
Read the section totals before focusing on the overall number. They show whether the supplied instructions, history, sources, or request dominate this particular input. An unexpectedly small history total may indicate that you pasted only a recent exchange; an empty sources section may be intentional or may reveal missing material. Neither observation proves what another application will send.
The overall input total is the sum of four separate text counts. It excludes message wrappers, attachments, tool definitions, tool results that were not pasted, hidden context, provider processing, and any answer that has not actually been supplied as text.
A count is an explicit operation with cancellation and a ten-second deadline, not an invitation to wait indefinitely for an uncertain result. If it fails or is cancelled, resolve the draft or try again before exporting a report; Save JSON remains available for a valid draft.
Editing during a pending job invalidates that job so a late response cannot become the current answer for newer text. Treat errors as boundaries that need attention, not as a zero-token result. Keep a supported project copy when the text matters, and avoid reporting a previous successful total as though it describes the draft currently visible in the editor.
Separate input size from the context budget
Enter a context capacity as your own planning assumption, not as a model specification discovered by the tool. Add an output allowance for the answer space you want to reserve. The budget is the input total plus that allowance. It is not the supplied input alone, and the allowance is not a tokenized answer or a prediction of answer length.
The planner accepts a capacity from one to two million tokens and an allowance from zero to two million tokens. An accepted value only means it fits the worksheet’s rules; it does not establish that any service supports that capacity.
For a purely hypothetical arithmetic exercise, suppose a separate review has established an input of 8,000 tokens, and you assume a capacity of 12,000 with a 3,000-token output allowance. The budget would be 11,000, leaving 1,000 tokens of headroom. These are invented planning quantities, not measured counts for the example text or a named model’s limits.
If the same assumed input used a 5,000-token allowance, the budget would exceed capacity by 1,000. That excess is overflow, not negative free space. A larger allowance can therefore change the planning conclusion without changing the supplied input at all.
Use the context window budget guide to review the difference between a text count and a complete request budget. The worksheet cannot estimate omitted serialization, an application’s hidden additions, or processing outside the pasted material. Headroom here is only the remainder under your stated assumptions, not a guarantee that a real request will fit. Cached input still occupies the full input context and does not create extra space. When a plan overflows, examine the actual task requirements before removing reference material or shrinking the answer allowance merely to make the display look comfortable.


Tell Skye AI what to grow. It runs the phone.
Replace brittle web scripts with native Android automation & plain-language chat.
Make missing prices visible in the cost scenario
The optional price fields are manual USD rates per one million tokens for uncached input, cached input, and output. This page does not supply a provider price table, fetch account-specific rates, convert currencies, or verify your billing arrangement. Enter only assumptions you can explain for the scenario. A blank rate means unknown, never free.
An explicit zero is a deliberate rate assumption and is different from leaving a field empty. Each entered rate must be within zero to 1,000 USD per million tokens, with no more than six decimal places. These are input bounds, not market price claims.
Cost is ready only when every nonzero component has an explicit rate. If an output allowance is positive but its rate is blank, the resulting cost is unknown even when both input rates are supplied. A component with zero tokens does not require a rate for the scenario total to be ready.
This distinction helps prevent an incomplete estimate from being presented as a bargain. The output component prices the reserved allowance, not an observed generated answer. A provider might ultimately process or bill different quantities, and this worksheet does not reconcile its assumptions with an invoice or an account dashboard.
The calculation keeps decimal rate arithmetic exact and sums unrounded components before rounding the displayed USD total half-up to six decimal places. A repeated-call scenario multiplies the unrounded call amount before rounding its total; it does not multiply an already rounded display value. Small amounts may therefore differ from a quick calculation using a copied per-call figure.
Interpret the result as a consistent comparison under entered assumptions, not a bill. Taxes, fees, currency conversion, batch discounts, and other commercial adjustments are outside this calculation, so do not add the report to a purchasing decision as though those matters had been checked.
Keep caching and repeated calls as explicit assumptions
Assumed cached input is a manual split within the actual counted input total. It cannot exceed that total, and it does not remove text from the context budget. The remaining input is assigned to the uncached component for cost arithmetic. Moving tokens between these components can change a priced scenario without changing the supplied text or its overall context use. It does not demonstrate that a provider will accept the chosen split. The cached input cost guide develops this distinction when comparing an uncached baseline with a possible cached-input assumption for the same review.
The calls field describes repeated identical calls, from one to one million. Every repetition uses the same counted input and output allowance; the scenario does not grow a conversation after each response. For example, a hypothetical twenty-call comparison means twenty copies of the stated assumptions, not a simulated twenty-turn chat.
No generated answers are added to later history, and no future cache reuse is proved. If your real workflow changes its sources, instructions, history, or task between requests, prepare separate revisions or scenarios that describe those changes instead of treating this multiplier as a model of the entire workflow.
For a Skye or MCP-related planning question, paste only the text you are authorized to review and describe any missing payload separately. Skye uses your own OpenAI or Anthropic key and provider costs; this utility does not inspect Skye, an MCP server, accounts, or bills. Its actual application payload is unknown here. The Skye and MCP token planning guide helps frame that limited review. Tool descriptions, tool results, or other context are outside the count unless you supply their text, and supplying an excerpt still does not prove that it matches the application’s full request.
Compare useful text revisions rather than chasing a small total
Structured text deserves the same explicit scope as ordinary prose. A JSON document, code sample, log excerpt, or configuration fragment is counted as supplied text, not executed or automatically simplified into its meaning. Indentation and repeated field names may contribute to the selected encoding’s count. Removing them can also change readability or remove information a reader needs. The JSON and code token count guide explores comparisons for these materials without treating a short representation as automatically better. Keep an unchanged baseline so you can explain exactly what was removed, reformatted, or retained in the alternative.
Review each section’s job before cutting it. Instructions may contain a genuine output requirement, history may explain an earlier decision, sources may carry evidence, and the request may state the action to take now. Repetition can be accidental, but it can also connect a reference to the question being asked.
The planner provides counts rather than a quality judgment about those choices. Compare a baseline with a purposeful revision, count each current version, and record the reasoning in your normal project documentation. A lower input total does not certify that the revised material preserves intent, accuracy, permission, or usefulness.
Keep comparisons consistent by using the same encoding and clearly stated capacity, allowance, cache, rate, and call assumptions. Otherwise a changed cost or headroom figure may reflect settings rather than edited text. Separate a text reduction experiment from a pricing experiment when the decision needs that distinction. Use the Tools directory for a different planning need instead of expecting this utility to summarize sources, detect a model, or recommend a provider. A practical finish is a version whose text boundary and assumptions another person understands, with unresolved questions still visible rather than concealed by a reassuring total.
Export the whole review and protect the resulting files
Copy report, TXT, CSV, and PDF require a current counted revision and include all four sections regardless of the active editor. The copied report, TXT, and PDF contain complete supplied texts and assumptions, not a redacted summary.
CSV includes one row per section with its text, count, and declared scenario fields; choose safe or literal formula handling deliberately for the receiving spreadsheet application. If PDF generation cannot represent a glyph or exceeds its supported bounds, use a complete supported alternative rather than treating a missing document as a successful partial export.
Inspect downloaded material before sending it to another person.
Save project JSON when you need an editable copy; a valid uncounted draft can be saved, but no counted result is stored. Use Open for the supported project format. Saving is explicit: there is no autosave, background project history, or share URL containing your input. A valid project replaces the draft after validation rather than merging two people’s changes.
Clearing the planner, leaving the page, or a lifecycle freeze erases its in-memory texts, results, and drafts; ordinary loss of focus preserves the session. None of those actions recalls downloaded files or erases someone else’s copy. Name revisions clearly and store them according to the sensitivity of every included section, not just the visible one.
Local tokenization does not make the surrounding website invisible to ordinary website infrastructure. The sandboxed tool does not send supplied text to a model or the public parent page; the parent retains normal website assets and analytics. Do not interpret this as a guarantee against extensions, a compromised device, or later file sharing. Clipboard refusal also remains a real failure, so use an available download rather than assuming a copy succeeded. For a separate product decision, review getting started with SMTasker. That step does not turn this worksheet into a connected AI service or transfer its scenario into a paid account.
For more context, see OpenAI on tokens. When you’re ready to plan social publishing, explore Skye AI Manager or Skye and mcp prompt library.
Review a clearly bounded input
Count your four text sections
Choose an encoding, supply the text you want to inspect, and review a current count alongside your context and cost assumptions.
Keep product setup separate from a text scenario
Review your SMTasker next step
Explore getting started with SMTasker for your separate product setup needs. This free token worksheet does not connect provider accounts or establish paid AI pricing.
Explore the guides
Choose the guide that fits your platform or question.
Cached Input Cost Planning
Separate counted input from assumed cache reuse, reserved output, manual rates, and repeated-call scenarios before comparing costs.
Read the guide →Context Window Budget
Build a four-section input budget, reserve output, interpret overflow, and narrow sources or history without losing essential constraints.
Read the guide →JSON, Code, Tables and URLs
Compare structured text formats without sacrificing field meanings, working code, useful evidence, or readable review copies.
Read the guide →Skye and MCP Token Planning
Separate a Skye or MCP task brief from unknown application context, then reserve room for evidence and replies.
Read the guide →Tokenizer Coverage
Choose an explicit encoding and diagnose differences caused by line endings, Unicode, literal markers, or message overhead.
Read the guide →Tokens, Words and Characters
Compare multilingual text, preserve meaningful whitespace, and understand why words, characters, bytes, and tokens answer different questions.
Read the guide →Questions about text tokens and AI budgets
Does this count the complete request sent by an AI application?
No. It counts instructions, history, sources, and request separately under the selected encoding, then sums them. Hidden context, message wrappers, attachments, and tool material not pasted here are excluded. The result is not a verified count of another application’s payload.
Do o200k_base and cl100k_base identify my model?
No. They are explicit token encoding choices, not model detection or certification for every provider. Record the selected encoding when comparing revisions. Literal special-token spellings are treated as ordinary text.
Why can the cost remain unknown after counting?
Every nonzero cost component needs an explicit manual rate. A blank rate means unknown, not zero. An explicit zero is allowed. Output cost uses your output allowance, not an observed answer, and the report is a scenario rather than a bill.
Does assumed cached input free context or confirm a discount?
No. Cached input remains part of the full context total. The chosen split is a manual cost assumption, not proof of cache eligibility or future reuse. Repeated calls keep identical input and output allowance without growing conversation history.
Are exports limited to the section currently visible?
No. Exports include all four supplied sections. Copied text, TXT, and PDF contain complete text and assumptions; CSV includes each section. Save project JSON can keep a valid uncounted draft but stores no counted result. There is no autosave, and clearing the tool does not delete downloaded files.
Put your next prompt to work safely.
Start your 5-day free trial with Skye AI Manager on real hardware.