Histogram Generator
Paste a list of raw numbers to see their distribution as a histogram. Adjust bin count to control granularity.
Reviewed by the ToolNestr Editorial Team — July 2026
Enter your data above and click Generate to see the histogram.
Distribution shapes
The shape of your histogram reveals important characteristics of your data distribution.
Data Analyst
Examine the distribution of sales figures, customer spend, or response times to spot patterns, outliers, and anomalies quickly.
Student
Visualise test scores, survey results, or experimental data for assignments — understand distribution shapes taught in statistics courses.
Researcher
Analyse measurement data, sample distributions, and frequency patterns in scientific studies before applying parametric or non-parametric tests.
Quality Engineer
Monitor manufacturing tolerances, defect rates, and process variation using histogram analysis for statistical process control (SPC).
| Data points | Recommended bins | Detail level |
|---|---|---|
| Less than 25 | 5–7 | Low — wider bins to avoid sparse bars |
| 25–100 | 7–12 | Moderate — starts showing shape |
| 100–500 | 10–15 | Good — clear distribution pattern |
| 500–2000 | 12–20 | High — fine-grained detail visible |
| 2000+ | 15–25 | Very high — narrow bins reveal subtle patterns |
How histograms work
A histogram displays the frequency distribution of continuous numerical data by dividing the data range into equal-width intervals called bins. Each data point falls into exactly one bin, and the height of each bar represents the count (frequency) of data points in that bin. Unlike a bar chart, histogram bars touch each other to indicate that the data is continuous.
Worked example
How to use the Histogram Generator
Enter raw numbers
Paste your data as one number per line or comma-separated. All valid numbers will be parsed into the data set automatically.
Adjust bin count
Use the slider to set how many bins (intervals) the data is divided into. Fewer bins give a broader view; more bins show finer detail.
Generate and export
Click generate to render the histogram with axes, bin labels, and frequencies. Download as PNG for reports and presentations.
Tips for effective histograms
Choose bins that tell a story
The bin count changes the narrative. Too few bins may hide a bimodal distribution; too many bins may create artificial gaps. Slide through values to find the sweet spot.
Label axes clearly
Always include a chart title and ensure the X-axis label describes the variable being measured. The Y-axis should clearly indicate frequency or count.
Look for outliers
Bars that stand far from the main distribution may represent data entry errors, measurement mistakes, or genuinely unusual observations worth investigating.
What is a histogram?
A histogram is a graphical representation that organises a group of data points into a specified range (bins). It is an estimate of the probability distribution of a continuous variable. Unlike a bar chart, the bars in a histogram touch one another to indicate that the data is continuous.
Histograms are one of the seven basic quality tools and are widely used in statistics, data analysis, and process improvement. They reveal the underlying frequency distribution of a set of continuous data, showing whether values cluster around a centre, spread evenly, or fall into multiple groups.
Choosing the right bin count
Selecting the bin count is the most important decision when creating a histogram. Too few bins oversimplify the data and can hide important patterns; too many bins fragment the data and create a noisy chart. Common approaches include:
- Square-root rule: bins = sqrt(n), where n is the number of data points
- Sturges' rule: bins = ceil(log2(n) + 1) — works well for normal distributions
- Freedman-Diaconis rule: uses interquartile range to determine bin width
- Scott's rule: bins = 3.49 × σ × n^(-1/3) — optimised for normally distributed data
Distribution shapes explained
The shape of a histogram tells you how your data behaves:
- Normal distribution: Symmetric bell shape — most values near the mean, decreasing frequency at the tails. Common in natural phenomena and measurement errors.
- Skewed distribution: Asymmetric — a tail extends to the right (positive skew) or left (negative skew). Often seen in income data, reaction times, and biological measurements.
- Bimodal distribution: Two peaks — the data comes from two different groups or processes mixed together, such as test scores from two different teaching methods.
- Uniform distribution: All bars roughly the same height — every value range has a similar frequency, like rolling a fair die many times.
Frequently asked questions
What is a histogram?
A histogram is a bar chart that shows the distribution of numerical data by grouping values into intervals (bins) and showing the count of observations in each bin. It reveals the shape, spread, and central tendency of the data.
How do I choose the number of bins?
Too few bins hide detail; too many bins create noise. A common rule of thumb is to use the square root of the number of data points. For most datasets 8–15 bins work well. The bin slider in this tool lets you experiment interactively.
What data formats are accepted?
You can enter numbers one per line or separated by commas. The generator parses all numeric values and ignores empty lines. Non-numeric entries are skipped with a warning.
How does the histogram divide data into bins?
The tool finds the minimum and maximum values in your data, calculates the range, divides it by the number of bins, and then counts how many values fall into each bin interval.
What is the difference between a histogram and a bar chart?
A histogram displays the distribution of a continuous numerical variable with adjacent bars. A bar chart compares categorical data with spaced bars. In a histogram the bars touch; in a bar chart they do not.
What can I learn from a histogram shape?
The shape reveals whether data is normally distributed, skewed left or right, bimodal (two peaks), or uniform. This helps with statistical analysis, quality control, and identifying outliers.
Can I see the exact bin counts?
Yes. The tool renders bin range labels on the X-axis and frequency values on the Y-axis, and you can read the count from the bar height.
What file format is the download?
The histogram is downloaded as a PNG image via canvas.toDataURL. It is lossless and suitable for reports, presentations, and publication.
Is my data sent to a server?
No. The entire histogram generation runs on your device. No data is uploaded or stored anywhere — it is fully client-side in your browser.
How many numbers can I analyse?
There is no hard limit, but the canvas renders best with 20–10,000 data points. Very large datasets will still work but rendering may be slower.