Histogram Generator screenshot

Histogram Generator

Bin a pasted column into a chosen number of equal-width bins and draw the counts.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Runs in this tab
No signup

What this page computes

Paste one number per line and type how many bins you want, from 1 to 200. The page spans the data from its minimum to its maximum, divides that range into equal-width bins, counts the values in each, and draws the bars with the count printed above every non-empty bin and the bin edges labelled when there are twelve or fewer. The output pane holds the SVG source.

The bin count changes the picture, which is why it is yours to choose and not silently defaulted; the page does not test for normality or fit a curve. A column where every value is identical is refused, because the range would be zero, and so is a token that is not a number, named by its line.

The bins and the drawing are computed in this tab, so the same column and bin count always give the same histogram.

The page bins a pasted column into equal-width intervals between the smallest and largest value and draws the counts as an SVG histogram. You choose the number of bins, from 1 to 200, and the note prints the bin width so the bars can be read as counts rather than as a shape. A column where every value is identical is refused, because there is no range to divide.

Draw a histogram from one value per line. You choose the bin count; the width comes from the data.

How to use it

Paste your data with one value per line, then choose how many bins you want. The bins are equal width and start at the minimum, so the last bin is closed at the maximum — a value at the top of the range is counted rather than dropped. A bin count outside 1 … 200 is refused by name.

How the bins are cut

The bin width is (max − min)/bins, printed under the title, and each value falls in the bin its position gives it, with the top value folded into the last bin. Nothing is freedman-diaconis or Scott chosen for you: the bin count is your choice and the width follows from it, which is why the same data can look flat at 5 bins and spiky at 40. The page draws the counts; it does not smooth them into a density.

What to Expect

Best for

  • Seeing the shape of a column before summarising it

What this tool keeps

  • Nothing leaves this tab: the arithmetic runs in the page you are reading, and a reload discards both the input and the result.

Frequently asked questions

How do I choose the number of bins?

It is your choice, from 1 to 200, and the printed bin width is (max − min)/bins. Nothing is chosen for you, so try two counts and compare rather than treating one picture as the shape of the data.

Where does a value equal to the maximum go?

Into the last bin, which is closed at the top. Without that the largest value would fall outside every bar and the counts would not add up to n.

Is my data uploaded?

No. The bins are counted and the SVG drawn in this page, so the column never leaves the tab and a reload discards the chart.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.