Type a tool name, for example "keyword density" or "transcript".
Calculate TF-IDF scores for your content. Add multiple documents (competitor pages) to calculate IDF and find semantically important terms.
This free TF-IDF calculator scores the words in your page against one or two competitor pages and ranks the 30 terms that stand out most in your content. It is made for SEO writers and editors who want to see which keywords make their copy distinctive, with TF, IDF and TF-IDF values shown for every term.
TF-IDF, short for term frequency-inverse document frequency, is a score that shows how strongly a word characterizes one document compared with a group of documents. A word scores high when you use it often and few of the other documents use it. The method comes from information retrieval and natural language processing, and many text-weighting systems build on it.
Term frequency is how often a word appears in your target text, divided by the total number of words counted in that text. If a word appears 6 times in 200 counted words, its TF is 0.03.
Inverse document frequency measures how rare a word is across all the documents you paste. This calculator uses a smoothed version: IDF = ln((N + 1) / (df + 1)) + 1. Here N is the number of documents and df is how many of them contain the word. A word found in every document gets an IDF of 1, and a word found only in your page gets the highest value.
The TF-IDF score is TF × IDF. It rises when a word is frequent in your text and few competitors use it, and it falls back toward plain TF when everyone uses the word.
You need your own page text and at least one competitor page to get a meaningful comparison. The steps take about two minutes.
If the target box is empty, the tool asks you to enter your target content before it calculates. Paste article text rather than raw page code. If you need the headline structure of a competitor first, the Heading Structure Extractor pulls it out quickly.
A worked example shows why the same word count can produce different scores. Say your target page has 200 counted words and you paste two competitor pages, so N is 3.
| Word | TF and IDF | TF-IDF |
|---|---|---|
| schema (6 times, only your page) | 0.0300 and 1.6931 | 0.0508 |
| markup (4 times, your page and 1 competitor) | 0.0200 and 1.2877 | 0.0258 |
| guide (6 times, all 3 pages) | 0.0300 and 1.0000 | 0.0300 |
For "schema", df is 1, so IDF is ln(4/2) + 1 = 1.6931, and the score is 0.03 × 1.6931 = 0.0508. For "guide", df is 3, so IDF is ln(4/4) + 1 = 1, and the score equals its TF of 0.03.
Both words appear 6 times, yet "schema" ranks higher because neither competitor uses it. That tells you "schema" is a distinctive part of your page, while "guide" is common ground.
Read the table from the top: the highest TF-IDF scores are the words that define your page most strongly compared with the pages you pasted. The five highest ranks are highlighted so your most distinctive terms are easy to spot.
A good result puts your core topic words at the top. A page about trail running shoes should rank words like "trail", "cushioning" and "outsole" high. A poor result puts generic words such as "website", "tips" or "service" at the top, or leaves your main topic word far down the list.
The fix is usually editorial: work the missing topic words into headings, intro text and body copy where they fit naturally, then recalculate.
Because the formula adds 1, IDF never drops below 1. With three documents it runs from 1.0 to about 1.69, and with two documents from 1.0 to about 1.41. If you paste only your own text, every IDF is 1 and the score equals TF. So frequency still drives the ranking, and adding references only boosts words your competitors skip.
The table only scores words that appear in your target text. To see what a competitor emphasizes that you do not, swap the roles: paste the competitor page as the target and your page as a reference. Their top terms that are absent from your copy are your content gaps.
Anyone who writes or edits web copy and wants evidence about wording, not guesses, can use it. Typical situations include:
Better inputs give more reliable results. These habits keep your comparison honest.
If a word you used often is missing, check its length and spelling. If your brand name tops the list, that is normal, since competitors rarely use it. Ignore it and look at the next terms. If every score looks similar, your references probably share most of your vocabulary, which means your page is not very distinctive.
This is a content analysis aid, not a ranking score. Google has not said it ranks pages by TF-IDF values, and modern search engines weigh far more than word statistics. Related methods such as BM25 also adjust for document length, which this classic calculation does not.
Other calculators and code libraries use different word lists and formulas, so their numbers will not match exactly.
Use the results to decide which topic words your page needs more of, which ones it already owns, and which ones competitors cover that you skip. Once the copy is solid, you can mark up its questions with the FAQ Schema Generator, and you can find more checks in the On-Page SEO & Meta Tags tools. Paste your content into the boxes above and run the calculation to see your top terms now.
Your report has been submitted. We will look into this issue.
A VPN changes your network exit. It does not guarantee anonymity.
Themes, plugins, code, video, audio, graphics & more from 90,000+ authors.
Web Development
Design & Media
Unlimited Access
Explore Envato Market