{"id":72572,"date":"2026-11-28T13:18:20","date_gmt":"2026-11-28T07:48:20","guid":{"rendered":"https:\/\/www.quickonlinetips.com\/archives\/?page_id=72572"},"modified":"2026-11-28T13:18:20","modified_gmt":"2026-11-28T07:48:20","slug":"keyword-density-checker","status":"publish","type":"page","link":"https:\/\/www.quickonlinetips.com\/archives\/tools\/keyword-density-checker\/","title":{"rendered":"Keyword Density Checker: Count Keywords in Your Text"},"content":{"rendered":"<p>Use this free <strong>keyword density checker<\/strong> to see which words and phrases you use most in an article. Paste your text and you get the word count, the top single words, the top two-word and three-word phrases, and the density of your focus keyword.<\/p>\n<div class=\"qt-tool\" id=\"qt-kd\"><p class=\"qt-label\" style=\"font-size:1.15em;margin:0 0 10px\"><strong>Step 1:<\/strong> Paste your text<\/p><div class=\"qt-field\"><label for=\"qt-kd-text\">Your text<\/label><textarea id=\"qt-kd-text\" rows=\"10\" placeholder=\"Paste your article or page text here\" style=\"width:100%;box-sizing:border-box\"><\/textarea><\/div><div class=\"qt-field\"><label for=\"qt-kd-focus\">Focus keyword or phrase (optional)<\/label><input type=\"text\" id=\"qt-kd-focus\" placeholder=\"for example: domain name\" autocomplete=\"off\"><\/div><p><label><input type=\"checkbox\" id=\"qt-kd-stop\" checked> Ignore common words such as the, and, of (recommended)<\/label><\/p><p class=\"qt-label\" style=\"font-size:1.15em;margin:18px 0 10px\"><strong>Step 2:<\/strong> Press Check density, then read the result in the green box<\/p><div class=\"qt-row\"><button type=\"button\" class=\"qt-btn qt-btn-big\" id=\"qt-kd-go\">Check density<\/button><button type=\"button\" class=\"qt-btn qt-btn-ghost\" id=\"qt-kd-copy\">Copy results<\/button><button type=\"button\" class=\"qt-btn qt-btn-ghost qtx-nomark\" id=\"qt-kd-reset\">\u21ba Start over<\/button><\/div><div class=\"qt-status\" id=\"qt-kd-status\" aria-live=\"polite\"><\/div><div id=\"qt-kd-out\"><\/div><p class=\"qt-note\"><strong>Private by design:<\/strong> Your text is counted in your browser. Nothing you paste is sent to or stored on our server.<\/p><\/div>\n<script>(function () { function qtReady(fn) { if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', fn); } else { fn(); } } function qtCopy(text, statusEl, okMsg) { function done(ok) { if (statusEl) { statusEl.textContent = ok ? (okMsg || 'Copied to clipboard.') : 'Press Ctrl+C (or Cmd+C) to copy.'; } } function fallback() { var ta = document.createElement('textarea'); ta.value = text; ta.setAttribute('readonly', ''); ta.style.position = 'fixed'; ta.style.top = '-1000px'; document.body.appendChild(ta); ta.select(); var ok = false; try { ok = document.execCommand('copy'); } catch (e) { ok = false; } document.body.removeChild(ta); done(ok); } if (navigator.clipboard) { if (window.isSecureContext) { navigator.clipboard.writeText(text).then(function () { done(true); }, fallback); return; } } fallback(); } function el(tag, cls, text) { var n = document.createElement(tag); if (cls) { n.className = cls; } if (text !== undefined) { n.textContent = text; } return n; } qtReady(function () { var box = document.getElementById('qt-kd-text'); if (!box) { return; } function $(id) { return document.getElementById(id); } var status = $('qt-kd-status'), out = $('qt-kd-out'), last = ''; var NL = String.fromCharCode(10), APOS = String.fromCharCode(8217); var STOP = ('a about above after again all also am an and any are as at be because been before being below between both but by can did do does doing down during each few for from further had has have having he her here hers him his how i if in into is it its just me more most my no nor not of off on once only or other our out over own same she should so some such than that the their them then there these they this those through to too under until up very was we were what when where which while who why will with would you your').split(' '); function fail(msg) { status.textContent = msg; status.classList.add('qt-error'); } function isWord(c) { return c.toLowerCase() !== c.toUpperCase() ? true : (c === APOS ? true : (c === String.fromCharCode(39) ? true : (c >= '0' ? '9' >= c : false))); } function tokens(text) { var out2 = [], cur = ''; text = text.toLowerCase(); for (var i = 0; text.length > i; i++) { var c = text.charAt(i); if (isWord(c)) { cur += (c === APOS ? String.fromCharCode(39) : c); } else { if (cur) { out2.push(cur); cur = ''; } } } if (cur) { out2.push(cur); } return out2.map(function (w) { while (w.charAt(0) === String.fromCharCode(39)) { w = w.slice(1); } while (w.charAt(w.length - 1) === String.fromCharCode(39)) { w = w.slice(0, w.length - 1); } return w; }).filter(function (w) { return w; }); } function isStop(w) { return STOP.indexOf(w) > -1; } function grams(w, n, skip) { var m = {}; for (var i = 0; w.length >= i + n; i++) { var g = w.slice(i, i + n); if (skip) { if (isStop(g[0])) { continue; } if (isStop(g[n - 1])) { continue; } } var k = g.join(' '); m[k] = (m[k] || 0) + 1; } return m; } function top(m, min, nmax) { var a = Object.keys(m).filter(function (k) { return m[k] >= min; }).map(function (k) { return [k, m[k]]; }); a.sort(function (x, y) { return y[1] - x[1] || (x[0] > y[0] ? 1 : -1); }); return a.slice(0, nmax); } function pct(n, tot) { return (Math.round(n \/ tot * 10000) \/ 100).toFixed(2) + '%'; } function table(title, rows, tot, minNote) { var wrap = el('div', ''); var h = el('p', '', title); h.style.fontWeight = '700'; h.style.margin = '14px 0 6px'; wrap.appendChild(h); var t = el('table', 'qt-table'); t.style.display = 'table'; t.style.tableLayout = 'fixed'; t.style.width = '100%'; var th = el('thead'); var hr = el('tr'); ['Keyword', 'Count', 'Density'].forEach(function (x) { var thx = el('th', '', x); thx.style.width = x === 'Keyword' ? '50%' : '25%'; hr.appendChild(thx); }); th.appendChild(hr); t.appendChild(th); var tb = el('tbody'); rows.forEach(function (r) { var tr = el('tr'); tr.appendChild(el('td', '', r[0])); tr.appendChild(el('td', '', String(r[1]))); tr.appendChild(el('td', '', pct(r[1], tot))); tb.appendChild(tr); }); if (rows.length === 0) { var tr2 = el('tr'); var td = el('td', '', minNote); td.colSpan = 3; tr2.appendChild(td); tb.appendChild(tr2); } t.appendChild(tb); wrap.appendChild(t); return wrap; } function run() { status.classList.remove('qt-error'); status.textContent = ''; out.textContent = ''; last = ''; var text = box.value; if (!text.trim()) { fail('Step 1 first: paste or type your text.'); return; } if (text.length > 1000000) { fail('That text is too long. Please keep it under 1,000,000 characters.'); return; } var w = tokens(text), tot = w.length; if (tot === 0) { fail('No words found in that text.'); return; } var skip = $('qt-kd-stop').checked; var uniq = {}; w.forEach(function (x) { uniq[x] = 1; }); var one = {}; w.forEach(function (x) { if (skip) { if (isStop(x)) { return; } } if (x.length > 1) { one[x] = (one[x] || 0) + 1; } }); var ans = el('div', 'qtx-answer'); ans.appendChild(el('p', 'qtx-answer-h', 'Your answer: keyword density')); var st = el('div', 'qt-stats'); var items = [[String(tot), 'Words'], [String(Object.keys(uniq).length), 'Unique words'], [Math.max(1, Math.round(tot \/ 200)) + ' min', 'Reading time']]; var fk = $('qt-kd-focus').value.trim().toLowerCase(); if (fk) { var fw = tokens(fk); if (fw.length > 0) { var cnt = 0; for (var i = 0; w.length >= i + fw.length; i++) { var hit = true; for (var j = 0; fw.length > j; j++) { if (w[i + j] !== fw[j]) { hit = false; break; } } if (hit) { cnt++; } } items.push([cnt + ' (' + pct(cnt, tot) + ')', 'Focus keyword']); } } items.forEach(function (it) { var b = el('div', 'qt-stat'); b.appendChild(el('span', 'qt-lab', it[1])); b.appendChild(el('span', 'qt-num', it[0])); st.appendChild(b); }); ans.appendChild(st); var lines = ['Words: ' + tot]; var t1 = top(one, 1, 10), t2 = top(grams(w, 2, skip), 2, 10), t3 = top(grams(w, 3, skip), 2, 10); ans.appendChild(table('Top single words', t1, tot, 'No words to show.')); ans.appendChild(table('Top two-word phrases', t2, tot, 'No two-word phrase is used more than once.')); ans.appendChild(table('Top three-word phrases', t3, tot, 'No three-word phrase is used more than once.')); [['Single words', t1], ['Two-word phrases', t2], ['Three-word phrases', t3]].forEach(function (g) { lines.push(NL + g[0] + ':'); g[1].forEach(function (r) { lines.push(r[0] + ' - ' + r[1] + ' (' + pct(r[1], tot) + ')'); }); }); last = lines.join(NL); ans.appendChild(el('p', 'qt-note', 'Density is how often a word or phrase appears divided by the total number of words. There is no magic percentage: write naturally for people, and use this check to spot words you repeat too much.')); out.appendChild(ans); status.textContent = 'Done. Read your answer in the green box.'; } $('qt-kd-go').addEventListener('click', run); $('qt-kd-copy').addEventListener('click', function () { if (last) { qtCopy(last, status, 'Results copied.'); } else { status.textContent = 'Step 2 first: press Check density.'; } }); $('qt-kd-reset').addEventListener('click', function () { box.value = ''; $('qt-kd-focus').value = ''; $('qt-kd-stop').checked = true; out.textContent = ''; status.textContent = ''; status.classList.remove('qt-error'); last = ''; box.focus(); }); }); })();<\/script>\n<div class=\"qt-next\"><p class=\"qt-next-h\">Try another free tool<\/p><div class=\"qt-next-g\"><a href=\"https:\/\/www.quickonlinetips.com\/archives\/tools\/meta-tag-generator\/\">Meta Tag Generator<\/a><a href=\"https:\/\/www.quickonlinetips.com\/archives\/tools\/character-counter\/\">Character Counter<\/a><a href=\"https:\/\/www.quickonlinetips.com\/archives\/tools\/utm-link-builder\/\">UTM Link Builder<\/a><a href=\"https:\/\/www.quickonlinetips.com\/archives\/tools\/robots-txt-generator\/\">Robots.txt Generator<\/a><a href=\"https:\/\/www.quickonlinetips.com\/archives\/tools\/online-notepad\/\">Online Notepad<\/a><a href=\"https:\/\/www.quickonlinetips.com\/archives\/tools\/whois-lookup\/\">WHOIS Lookup<\/a><\/div><\/div>\n<p><em>This tool counts words in your browser and gives general information only. It does not predict search rankings. QuickOnlineTips is not affiliated with any search engine.<\/em><\/p>\n<p><strong>Quick answer:<\/strong> Paste your text, type your focus keyword if you have one, and click <strong>Check density<\/strong>. Density is how often a word or phrase appears divided by your total word count.<\/p>\n<h2>How to check keyword density<\/h2>\n<ol>\n<li>Paste your article or page text into the box.<\/li>\n<li>Optionally type the keyword or phrase you want to focus on.<\/li>\n<li>Leave &#8220;ignore common words&#8221; ticked so words like &#8220;the&#8221; and &#8220;and&#8221; do not crowd the results.<\/li>\n<li>Click <strong>Check density<\/strong> and read the tables in the green box.<\/li>\n<\/ol>\n<h2>What is a good keyword density?<\/h2>\n<p>There is no magic number. Search engines do not reward a fixed percentage, and stuffing a keyword into a page makes it harder to read. Use the check to spot words you repeat too often, and to confirm your main topic really is the main topic of the text.<\/p>\n<table class=\"qt-ref\">\n<thead>\n<tr>\n<th>What you see<\/th>\n<th>What it may mean<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Focus keyword never appears<\/td>\n<td>The text may not be clearly about your topic.<\/td>\n<\/tr>\n<tr>\n<td>Focus keyword appears in every other sentence<\/td>\n<td>The text probably sounds repetitive. Use natural variations.<\/td>\n<\/tr>\n<tr>\n<td>Unrelated words at the top of the list<\/td>\n<td>The page may be drifting off topic.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Tips<\/h2>\n<ul>\n<li><strong>Write for people first.<\/strong> Use the main keyword where it fits naturally, such as in the title, the first paragraph and a heading.<\/li>\n<li><strong>Use related words and phrases<\/strong> instead of repeating one keyword.<\/li>\n<li>Check your text length with the <a href=\"https:\/\/www.quickonlinetips.com\/archives\/tools\/character-counter\/\">character counter<\/a>, and read our <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2010\/11\/seo-checklist\/\">SEO checklist<\/a> for the other basics.<\/li>\n<li>Write your page title and description with the <a href=\"https:\/\/www.quickonlinetips.com\/archives\/tools\/meta-tag-generator\/\">meta tag generator<\/a>.<\/li>\n<\/ul>\n<h2>FAQ<\/h2>\n<h3>Is this keyword density checker free?<\/h3>\n<p>Yes. It is free, needs no sign-up, and runs in your browser. Your text is not sent to or stored on our server.<\/p>\n<h3>How is keyword density worked out?<\/h3>\n<p>The number of times a word or phrase appears, divided by the total number of words, shown as a percentage.<\/p>\n<h3>Why are common words left out?<\/h3>\n<p>Words like &#8220;the&#8221;, &#8220;and&#8221; and &#8220;of&#8221; appear in every text and say nothing about your topic. You can untick the option to include them.<\/p>\n<h3>Does it work with other languages?<\/h3>\n<p>It counts words in any language that separates words with spaces. The list of common words to ignore is English only.<\/p>\n<h3>Is there a text length limit?<\/h3>\n<p>Yes, up to about one million characters, which is far more than any normal article.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Use this free keyword density checker to see which words and phrases you use most in an article. Paste your text and you get the word count, the top single words, the top two-word and three-word phrases, and the density of your focus keyword. This tool counts words in your browser and gives general information&#8230;<\/p>\n","protected":false},"author":7,"featured_media":72582,"parent":65595,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"class_list":["post-72572","page","type-page","status-publish","has-post-thumbnail","hentry"],"_links":{"self":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/pages\/72572","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/comments?post=72572"}],"version-history":[{"count":1,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/pages\/72572\/revisions"}],"predecessor-version":[{"id":72586,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/pages\/72572\/revisions\/72586"}],"up":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/pages\/65595"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media\/72582"}],"wp:attachment":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media?parent=72572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}