The quick answer

Paste a CSV or drop the file, pick a column in the Count occurrences in dropdown, and the table below lists every distinct value with its exact count and its share of data rows, sorted largest first. The placeholder that ships in the input box, status,order with two shipped rows and one refunded, counts shipped 2 at 66.7 percent. Three cards above the table report distinct values, rows counted and top value, and the table exports as frequency-counts.csv. Nothing uploads.

You don't need a pivot table for this

The question is never complicated: how many tickets came in through each channel, which error code dominates the log, which product shows up most often in yesterday's orders. The answer is a value-count table, one row per distinct value and one count column, and the standard path to it is opening Excel, selecting a range, wrestling a pivot table into existence, and then shrinking the thing back down to the two columns you wanted in the first place.

This tool skips the ceremony. Paste the CSV, choose the column, and the frequency table appears with every value, its count and its share of rows. It is deliberately the shape of the answer, not the shape of a spreadsheet, and the counting, grouping and export all happen in your browser.

Counting occurrences in four steps

  1. Paste or load the CSV

    Paste into the box, or click the file area to pick a .csv or .txt from disk; the picker's own caption reads "data stays in this tab", and it means it. Comma is the only delimiter: the picker contains tab-detection code that is not wired, so a tab-separated file parses as one fat column. Quoted fields containing commas parse correctly per RFC 4180.

  2. Choose the column to count

    The dropdown labeled Count occurrences in lists your header cells in order, and the first column is selected by default. Pick the categorical column whose distribution you want: channel, status, category, error code, city.

  3. Read the summary cards

    Three cards sit above the table: Distinct values, Rows counted (your data-row total), and Top value, the value with the highest count. Forty rows pasted and Distinct values reads 41 means something in the source column needs a look.

  4. Read the table, then export

    Every distinct value gets one row with its count and its share of data rows to one decimal, sorted by count descending with ties in first-seen order. Blank cells appear as (empty). Copy result and Download hand the same table back as frequency-counts.csv with columns value, count and share_pct; the preview under the buttons truncates at 20,000 characters, and the buttons do not.

The method: group, count, sort

The underlying algorithm is the oldest one in data processing: a single pass grouping values into buckets. The tool parses the CSV, walks the chosen column top to bottom, and uses a hash map keyed by the value, incrementing a counter each time the key reappears. When the pass ends, the map holds every distinct value and its exact count, and the table is that map sorted by count descending. This is the same computation a database performs for GROUP BY with COUNT(*), and the same one pandas users get from value_counts().

The comparison rules are short and worth knowing exactly. Each value is trimmed of leading and trailing whitespace (including the non-breaking space U+00A0) before it becomes a key, so "email " and "email" are one bucket. Comparison is then exact: Email and email are two buckets, and there is no case-folding option on this page. Empty cells form their own bucket, shown as (empty) with a count. The share column is each count divided by the total data rows, to one decimal, and the exported CSV carries the same number as share_pct.

Sorting is stable: count descending, with ties keeping the order in which values first appeared in the file. The same input always produces the same table, which is what makes a weekly re-run diffable line by line.

Group-and-count in five lines of concept:

  counts = {}
  for each row in column:
    key = value.trim()
    counts[key] = counts.get(key, 0) + 1
  table = sort(counts.items(), by=count desc, ties in first-seen order)

Performance, for the curious: the pass is O(n) over rows, the sort is O(k log k) where k is the number of distinct values, and memory is O(k). The long tail of rows costs almost nothing, and only the distinct values ever occupy the table.

Worked example: support tickets by channel

A small support-desk export, one week of tickets. The question of the moment: where do tickets actually come from?

Channel counts on an eight-ticket file

Input

ticket,channel,owner
T-101,email,Pat
T-102,chat,Robin
T-103,email,Sam
T-104,phone,Pat
T-105,email,Robin
T-106,chat,Sam
T-107,phone,Pat
T-108,email,Robin

Output

Cards: Distinct values 3 · Rows counted 8 · Top value email

email   4  50.0%
chat    2  25.0%
phone   2  25.0%

Downloaded frequency-counts.csv:
value,count,share_pct
email,4,50.0
chat,2,25.0
phone,2,25.0

Half the tickets arrive by email even though the team built its whole workflow around the chat tool. That is a normal finding, and it is exactly the kind of thing a count surfaces in seconds. The chat and phone tie at 2 breaks in first-seen order, because chat first appears two rows before phone does. Now the same file with realistic dirt, mixed casing and a stray space, to show what the rules actually do.

The same week, slightly dirty

Input

ticket,channel
T-101,email
T-102,Chat
T-103,Email
T-104,phone
T-105,email 
T-106,chat
T-107,phone
T-108,EMAIL

Output

Cards: Distinct values 6 · Rows counted 8 · Top value email

email   2  25.0%
phone   2  25.0%
Chat    1  12.5%
Email   1  12.5%
chat    1  12.5%
EMAIL   1  12.5%

