{"id":7,"date":"2026-06-26T12:06:35","date_gmt":"2026-06-26T16:06:35","guid":{"rendered":"https:\/\/howmanytokens.org\/?page_id=7"},"modified":"2026-06-26T12:49:08","modified_gmt":"2026-06-26T16:49:08","slug":"home","status":"publish","type":"page","link":"https:\/\/howmanytokens.org\/","title":{"rendered":""},"content":{"rendered":"\n<style>\n.hmt-wrap { max-width: 760px; margin: 0 auto; padding: 2rem 1rem; font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif; color: #1a1a1a; }\n.hmt-hero { text-align: center; margin-bottom: 2rem; }\n.hmt-hero h1 { font-size: 2rem; font-weight: 700; margin: 0 0 0.5rem; color: #111; }\n.hmt-hero p { font-size: 1.1rem; color: #555; margin: 0; }\n.hmt-textarea { width: 100%; box-sizing: border-box; min-height: 180px; font-size: 15px; padding: 14px 16px; border: 1.5px solid #d0d0d0; border-radius: 10px; background: #fff; color: #1a1a1a; resize: vertical; line-height: 1.6; font-family: inherit; }\n.hmt-textarea:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }\n.hmt-textarea::placeholder { color: #aaa; }\n.hmt-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 1.25rem 0; }\n.hmt-stat { background: #f8f8f8; border-radius: 10px; padding: 14px 16px; }\n.hmt-stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #888; margin: 0 0 4px; }\n.hmt-stat-value { font-size: 24px; font-weight: 700; color: #111; margin: 0; }\n.hmt-stat-sub { font-size: 12px; color: #999; margin: 3px 0 0; }\n.hmt-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0.5rem 0 1.5rem; }\n.hmt-chip { font-size: 13px; color: #555; background: #f0f0f0; border-radius: 20px; padding: 5px 12px; }\n.hmt-section-label { font-size: 13px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 10px; }\ntable.hmt-table { width: 100%; border-collapse: collapse; }\ntable.hmt-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: #aaa; font-weight: 600; padding: 6px 10px; text-align: left; border-bottom: 1px solid #eee; }\ntable.hmt-table th:not(:first-child) { text-align: right; }\ntable.hmt-table td { padding: 11px 10px; font-size: 14px; color: #222; border-bottom: 1px solid #f0f0f0; }\ntable.hmt-table td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }\ntable.hmt-table tr:last-child td { border-bottom: none; }\ntable.hmt-table tr:hover td { background: #fafafa; }\n.hmt-badge { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 20px; margin-left: 5px; }\n.hmt-b-openai { background: #e6f4ea; color: #1a6e30; }\n.hmt-b-anthropic { background: #fff0e6; color: #7a3a10; }\n.hmt-b-google { background: #e8eeff; color: #1a3a8a; }\n.hmt-b-meta { background: #f0e8ff; color: #4a1a8a; }\n.hmt-b-deepseek { background: #e8f0ff; color: #1a3060; }\n.hmt-cheapest { font-size: 11px; color: #16a34a; font-weight: 600; margin-left: 6px; }\n.hmt-empty { text-align: center; padding: 2.5rem 1rem; color: #bbb; font-size: 15px; }\n.hmt-note { font-size: 12px; color: #aaa; margin-top: 10px; }\n.hmt-faq { margin-top: 3rem; border-top: 1px solid #eee; padding-top: 2rem; }\n.hmt-faq h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 1.5rem; }\n.hmt-faq details { border-bottom: 1px solid #eee; padding: 1rem 0; }\n.hmt-faq summary { font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; color: #111; }\n.hmt-faq summary::-webkit-details-marker { display: none; }\n.hmt-faq summary::after { content: \" +\"; color: #aaa; float: right; }\n.hmt-faq details[open] summary::after { content: \" -\"; }\n.hmt-faq p { font-size: 14px; color: #555; line-height: 1.7; margin: 0.75rem 0 0; }\n<\/style>\n\n<div class=\"hmt-wrap\">\n  <div class=\"hmt-hero\">\n    <h1>How many tokens is your text?<\/h1>\n    <p>Paste anything: a prompt, email, or document and see the token count and API cost across 10 AI models instantly.<\/p>\n  <\/div>\n\n  <textarea class=\"hmt-textarea\" id=\"hmt-input\" placeholder=\"Paste your text, prompt, or document here...\" oninput=\"hmtCalc()\"><\/textarea>\n\n  <div id=\"hmt-results\" style=\"display:none;\">\n    <div class=\"hmt-stat-grid\" id=\"hmt-stats\"><\/div>\n    <div class=\"hmt-chips\" id=\"hmt-chips\"><\/div>\n    <p class=\"hmt-section-label\">Estimated API cost by model<\/p>\n    <table class=\"hmt-table\">\n      <thead><tr><th>Model<\/th><th>Input cost<\/th><th>Output cost*<\/th><th>Total<\/th><\/tr><\/thead>\n      <tbody id=\"hmt-rows\"><\/tbody>\n    <\/table>\n    <p class=\"hmt-note\">*Output estimated at 250 tokens (typical short response). Prices per million tokens as of June 2026.<\/p>\n  <\/div>\n\n  <div id=\"hmt-empty\" class=\"hmt-empty\">Paste any text above to see word count, token count, and estimated API cost.<\/div>\n\n  <div class=\"hmt-faq\">\n    <h2>Common questions<\/h2>\n\n    <details>\n      <summary>How many tokens is 1,000 words?<\/summary>\n      <p>On average, 1,000 words is approximately 1,333 tokens. This is because one token equals roughly 0.75 words (or 4 characters) in English. Code, non-English text, and special characters may use more tokens per word.<\/p>\n    <\/details>\n\n    <details>\n      <summary>How do you calculate AI API cost?<\/summary>\n      <p>AI API cost is calculated by multiplying your token count by the model price per million tokens. Most providers charge separately for input tokens (your prompt) and output tokens (the model response). Output tokens are typically 3 to 6 times more expensive than input tokens.<\/p>\n    <\/details>\n\n    <details>\n      <summary>What is the difference between GPT and Claude token pricing?<\/summary>\n      <p>As of 2026, Claude Haiku 4.5 is one of the most affordable options at $0.80 per million input tokens, while Claude Sonnet 4.6 sits at $3.00. GPT-4.1 Nano starts at just $0.10 per million input tokens, making it a strong choice for high-volume tasks. Use the calculator above to compare costs for your specific text.<\/p>\n    <\/details>\n\n    <details>\n      <summary>How many tokens fit in a context window?<\/summary>\n      <p>Context windows vary by model. Many modern models support 128,000 tokens or more, which is roughly 96,000 words or about 400 pages of text. Some models like Gemini 1.5 Pro support up to 1 million tokens. The calculator above shows how many tokens your text uses so you can check if it fits your chosen model.<\/p>\n    <\/details>\n  <\/div>\n<\/div>\n\n<script>\nvar HMT_MODELS = [\n  { name: \"GPT-4.1 Nano\", provider: \"openai\", badge: \"hmt-b-openai\", i: 0.10, o: 0.40 },\n  { name: \"DeepSeek V3\", provider: \"deepseek\", badge: \"hmt-b-deepseek\", i: 0.14, o: 0.28 },\n  { name: \"Gemini 2.5 Flash\", provider: \"google\", badge: \"hmt-b-google\", i: 0.15, o: 0.60 },\n  { name: \"Llama 3.3 70B\", provider: \"meta\", badge: \"hmt-b-meta\", i: 0.23, o: 0.40 },\n  { name: \"GPT-5 mini\", provider: \"openai\", badge: \"hmt-b-openai\", i: 0.40, o: 1.60 },\n  { name: \"Claude Haiku 4.5\", provider: \"anthropic\", badge: \"hmt-b-anthropic\", i: 0.80, o: 4.00 },\n  { name: \"Gemini 2.5 Pro\", provider: \"google\", badge: \"hmt-b-google\", i: 1.25, o: 10.00 },\n  { name: \"GPT-4o\", provider: \"openai\", badge: \"hmt-b-openai\", i: 2.50, o: 10.00 },\n  { name: \"Claude Sonnet 4.6\", provider: \"anthropic\", badge: \"hmt-b-anthropic\", i: 3.00, o: 15.00 },\n  { name: \"Claude Opus 4.6\", provider: \"anthropic\", badge: \"hmt-b-anthropic\", i: 5.00, o: 25.00 }\n];\nvar HMT_OUT = 250;\n\nfunction hmtTokens(t) { return Math.round(t.length \/ 4); }\nfunction hmtWords(t) { return t.trim() ? t.trim().split(\/\\s+\/).length : 0; }\nfunction hmtCost(n, rate) { return (n \/ 1000000) * rate; }\nfunction hmtFmt(d) {\n  if (d < 0.000001) return \"$0.000001\";\n  if (d < 0.01) return \"$\" + d.toFixed(6);\n  if (d < 1) return \"$\" + d.toFixed(4);\n  return \"$\" + d.toFixed(2);\n}\n\nfunction hmtCalc() {\n  var text = document.getElementById(\"hmt-input\").value;\n  var res = document.getElementById(\"hmt-results\");\n  var emp = document.getElementById(\"hmt-empty\");\n  if (!text.trim()) { res.style.display = \"none\"; emp.style.display = \"block\"; return; }\n  res.style.display = \"block\"; emp.style.display = \"none\";\n\n  var chars = text.length;\n  var words = hmtWords(text);\n  var tokens = hmtTokens(text);\n  var pages = (words \/ 250).toFixed(1);\n  var mins = Math.max(1, Math.round(words \/ 200));\n\n  document.getElementById(\"hmt-stats\").innerHTML =\n    '<div class=\"hmt-stat\"><p class=\"hmt-stat-label\">Characters<\/p><p class=\"hmt-stat-value\">' + chars.toLocaleString() + '<\/p><\/div>' +\n    '<div class=\"hmt-stat\"><p class=\"hmt-stat-label\">Words<\/p><p class=\"hmt-stat-value\">' + words.toLocaleString() + '<\/p><\/div>' +\n    '<div class=\"hmt-stat\"><p class=\"hmt-stat-label\">Tokens<\/p><p class=\"hmt-stat-value\">' + tokens.toLocaleString() + '<\/p><p class=\"hmt-stat-sub\">~1 token per 4 chars<\/p><\/div>' +\n    '<div class=\"hmt-stat\"><p class=\"hmt-stat-label\">Pages<\/p><p class=\"hmt-stat-value\">' + pages + '<\/p><p class=\"hmt-stat-sub\">at 250 words\/page<\/p><\/div>';\n\n  document.getElementById(\"hmt-chips\").innerHTML =\n    '<span class=\"hmt-chip\">' + mins + ' min read<\/span>' +\n    '<span class=\"hmt-chip\">' + tokens.toLocaleString() + ' input tokens<\/span>';\n\n  var costs = HMT_MODELS.map(function(m) {\n    var ic = hmtCost(tokens, m.i);\n    var oc = hmtCost(HMT_OUT, m.o);\n    return { name: m.name, badge: m.badge, provider: m.provider, ic: ic, oc: oc, total: ic + oc };\n  }).sort(function(a, b) { return a.total - b.total; });\n\n  document.getElementById(\"hmt-rows\").innerHTML = costs.map(function(m, i) {\n    return '<tr><td>' + m.name +\n      '<span class=\"hmt-badge ' + m.badge + '\">' + m.provider + '<\/span>' +\n      (i === 0 ? '<span class=\"hmt-cheapest\">cheapest<\/span>' : '') +\n      '<\/td><td>' + hmtFmt(m.ic) + '<\/td><td>' + hmtFmt(m.oc) + '<\/td><td style=\"font-weight:600;\">' + hmtFmt(m.total) + '<\/td><\/tr>';\n  }).join(\"\");\n}\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>How many tokens is your text? Paste anything: a prompt, email, or document and see the token count and API cost across 10 AI models instantly. Estimated API cost by model Model Input cost Output cost* Total *Output estimated at 250 tokens (typical short response). Prices per million tokens as of June 2026. Paste any [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-no-title","meta":{"footnotes":""},"class_list":["post-7","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How Many Tokens - Free AI Token &amp; Cost Calculator<\/title>\n<meta name=\"description\" content=\"Paste any text and instantly see word count, token count, and API cost across GPT, Claude, Gemini, DeepSeek and more. Free, no signup required.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/howmanytokens.org\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How Many Tokens - Free AI Token &amp; Cost Calculator\" \/>\n<meta property=\"og:description\" content=\"Paste any text and instantly see word count, token count, and API cost across GPT, Claude, Gemini, DeepSeek and more. Free, no signup required.\" \/>\n<meta property=\"og:url\" content=\"http:\/\/howmanytokens.org\/\" \/>\n<meta property=\"og:site_name\" content=\"How Many Tokens\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-26T16:49:08+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/howmanytokens.org\\\/\",\"url\":\"http:\\\/\\\/howmanytokens.org\\\/\",\"name\":\"How Many Tokens - Free AI Token & Cost Calculator\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/howmanytokens.org\\\/#website\"},\"datePublished\":\"2026-06-26T16:06:35+00:00\",\"dateModified\":\"2026-06-26T16:49:08+00:00\",\"description\":\"Paste any text and instantly see word count, token count, and API cost across GPT, Claude, Gemini, DeepSeek and more. Free, no signup required.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/howmanytokens.org\\\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/howmanytokens.org\\\/#website\",\"url\":\"http:\\\/\\\/howmanytokens.org\\\/\",\"name\":\"How Many Tokens\",\"description\":\"Free AI Token &amp; Cost Calculator\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\\\/\\\/howmanytokens.org\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How Many Tokens - Free AI Token & Cost Calculator","description":"Paste any text and instantly see word count, token count, and API cost across GPT, Claude, Gemini, DeepSeek and more. Free, no signup required.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/howmanytokens.org\/","og_locale":"en_US","og_type":"article","og_title":"How Many Tokens - Free AI Token & Cost Calculator","og_description":"Paste any text and instantly see word count, token count, and API cost across GPT, Claude, Gemini, DeepSeek and more. Free, no signup required.","og_url":"http:\/\/howmanytokens.org\/","og_site_name":"How Many Tokens","article_modified_time":"2026-06-26T16:49:08+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/howmanytokens.org\/","url":"http:\/\/howmanytokens.org\/","name":"How Many Tokens - Free AI Token & Cost Calculator","isPartOf":{"@id":"http:\/\/howmanytokens.org\/#website"},"datePublished":"2026-06-26T16:06:35+00:00","dateModified":"2026-06-26T16:49:08+00:00","description":"Paste any text and instantly see word count, token count, and API cost across GPT, Claude, Gemini, DeepSeek and more. Free, no signup required.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/howmanytokens.org\/"]}]},{"@type":"WebSite","@id":"http:\/\/howmanytokens.org\/#website","url":"http:\/\/howmanytokens.org\/","name":"How Many Tokens","description":"Free AI Token &amp; Cost Calculator","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/howmanytokens.org\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/howmanytokens.org\/index.php?rest_route=\/wp\/v2\/pages\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howmanytokens.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/howmanytokens.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/howmanytokens.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/howmanytokens.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7"}],"version-history":[{"count":4,"href":"https:\/\/howmanytokens.org\/index.php?rest_route=\/wp\/v2\/pages\/7\/revisions"}],"predecessor-version":[{"id":8,"href":"https:\/\/howmanytokens.org\/index.php?rest_route=\/wp\/v2\/pages\/7\/revisions\/8"}],"wp:attachment":[{"href":"https:\/\/howmanytokens.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}