Claude Token Counter Updated with Model Comparison Feature

✍️ OpenClawRadar📅 Published: April 20, 2026🔗 Source
Claude Token Counter Updated with Model Comparison Feature
Ad

Tool Update: Model Comparison Added

Simon Willison upgraded his Claude Token Counter tool to add the ability to run the same count against different models for comparison. The tool accepts any Claude model ID, with options for four notable current models: Opus 4.7 and 4.6, Sonnet 4.6, and Haiku 4.5.

Key Findings from Tokenizer Changes

According to Anthropic's Opus 4.7 announcement, the model uses an updated tokenizer that improves text processing but causes the same input to map to more tokens—roughly 1.0–1.35× depending on content type.

Specific test results:

  • When pasting the Opus 4.7 system prompt into the token counting tool, Opus 4.7 used 1.46× the number of tokens as Opus 4.6
  • Opus 4.7 maintains the same pricing as Opus 4.6 ($5 per million input tokens, $25 per million output tokens), but token inflation means it could be around 40% more expensive
  • Claude Opus 4.7 is the first model to change the tokenizer, making comparisons primarily relevant between 4.7 and 4.6
Ad

Image Token Counting Results

The token counter tool also accepts images. Opus 4.7 has improved image support, accepting images up to 2,576 pixels on the long edge (~3.75 megapixels), more than three times as many as prior Claude models.

Image test results:

  • A 3456×2234 pixel 3.7MB PNG showed 3.01× more tokens for Opus 4.7 compared to 4.6
  • Update: This 3× increase is entirely due to Opus 4.7 handling higher resolutions. A 682×318 pixel image took 314 tokens with Opus 4.7 and 310 with Opus 4.6—effectively the same cost

PDF Processing Comparison

For a 15MB, 30-page text-heavy PDF:

  • Opus 4.7 reported 60,934 tokens
  • Opus 4.6 reported 56,482 tokens
  • This represents a 1.08× multiplier, significantly lower than the multiplier for raw text

This tool is useful for developers who need to estimate costs and understand token usage differences between Claude model versions, particularly when planning migrations or comparing processing efficiency.

📖 Read the full source: HN AI Agents

Ad

👀 See Also

OpenClaw Codex-GPT5.4 Task Validation Loop Issue
Tools

OpenClaw Codex-GPT5.4 Task Validation Loop Issue

A developer reports Codex-GPT5.4 through OpenClaw gets stuck in a task validation loop during autonomous project work, repeatedly identifying and confirming tasks without executing them. They've implemented workspace controls including TASKS.md, heartbeat rules, and persona files to address the issue.

OpenClawRadar
MCP Server for TypeScript Projects Replaces Claude Code's Grep Pattern with Indexed Symbol Lookups
Tools

MCP Server for TypeScript Projects Replaces Claude Code's Grep Pattern with Indexed Symbol Lookups

A developer built an MCP server that replaces Claude Code's grep-and-guess pattern with indexed symbol lookups for TypeScript projects. The tool maintains a live SQLite index of symbols, call sites, imports, and class hierarchy, reducing token usage by 63-79% in tests.

OpenClawRadar
Open-source trust scoring hook for Claude Code monitors sessions, blocks protected paths
Tools

Open-source trust scoring hook for Claude Code monitors sessions, blocks protected paths

A developer built a Python hook that scores every Claude Code session on reliability, scope, and cost dimensions, blocks access to protected paths like .env files, and hash-chains events for tamper detection. The single-file tool is available on GitHub.

OpenClawRadar
LLM Architecture Gallery: Visual Reference for Model Designs
Tools

LLM Architecture Gallery: Visual Reference for Model Designs

Sebastian Raschka's LLM Architecture Gallery collects architecture figures and fact sheets from The Big LLM Architecture Comparison and A Dream of Spring for Open-Weight LLMs, with detailed specs for models like Llama 3 8B, DeepSeek V3, and Gemma 3 27B.

OpenClawRadar