Two things happened. The trailing space on T-105's email was trimmed, so it joined the email bucket: that cleanup is automatic and always on. The casing was not: Chat, Email, chat and EMAIL each stand alone, because comparison is exact and there is no case-folding option on this page. Six buckets over three channels is the result, and the fix belongs in the source column, not the counter: standardize case before counting when the spellings vary. The dirty table doubles as a data-quality alarm, which is often the more valuable half of the finding.

The shape of real columns: skew, head, and tail

Real categorical columns are almost never evenly spread, and knowing their typical shape changes how you read every count. The table below shows the shape an illustrative 10,000-row country column takes, the kind of distribution that shows up in channel, status, category and referrer columns across every industry.

RankValueCountShareCumulative
1United States6,12061.2%61.2%
2Germany1,48014.8%76.0%
3United Kingdom9109.1%85.1%
4Canada5405.4%90.5%
5France3203.2%93.7%
6Australia1901.9%95.6%
7–2418 mid-tail countries4034.0%99.6%
25–6137 single-order countries370.4%100.0%
An illustrative 10,000-row column, ranked: three values carry 85 percent of the rows, and the top row alone carries 61.

This is the skew that shows up wherever human categories are counted: Zipf documented it in word frequencies, Pareto in land ownership, and every ops dashboard sees it in tickets-per-channel. The practical reading is that the average row barely exists: the United States row and the single-order rows share a column but not a strategy. Head values deserve exact handling, in dropdowns, validation lists and dedicated inventory. Tail values deserve aggregation, an Other bucket that keeps the chart readable without pretending the tail away. Designing one policy for both is the classic misread.

The singleton tail is where frequency counting earns its keep as a diagnostic. Thirty-seven countries ordered exactly once, and on inspection one of them is spelled Untied States, a near-miss of the head value and data-quality debt rather than a new market. The other thirty-six may be genuine first orders from new regions, which is a growth signal. The table cannot tell you which is which by itself, but it tells you exactly where to look: in the exported CSV sorted by count, the entire investigation is thirty-seven rows, five minutes, done. A value count ranks not just what the data says but where the interesting exceptions live.

Frequency counts in Excel, SQL, and this page

ApproachWhat you write or clickCatches
Excel pivot tableSelect range, Insert PivotTable, drag channel to Rows and ticket to Values (Count)Range selection, refresh staleness, pivot drift when the file changes
Excel COUNTIF over a typed list=COUNTIF(B:B,"email") per valueYou must already know the value list, which is half the problem
SQLSELECT channel, COUNT(*) FROM t GROUP BY channel ORDER BY 2 DESCRequires loading the CSV into a database first
This toolPaste, pick column, readOne column at a time; no cross-tabs; no case merging; no re-sorting on screen, though the export sorts anywhere
The route you pick should depend on where the file lives, not on habit.

The COUNTIF row deserves a warning, because it is the trap people fall into most often: it hard-codes the value list. When a new channel appears next week, every COUNTIF spreadsheet silently undercounts. GROUP BY, in a database or in this tool, discovers the values, so a new category shows up in the table with its count instead of being invisible. Discover beats enumerate when the data can surprise you.

One more neighbor worth knowing: the CSV Distinct Values Extractor is the list without the counts, the right choice when you need the values themselves for a dropdown or a validation set. And when the column is numeric rather than categorical, CSV Column Statistics computes means and medians instead of counting repeats.

Counting quirks: when the table lies

The counts themselves are always exact. The failure modes live in what got grouped with what, and these are the recurring ones.

  • Near-miss values: gmal.com and gmail.com in a domain column are different buckets, and the table will not point at the typo. Pair this count with the Email List Cleaner when the column is email addresses.
  • Case variants: Email, email and EMAIL are three separate buckets, with no toggle to merge them. Standardize case in the source column first; every spreadsheet has an UPPER() for exactly this job.
  • Multi-value cells: a column holding "red, blue" counts as one value, not two. Splitting the column into atomic values first is a data-modeling decision no counter can make for you.
  • Numbers with formatting: 1000, 1,000 and 1000.00 are three distinct values. Normalize formatting upstream, or accept the split and read it as the inconsistency signal it is.
  • Leading zeros: 007 and 7 differ as text even though they may be the same code. Text columns that look numeric are the classic home of this trap.
  • Quoted commas: "Smith, John" is one value containing a comma, not two values. Correct RFC 4180 parsing makes this a non-issue here, but it silently breaks naive splitters and any counts produced by them.

Who counts values, and at what moment

Value counting is the duct tape of data work: informal, universal, and load-bearing in more places than anyone admits. Support and ops leads count tickets by channel, severity or owner before a staffing conversation, with the table as the evidence. QA engineers count occurrences of each error code in a test-run export, separating the one blocker from forty cosmetic complaints. E-commerce managers watch orders by product or region during a launch, where a sudden spike or a zero is the signal, and teachers tally survey responses, the distinct answers and their frequencies being the lesson's raw material. The moment is always the same shape: a file landed, one column holds the answer, and a meeting is on the calendar.

