Ross ROSS = Recommend OSS · open-source software intelligence for agents

dqbd/tiktokenizer

Online playground for OpenAPI tokenizers observed · 2026-08-28

github.com/dqbd/tiktokenizer · homepage · TypeScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

39/100

  • Activity 18
  • Release rhythm 35
  • Longevity 91

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 1280
  • days_rel: n/a
  • days_push: 496
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1678 stars · 185 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

Tiktokenizer is a web-based playground for OpenAI's tiktoken tokenizers that calculates the exact number of tokens in a given prompt. It is a Next.js application built on the T3 stack, available as a hosted site and self-hostable source.

Use cases

  • count tokens in a prompt before sending to the OpenAI API
  • see how text is split into tokens by gpt-4o or other models
  • estimate API costs by measuring token usage of a message
  • compare tokenization across different OpenAI model encodings
  • inspect token boundaries with whitespace visualization
  • test system prompts and chat messages for token limits

When to choose

  • you need a quick, visual way to count tokens for OpenAI models
  • you want to check whether a prompt fits a model's context window
  • you prefer a browser tool over writing tiktoken code yourself

When to avoid

  • you need tokenizers for non-OpenAI models like Llama or Claude
  • you need programmatic token counting in your own code (use tiktoken directly)
  • you need offline tokenization without a web app

Facets

application · maturity stable

nlp developer-tools large-language-models developer-tools tiktoken tokenizer openai token-counting playground nextjs natural-language-processing web-server nodejs

2 sources

Member repositories

RepositoryRoleHealth v2
dqbd/tiktokenizermain39

For agents

markdown · JSON · MCP: product_card(name="dqbd/tiktokenizer")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem