By Tim King · Updated
Histogram Maker
Paste a Column of Numbers, Set the Bins, Free SVG/PNG
OneTask is free, with no sign-up, and built by one person.
If this tool saved you time, a coffee helps keep new ones coming.
How the Histogram Maker works
This histogram maker bins your measurements and draws the spread. A histogram shows how a set of measurements is spread out: the range is cut into equal bins and each bar counts how many values fall in it. Paste one column of numbers, one per line, and this page bins them, marks the mean and median and downloads the chart as SVG or PNG.
Histogram maker: getting a good result
Data. Paste a single column of numbers with a header, or just the numbers; the first column that contains numbers is used and anything non-numeric in it is skipped. Unlike the bar chart, the histogram takes raw observations rather than already-counted totals: thirty heights, two hundred response times, a year of daily temperatures. The page does the counting.
Bins. Auto picks a bin count from the number of values using Sturges' rule, which gives five or six bins for thirty values and around eleven for a thousand, then rounds the edges to tidy numbers so the axis reads 160, 165, 170 rather than 161.3, 166.1. Choose a fixed count to override it. Too few bins hide the shape; too many break it into noise. Try a couple of settings and use the one where the shape is stable, and say in the caption which you used, because the same data can look unimodal at eight bins and bimodal at twenty.
Count or percent. Count shows the number of values in each bin, which is the plain frequency distribution. Percent shows each bin's share of the whole, which is the right axis when comparing histograms of different sample sizes side by side. Bar labels print the value above each bar in whichever unit is selected.
Mean and median. The dashed lines mark the average and the middle value. When the two sit together the distribution is roughly symmetric; when the mean is pulled away from the median towards one tail, the data is skewed that way. The stats below the chart give both, with the standard deviation and the minimum and maximum, so the chart and its summary numbers come from one place.
Export. Download SVG gives a vector file for reports, Download PNG renders it at 1×, 2× or 3× the preview width on white, and Copy SVG puts the markup on the clipboard. The binning and the statistics are computed in the browser and the numbers are never uploaded.
FAQ
What is the difference between a histogram and a bar chart?
A bar chart compares separate categories and the bars can go in any order. A histogram shows the distribution of one numeric variable: the x axis is a continuous scale cut into bins, the bars touch, and the order is fixed. Use the bar chart maker for counts by category.
How many bins should I use?
Auto is a sensible start. Increase the count when you have many values and the bars look blocky; decrease it when the bars are jagged. The shape should not change dramatically between neighbouring settings; if it does, the data is too sparse to support the finer view.
Can I paste the numbers separated by commas on one line?
Not directly; the page expects one value per line. Paste the list into the list to CSV or CSV formatter tool to turn it into a column, or paste a spreadsheet column, which already comes through with one value per line.
What do the dashed lines mean?
The long-dashed line is the mean and the short-dashed line is the median, both labelled with their value. The Mark menu shows one, both or neither. Their distance apart is a quick read of skew: a mean to the right of the median means a long tail of high values.
See also: all Chart Makers tools, Images, Audio, Video & Screen, PDF, SVG, Simulations & Screensavers, Generative Art, 3D Model Viewers, Drawing Pads, Mockups & 3D Making, Diagram Makers, 3D Science, Tracker Music.
Related tools
Bar Chart Maker
Paste CSV, get a grouped or stacked bar chart; download SVG or PNG.
Scatter Plot Maker
Paste x,y pairs, get a scatter plot with trend line and r value.
Line Chart Maker
Paste CSV, get a multi-series line graph; download SVG or PNG.
List To CSV Converter
Turn a line-per-item list into a comma-separated row.
SVG To PNG
Rasterise an SVG to a PNG at any width.