TF-IDF Calculator
Paste up to 10 documents and instantly see TF, IDF, and TF-IDF scores for every term — no server, no signup.
Documents
| Term | TF | IDF | TF-IDF | Doc Freq |
|---|
No terms match the current filter.
Summary
Paste up to 10 documents and instantly see TF, IDF, and TF-IDF scores for every term — no server, no signup.
How it works
- Paste one document per text box — add more boxes with the "+ Add Document" button.
- Choose a focus document from the dropdown; the table shows that document's TF, global IDF, and TF-IDF for every term.
- TF = (term count in document) / (total tokens in document).
- IDF = ln(total documents / documents containing the term).
- TF-IDF = TF × IDF; higher values indicate terms that are distinctive to the focus document.
- Use the search box to filter terms; click any column header to sort.
Use cases
- Find the most distinctive keywords in a blog post relative to a corpus.
- Compare product descriptions to surface unique selling points.
- Pre-process text data before feeding it into an ML model.
- Understand why a search engine ranks a document for a particular query.
- Identify stop words that carry low IDF and should be removed from an index.
- Evaluate keyword stuffing by spotting terms with high TF but low IDF.
Frequently Asked Questions
Last updated: 2026-07-22 ·
Reviewed by Nham Vu