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

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

  1. Paste one document per text box — add more boxes with the "+ Add Document" button.
  2. Choose a focus document from the dropdown; the table shows that document's TF, global IDF, and TF-IDF for every term.
  3. TF = (term count in document) / (total tokens in document).
  4. IDF = ln(total documents / documents containing the term).
  5. TF-IDF = TF × IDF; higher values indicate terms that are distinctive to the focus document.
  6. 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