Embed builder
Drop the token counter into any blog, docs site, or knowledge base. Free, no signup, no key. Pick a model, theme, and size; copy the snippet.
Why embed it?
If you write about LLM cost or tokenization, your readers usually leave your page to check a counter. The embed keeps them where they are, while crediting the tool back to howmanytokens.io. No tracking, no ads in the widget, no signup required.
Attribution
The widget shows a small Powered by howmanytokens.io link in the bottom-right. Please keep it — it's the only ask in exchange for free hosting. If you have a specific use case where the link causes a problem (e.g., a printed PDF), get in touch.
Parameters reference
model— narrow the table to a single model by slug (e.g.?model=gpt-5)theme— forcelightordark; omit for system-awarecompact— set to1to hide the char/word counters + output slider