Unverified50% confidenceFactExact time
For code, each line consumes approximately 10–15 tokens on average, which is higher than the rate of 1.3 tokens per word for natural language text.
1
Sources
50%
Confidence
Long-term
Relevance
8/9/2026
First Seen
Sources
Reference:为AI Agent打造的本地语义搜索引擎
Related Claims
Unverified150,000 tokens correspond to approximately 100,000–120,000 English words of total input and output, which translates to roughly 3,000–5,000 lines of code plus a large volume of contextual dialogue and terminal interaction records.77% similarUnverified对于英文代码1个token大约对应4个字符,100万token的上下文窗口大约等同于75万个英文单词73% similarUnverifiedClaude Code's pay-as-you-go billing is based on the number of input and output tokens, with approximately 1–2 tokens per English word and approximately 1–2 tokens per Chinese character.72% similarUnverifiedWord文档中一段加粗文字在XML中的token占用量是纯文本内容的10-20倍70% similarUnverified包含印地语注释的代码Token消耗可能比纯英文代码高出20-40%69% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/714160API
curl https://kongchang.com/api/v1/knowledge/claims/714160MCP
get_claim(id=714160)