Histogram Maker: Paste Your Numbers, Pick Your Bins

This free histogram maker turns one column of raw numbers into a histogram, with no signup needed.

Histogram titled Exam scores: 40 students in bins of 10 from 40 to 100. One score falls in 40 to 50, two in 50 to 60, six in 60 to 70, thirteen in 70 to 80, eleven in 80 to 90 and seven in 90 to 100. Students 0 3 6 9 12 15 40–50 50–60 60–70 70–80 80–90 90–100 Exam scores 40 students chartjuice.com

How to make a histogram in 3 steps

  1. The Data tab in Chartjuice, with Upload file and Paste data beside a histogram
    1

    Add one column of numbers

    Click Upload file (CSV, TSV, TXT, XLSX, XLS or ODS) or Paste data and copy a column from Excel or Google Sheets. Under Chart columns, set Value to your column of numbers. You can also type straight into the table under the chart.

  2. The Style tab in Chartjuice, open beside a histogram
    2

    Choose your bins and style

    Open the Style tab, then Histogram options. Set Bins to Auto, Count or Width, and adjust Gap between bars. Add axis titles under Horizontal axis and Vertical axis.

  3. The Download menu in Chartjuice: PNG at 1x, 2x or 4x, SVG and Copy image
    3

    Download your histogram

    Click Download and pick PNG (1x, 2x or 4x, with an optional transparent background), SVG, or Copy image to paste it into a slide or worksheet.

What this histogram maker needs from your data

A histogram shows how a set of numbers is spread out. It sorts the values into equal-width ranges called bins, then draws one bar per bin. The taller the bar, the more values landed in that range.

Give it raw values, one per row: 40 exam scores, 200 page load times, 1,000 order totals. Do not give it counts you tallied yourself, because the tool does the counting. The example above is 40 scores between 48 and 99, grouped into bins of 10. A chart holds up to 5,000 rows.

Your numbers can come from the Upload file or Paste data buttons, or you can type and paste into the table under the chart. Fix a typo or add a row and the bars update. If numbers are being treated as text, set the column's kind to Number from its header.

Choosing the number of bins

The bin setting changes what a histogram seems to say. Here is the same set of 40 exam scores drawn three ways:

  • Bins of 20 (3 bars): 3, 19 and 18 students. It looks like a plateau, and it hides the fact that most scores sit in the 70s and 80s.
  • Bins of 10 (6 bars): 1, 2, 6, 13, 11 and 7 students. A clear peak in the 70s, a shorter climb on the left and a tail of low scores.
  • Bins of 2 (about 25 bars): no bar taller than 3. Every bar is a few students, so the chart is jagged and you start reading patterns into luck.

Too few bins flatten the data and too many add noise. Aim for the main shape without treating every bump as important.

Set bins by count or by width

The Bins setting in Histogram options has three modes:

  • Auto uses the Freedman-Diaconis rule, which sets the bin width to 2 × IQR ÷ the cube root of the number of values. Chartjuice rounds that to a tidy number and keeps the chart between 5 and 50 bins. It is a sensible place to start.
  • Count gives you exactly that many equal bins, from your smallest value to your largest. Use it for a quick overview or when a worksheet says "use 8 bins". The catch is odd edges. Five bins across 48 to 99 are 10.2 points wide, so the edges land on 58.2, 68.4 and so on.
  • Width sets the size of each bin in your own units, like 10-point score bands or $5 price steps. Bins start on multiples of the width, so the edges read 40, 50, 60, 70 and so on. Use it when you want the axis to make sense at a glance.

If your teacher gives a class width, use Width. If they give a number of classes, use Count.

Which bin an edge value lands in

A score of exactly 80 has to go somewhere. Each bin includes its lower edge and excludes its upper edge, so 80 counts in the 80 to 90 bar and 79 counts in 70 to 80. The one exception is the last bin, which includes both edges. If the top score were exactly 100, it would sit in the final bar rather than needing a bar of its own.

If your answer differs from a textbook's, compare the edge rule first.

Reading the shape of a histogram

Read the shape first, then the numbers. Look for where the peak is, which side has the longer tail, and how many peaks there are.

  • Symmetric: the two sides roughly mirror each other around a single peak. The mean and median are close, so the mean is a fine summary.
  • Skewed right: a peak on the left with a long tail of large values. The customer wait times in the gallery are an example. A few large values pull the mean above the median, so the median describes a typical value better. Load the Right-skewed data example to see it.
  • Skewed left: a peak on the right with a tail of small values. An easy exam does this. The mean falls below the median.
  • Bimodal: two separate peaks. This usually means two groups are mixed in one column, like bus riders and drivers in commute times. Open the Bimodal distribution example.
  • Uniform: bars of about equal height, like many rolls of a fair die.

The exam scores in the example are roughly symmetric, peaking in the 70s, with a thin tail toward the low scores. The mean is 77.6 and the median is 78, so either one works.

Spot outliers and gaps

An isolated bar far from the rest is worth a look. It could be a real extreme value or a typo, like 950 instead of 95. Gaps (empty bins between bars) can mean the same thing. Check the row in the table before deciding anything.

To see the chart without a suspect value, add a Filter step on the Data tab. Steps never change your original data, so you can remove the filter and compare. For a second opinion, make a box plot from the same column. It draws values beyond 1.5 × IQR from the box as dots.

Test whether the shape holds

Before you describe a shape in a report, change the bin width and see if it survives. A real pattern stays recognizable at a wider and a narrower setting. If a second peak vanishes when you widen the bins a little, or a skew shows up at only one setting, it was a bin artifact.

In the example above, the peak in the 70s shows up with bins of 5 and bins of 10, and melts into a plateau at 20. Switch widths in Histogram options, or tell Ask AI "try bins of 5 instead" and compare.

Histogram vs bar graph

They look alike but answer different questions.

  • A histogram bins one numeric variable (scores, minutes, dollars). The bars touch because the bins are consecutive ranges on a number line, with nothing between them. The order is fixed, and a bar's width means something.
  • A bar graph compares separate categories (car, bus, bike). The bars have gaps because the categories are separate, and you can sort them any way you like.

The test: if you could rearrange the bars without breaking the meaning, you want a bar chart. If the x-axis is a number line, you want a histogram.

A histogram is not the only way to show a distribution. A dot plot keeps every value visible, which suits small sets of whole numbers. A box plot boils the data down to five numbers and compares groups well, but it cannot show a second peak.

Everything you need to make a histogram

  • Upload a file

    Drop a CSV, TSV, TXT, XLSX, XLS or ODS file anywhere on the designer, or paste a column from a spreadsheet. Files are read in your browser and never uploaded.

    The Paste data dialog in Chartjuice with a table pasted from a spreadsheet
  • Looks good out of the box

    Bins are picked for you, and the bars start in a clean palette with a labeled vertical axis. Try another bin width or a preset palette, or save your brand colors with Pro.

    The Colors section in Chartjuice with preset palettes, open beside a histogram
  • Design with AI

    Click Ask AI and type a request like "use bins of 5 and title it Exam scores". Every change stays editable by hand. A free account gets 3 tries, enough to test a few bin widths. Pro gives you 50 a day.

    See what the AI graph maker can do

    The Chartjuice AI assistant editing a histogram from a plain-English request
  • Download PNG or SVG

    Save a PNG at 1x, 2x or 4x with an optional transparent background, or an SVG for print. Free downloads have a small, faint "chartjuice.com" in the bottom-right corner, and Pro removes it.

    A histogram downloaded from Chartjuice as a PNG

Frequently asked questions

How many bins should a histogram have?

There is no single right number. Start with Auto, then try a few more bins and a few fewer, and keep the setting that shows the main shape without jagged noise.

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

A histogram groups one numeric variable into consecutive ranges, so its bars touch. A bar graph compares separate categories, so its bars have gaps. You can reorder the bars of a bar graph, but not those of a histogram.

Can I make a histogram from raw data?

Yes, and raw data is what the tool expects. Paste or upload one value per row, set Value under Chart columns, and the histogram does the counting. You do not need to build a frequency table first.

Why do the bars touch?

Because each bin starts exactly where the last one ends, so there are no gaps in the number line. A gap between bars means an empty bin, not a spacer. If you want visible separation, use Gap between bars in Histogram options.

Can I ask an AI assistant for a histogram?

Yes. Connect an AI assistant such as Claude or ChatGPT to Chartjuice once, then paste your numbers and ask in plain words for a histogram with 10 bins. It is saved to your account and opens in the editor.

Can I use my histogram in homework, slides or a report?

Yes. Charts you make are free to use anywhere, including commercial work. On the free plan, every PNG, SVG and copied image carries a small, faint "chartjuice.com" in the bottom-right corner (Pro removes it), and you don't need to credit Chartjuice any other way.

Want the full tour? Read how Chartjuice works.

Save your charts with a free account

The histogram maker is free and needs no signup. A free account saves your charts so you can rename, duplicate and reopen them.