Histogram Maker

Make a histogram from numeric values or a single-column CSV. Choose automatic bins, a bin count, or a bin width, then download the chart and its counts. Free, with no login; your data stays in this browser.

Data Input

12 rows parsed

Use decimal points with comma-separated input. For decimal commas, select that format and use newlines, tabs or semicolons. Files must contain one column; maximum 5,000 values and 5 MB.

Chart Configuration

Live Vector Preview

SVG · PNG · PDF
Histogram Maker Histogram Maker 0 1 2 3 4 [0, 2): 3 0 [2, 4): 4 2 [4, 6): 3 4 [6, 8]: 2 6 8 Values Frequency

Bin boundaries and counts

Applied rule: Freedman–Diaconis

Intervals include the left boundary and exclude the right; the last interval includes its right boundary.

IntervalCount
[0, 2)3
[2, 4)4
[4, 6)3
[6, 8]2
Total observations12

Worked example

For the fixed sample below, choose 4 bins: [0, 2) → 3; [2, 4) → 4; [4, 6) → 3; [6, 8] → 2. Total: 12. The maximum 8 is included once.

0, 1, 1, 2, 2, 2, 3, 4, 4, 5, 6, 8

How this histogram generator groups your data

Automatic mode uses Freedman–Diaconis: h = 2 × IQR / ∛n, with R type-7 quartiles. It chooses ceil((max − min) / h) bins, then divides the range into equal widths. If IQR is zero or this exceeds 200 bins, it uses Sturges: ceil(log₂(n) + 1). Constant data uses one closed interval.

All bins start at the sample minimum. A bin count divides the full range equally; a bin width keeps your chosen width and may extend the last boundary beyond the maximum. Bins are left-closed and right-open; the final bin includes its upper boundary. Each value is counted exactly once.

How to build this chart

  1. Paste numbers separated by commas, newlines, or tabs, or upload one CSV column with an optional header.
  2. Choose the decimal format and automatic bins, a count (1–200), or a positive width. Inspect the rule and boundary table.
  3. Check that counts sum to the sample size, then export CSV or PNG. All processing runs locally in your browser.

Related guides

Before reporting a result, check which features of the chart support your interpretation. These reading notes connect visual patterns to the quantities behind them.

Frequently asked questions

What is the difference between a histogram and a bar chart?

A histogram groups quantitative values into adjoining numeric intervals. A bar chart compares distinct categories, whose order and spacing need not represent a numeric scale.

How should I choose the number of bins?

Start with automatic Freedman–Diaconis bins. Sturges is the fallback for zero IQR or more than 200 suggested bins. Then compare nearby counts without choosing bins just to create a desired shape.

Why does my histogram differ from someone else’s?

Bin origin, count, width, quartile method, rounding, and boundary conventions can change counts. Compare the displayed boundaries and rule, not just the bars.

What happens to a value exactly on a boundary?

An internal boundary belongs to the bin on its right. The final upper boundary is included in the last bin, so the sample maximum is never lost or counted twice.

Can I use decimal commas and export the counts?

Yes. Select decimal comma and separate pasted values with newlines, tabs, or semicolons. Quote decimal commas in a single-column CSV. Export uses bin_start,bin_end,count with decimal points. Blank lines are ignored; invalid values produce a readable error.

Explore other chart makers