Count line frequency

Count how often each line/value occurs and rank them from most to least frequent. Runs in your browser; nothing is uploaded.

Counts (most frequent first)

About this tool

Count line frequency tallies how many times each line (or value) appears in your text and ranks them from most to least frequent — the browser equivalent of sort | uniq -c | sort -rn.

Paste a list — log lines, survey answers, tags, URLs, words — and get back each distinct value with its count, plus the number of distinct values and the total.

Privacy

Everything runs in your browser via WebAssembly — your text is never uploaded to a server. You can also run it from the gizza CLI or inside a gizza chat (which return the counts as structured JSON).

Common uses

FAQ

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

Ranking is by count, highest first; values with equal counts keep the order they were first seen in your input. So if b appears before a and both occur twice, b is listed first.

What does turning off "Case sensitive" actually show?

Lines are grouped by their lowercased form, so Apple, apple, and APPLE count as one value — and the result displays the first casing it encountered (Apple in that example).

Are blank lines counted?

No — blank lines are always skipped, even with Trim whitespace off. Turning trim off only makes x and x count as different values; a line of pure whitespace still counts as blank when trim is on.

Can I get the counts as data instead of text?

Yes. The page shows a count → value table, but the same tool via the gizza CLI or chat returns structured JSON with each entry's value and count, plus distinct and total figures.

Developer & Automation Access

Run it from the terminal

Same engine as this page, headless — via the gizza CLI:

gizza tool count-line-frequency "Paste lines/values, one per line…"

New to the CLI? Get gizza →

Open it by URL

Pre-fill and auto-run this tool with query parameters — the names match the API/CLI:

https://gizza.ai/tools/count-line-frequency/?text=Paste%20lines%2Fvalues%2C%20one%20per%20line%E2%80%A6&case_sensitive=true&trim=true

Machine-readable descriptor: tool.json — title + parameters JSON Schema for agents.