Reading a frequency table well

A count table is simple, which makes it easy to under-read. Three habits get more out of one. First, the table already arrives sorted by count descending, so the top three rows are the headline: in most operational data, a small number of values carry most of the rows, and naming those three is the finding any report leads with.

Second, look at the bottom of the table, not just the top. Values with a count of one are where typos, one-off categories and data entry accidents live, and a long tail of singletons is the fingerprint of an uncontrolled input field. Third, compare the Distinct values card to your expectations before reading any counts at all: you know roughly how many channels, statuses or regions should exist, and if the card reads 43 where you expected 5, the extra 38 values are the finding. This is the same instinct that makes the distinct values extractor a pre-flight check, and it works identically here.

When you need the ranked table to drive action, top products, top error codes, busiest owners, export the CSV and feed it to whatever charting tool you like. Frequency tables paste cleanly into every spreadsheet and BI tool made, because the shape (value, count) is what all of them expect natively.

Privacy: the count happens in your tab

A frequency count is often run on exactly the data you least want to ship around: support tickets, customer orders, employee records. The tool's architecture answers that concern structurally rather than with a policy paragraph. Parsing, grouping and export are browser-side JavaScript, the file picker reads from disk through the browser's local File API, and there is no upload endpoint involved at any point. Load the page, go offline, and it still counts, which is the most honest demonstration available that nothing is being transmitted.

For teams with formal data-handling rules, that matters in a second way: browser-side processing means there is no third-party processor to add to your data inventory, no subprocessor agreement to chase, and no vendor risk assessment to complete. The data never leaves the boundary it was already inside.

Frequently asked questions

Is this the same as a pivot table?

It is the useful 10% of one. A pivot table lets you cross-tabulate multiple dimensions; this tool answers the single most common pivot question, how many rows does each value in this column have, without setting anything up. If you need cross-tabulation, you need a spreadsheet; if you need counts, you need this page.

How are ties sorted when two values have the same count?

In first-seen order. The table always sorts by count descending, and when two values tie, the one that first appeared in the file sits higher. A stable sort guarantees the same input produces the same order on every run, which is what you want when you re-run a count after fixing data and compare reports line by line.

Does the counter treat differently-cased values as the same?

No. Email and email are two separate buckets, and there is no case-merging toggle on this page. Values are trimmed of surrounding whitespace before counting, so a stray trailing space does not create a phantom bucket, but case is always significant. Standardize case in the source column first when channel, category or status spellings vary.

Can I run frequency counts on a numeric column?

Yes, though ask yourself why first. Exact-value counts on IDs are rarely informative, because every value appears once. Exact counts on small-cardinality numbers (star ratings 1-5, shoe sizes, dice rolls) are exactly what this tool is for. For ranges on continuous numbers like prices, bin the column first, then count the bins.

What is the difference between this and the distinct values extractor?

The distinct extractor answers what appears; this one answers how often. Every frequency table contains the distinct list plus a count and a share column, sorted by count. If you only need the list for a dropdown, use the extractor; if you are comparing volumes, top channels, busiest categories, most common errors, this is the tool.

Are empty cells counted?

Yes, always. Blank cells form their own bucket, displayed as (empty) in the table with its count and its share, so missing data is visible rather than silently dropped. A column of spaces counts as empty too, because values are trimmed before counting.

How big a file can it count?

Row count barely matters. The algorithm is one pass over the rows plus a sort of the distinct values, and memory grows only with the number of distinct values, not the number of rows. The preview of the exported table truncates at 20,000 characters, but the Copy result and Download buttons always emit the full table.

Does my file get uploaded?

No. The whole operation, parse, group, count, sort, export, runs as JavaScript in your browser, and the file picker reads from disk through the browser's local File API. No upload, no server, nothing retained. You can disconnect from the internet after the page loads and it still works.

Pair this with the rest of the workflow

Counts answer how often, but they rarely end an investigation. The CSV Distinct Values Extractor gives you the clean value list for the follow-up work. The CSV Sort by Column tool orders the underlying rows so you can see the actual tickets behind a suspicious count. And when the counting is really profiling, the first pass over a new file, the CSV Column Statistics tool covers the numeric columns while this one covers the categorical ones.

Run together, those three tools are a lightweight profile of any CSV: distributions for categories, moments for numbers, sorted views for digging. It is the five-minute version of what data-profiling suites charge for, and for most files that arrive in a workweek, it is enough.

Sources and further reading

Specifications and documentation this article leans on:

Sources and further reading

We cite primary sources (standards bodies, government agencies, official documentation) wherever they exist so you can verify every number on this page yourself.