Comparable List

List Frequency Counter

Count occurrences of each line in a list. Find repeated values or values that appear once, sort by frequency, and export value-and-count CSV results locally.

0 lines
Each whole line is one value. Blank lines are skipped; CSV cells are not parsed.
Matching

Paste a list and choose Count lines, or try the sample. Counts appear here without uploading your data.

How to use the list frequency counter

  1. Paste one complete observation per line

    A phrase, ID, email address or product code on a line is one value. Blank lines are skipped. Copy one intended spreadsheet column rather than an entire record with unrelated fields. Keep the original so you can review why a value appeared more than once.

  2. Choose grouping and result view

    Trim spaces and Ignore case change how values are grouped. The first displayed spelling represents each group. Most frequent puts the largest counts first; Original order follows first appearance. Repeated only and Appear once select groups by their total count rather than deleting copies from the source.

  3. Export the full value-and-count table

    Review the table, then copy it or download CSV with separate value and count columns. The on-screen table previews up to 200 values, while export includes the entire current filter and order. A repeated value is not automatically an incorrect record; use the count as evidence for the next review step.

Example: occurrences are different from extra copies

This is the same fruit list used by the frequency sample. Pear appears three times, apple twice and banana once. The counter shows one row for each distinct value, with its full occurrence count.

Input list

pear
apple
pear
banana
apple
pear

Value and count

pear    3
apple   2
banana  1

Interpretation

6 counted lines
3 distinct values
2 repeated values
3 extra occurrences

There are two repeated values because pear and apple each repeat. There are three extra copies beyond one of each: two extra pears and one extra apple. Repeated only shows pear and apple; Appear once shows banana with a count of one. Deduplication would instead keep all three values once.

When this tool helps

Inspect repeated identifiers before cleanup

An analyst can count repeated customer IDs or product codes before deciding whether to deduplicate an export. Three occurrences may be three valid orders, not three copies of one bad row. Keep source records and review the relevant business context before removing repetitions or treating the distinct count as a count of people.

Summarize recurring complete log lines

A developer or support user can identify repeated lines in a copied log extract. Each entire line is the key, so different timestamps or IDs create different values even when the error wording is similar. Prepare a deliberately selected field or message if that is the observation you intend to count.

Find values that occur exactly once

An organizer or editor can use Appear once to isolate single-occurrence codes or phrases. This is useful when the question is about rare entries rather than a cleaned complete list. A value missing from that view might simply occur twice; it has not been removed from the input or proved invalid.

Who uses a list frequency counter?

This workflow suits analysts, editors, developers and organizers who need an occurrence table for a line-based list. Define the observation carefully: a whole product name is one value, while a line containing an entire CSV row is still one value. Choose grouping rules before interpreting the totals, and retain the raw source when frequency has business meaning. After reviewing counts, use dedupe for a unique list or compare two lists for membership across sources.

Example: count occurrences in a list

Six input lines contain three distinct values. Two values repeat, and there are three extra occurrences beyond their first copies. These are different counts, useful for different questions.

Input list

pear
apple
pear
banana
apple
pear
Expected result, most frequent first
ValueCount
pear3
apple2
banana1

Repeated only shows pear and apple. Appear once shows banana. Counting uses complete lines, rather than individual words.

How to count occurrences in a list

Paste one value per line or open a text file, choose whether spaces and letter case matter, and select Count lines. Each distinct value appears with its occurrence count. Most frequent puts the largest counts first; Original order follows the first appearance of each value; A–Z sorts the displayed values alphabetically. Choose Repeated only to focus on duplicates, or Appear once to find values with no repeats. Copy the current view or export a two-column CSV.

Repeated values and extra occurrences are different

If pear appears three times and apple appears twice, there are two repeated values. There are also three extra occurrences: two extra copies of pear and one extra copy of apple. The summary reports both, along with the number of non-blank lines and distinct values. This makes it easier to distinguish how many values are affected from how many repeated entries would disappear if you kept one copy of each.

Count complete lines, rather than words

Every non-blank line is a single value, so a full product name, email address, ID, or phrase is counted together. A line containing red apple stays one value; it does not add separate counts for red and apple. Blank and whitespace-only lines are skipped. One final line ending is treated as a file delimiter. Multi-column CSV cells and quoted multi-line records are not parsed: select and copy the column you want to count before using this line-based tool.

Choose case and whitespace matching deliberately

Trim spaces removes leading and trailing whitespace before grouping. Ignore case puts Apple and apple in the same group while keeping the first displayed spelling. Leave that option off for case-sensitive identifiers. Internal spaces, punctuation, accents, and leading zeroes are preserved; 001 and 1 remain distinct. When a matching rule changes, count again so the result reflects the new definition. The source text remains available for you to review.

Find repeated entries before cleaning an export

Use the count table to inspect repeated SKUs, repeated names in a roster, duplicated keywords, or recurring lines from a log. Frequency can be meaningful: the same product may appear in several orders, and the same attendee may have registered for several sessions. A repeated value is not automatically an incorrect record. Keep the original and decide whether your next action should be deduplication, reconciliation against another list, or retaining every occurrence.

Export counts without losing the full result

The table previews up to 200 values in the current filter and sort order. Copy and downloads include the complete selected view. CSV exports have separate value and count columns, with commas and quotation marks escaped; TXT and clipboard output put the value and count on each tab-separated line. Appear once exports each single-occurrence value with a count of one. Large inputs depend on device memory, so keep a source copy outside the tab.

Keep the work private

This tool runs in the browser tab you are using. No account is required and your text is not submitted to a server. The result exists only on this device, so copy or download it before closing the page.

Frequently asked questions

Does the list frequency counter count individual words?

No. It counts complete non-blank lines. A line containing red apple is one value, not separate observations for red and apple. Use a word-frequency workflow when individual words, tokenization or language segmentation are the actual question.

What is the difference between repeated values and extra occurrences?

A value repeated three times contributes one repeated value and two extra occurrences beyond its first copy. The summary distinguishes those quantities. Counting affected values and counting removable copies answer different questions, so do not use them interchangeably.

Does Appear once mean one copy of every value?

No. It shows only values whose original grouped count is exactly one. Values that repeat are excluded from that view. Use deduplication to keep one representative of every value, including those that originally occurred several times.

Are case and accents grouped together?

Ignore case groups letter-case variants while preserving the first displayed spelling. It does not remove accents or punctuation. Leave case handling off for case-sensitive identifiers, and review whether surrounding spaces should be trimmed before grouping values.

Are blank lines included in the totals?

Blank and whitespace-only lines are skipped and reported separately. One final line ending is treated as a delimiter. Counted lines therefore describe non-blank observations, which can differ from the number of physical rows you see in a text editor.

Why are only 200 rows visible?

The table limits the preview to keep a large result readable. Copy and download include every value in the current filter and sort order. Select Repeated only or Appear once first if you want the export to contain just that view.

Can I count a spreadsheet column?

Yes, by copying one column as one value per line. This counter does not parse an entire multi-column workbook or quoted multiline CSV records. Select the intended field first so each supplied line corresponds to one observation.

Does a repeated value prove a duplicate record?

No. Several valid records can share a value, such as product codes across orders or a name shared by several people. Counts summarize the supplied lines under your grouping rules. Use a reliable record identity and source context before deleting or merging real records.

Related tools