Histogram generator

See the shape of a set of numbers, not just its average.

Fill in the fields above and the result appears here — nothing is sent anywhere.

How it works

Bin width = (max − min) ÷ number of bins · default bins = ⌈log₂ n⌉ + 1 (Sturges)

An average tells you where a set of numbers sits; a histogram tells you what it looks like. Two datasets with the same mean can be a tight cluster and a pair of distant humps, and only one of those is a business you can plan around. The bin count defaults to Sturges' rule — the same one spreadsheets use, so the shape matches what you would get in Excel — and stays editable, because bin width changes what a histogram appears to say and a tool that picks silently is hiding its most consequential setting.

This tool runs entirely in your browser. Nothing you type is sent to a server, stored or logged.

Frequently asked questions

How many bins should I use?
Start with the suggestion and move it. Too few hides structure — two peaks merge into one lump; too many turns the chart into noise where every bar is one or two values. If the shape changes character as you slide it, you probably have too little data for a firm answer.
Where does the largest value go?
Into the last bin. Bins are half-open — a value equal to a boundary falls in the upper bin — except the final one, which is closed at the top so the maximum is not dropped from its own histogram. That off-by-one is the classic bug here and it is invisible unless you add the counts up.
Is my data uploaded?
No. The numbers are parsed and binned in your browser and no request is made. Close the tab and nothing of it exists anywhere.