Free tool · Math and study
Bar graph maker
Type or paste one label and one number per line, and this bar graph maker draws the chart as you type. Choose the direction, the order and the colors, then download a PNG or an SVG.
- Free
- No sign-up
- Runs in your browser
Tallest: Week 4 (6)4 bars
- Bars
- 4
- Total
- 16
- Mean
- 4
- Lowest
- Week 3, 2
How to use the Bar Graph Maker
- Write one bar per line in Data, like Week 1, 3, or paste two spreadsheet columns. Commas, tabs and semicolons all separate the label from the number.
- Add a Chart title and a Value axis title so a reader knows what the numbers count.
- Choose Vertical bars or Horizontal bars, and an Order. Long labels read best on horizontal bars.
- Press Download PNG for a picture, or Download SVG for a file you can resize without blur.
How do I make a bar graph from a list of numbers?
A bar graph shows one bar per category, with the length of the bar equal to the value. With the example data, four weeks of books read (Week 1: 3, Week 2: 5, Week 3: 2, Week 4: 6), the tool draws four bars on an axis that runs from 0 to 6. The tallest bar is Week 4 with 6 books, the shortest is Week 3 with 2, the total is 16 and the mean is 4 books a week.
Each line holds a label and a value. The label is everything before the last separator, so a label such as "Rice, long grain" works when you separate the number with a tab or a semicolon. Write thousands without a comma, or use a semicolon as the separator, because a comma before a three digit group would be read as the separator. A dollar, euro, pound or yen sign and a trailing percent sign are accepted and dropped. A first line that holds a word instead of a number is read as a header and ignored. Any other line that cannot be read is left out, and the note under the chart names the first one.
The page draws up to 40 bars, each label is cut at 28 characters, and negative values hang below the zero line. The chart is checked against the data by the numbers in the result panel: bars, total, mean and the lowest bar.
How does the bar graph maker choose the value axis?
The axis always includes zero, because a bar is read by its length, and a bar that starts above zero makes small gaps look big. The step between gridlines is 1, 2 or 5 times a power of ten, picked so there are about five gridlines. The last gridline sits at or above the largest value, so no bar is cut off. The table shows the axis the tool picks for several ranges.
| Values from | Step | Gridlines |
|---|---|---|
| 0 to 6 | 2 | 0, 2, 4, 6 |
| 0 to 23 | 5 | 0, 5, 10, 15, 20, 25 |
| 0 to 87 | 20 | 0, 20, 40, 60, 80, 100 |
| 0 to 340 | 100 | 0, 100, 200, 300, 400 |
| 0 to 0.7 | 0.2 | 0, 0.2, 0.4, 0.6, 0.8 |
| -4 to 10 | 5 | -5, 0, 5, 10 |
Should the bars be vertical or horizontal, and sorted?
Vertical bars suit a short list with short labels, such as months or weeks. Horizontal bars suit long labels and lists of more than about eight items, since the text stays flat and readable. When the categories have no natural order, sort them: the table shows the example data from the largest bar to the smallest, with each bar as a share of the total of 16.
| Week | Books | Share of total |
|---|---|---|
| Week 4 | 6 | 37.5% |
| Week 2 | 5 | 31.25% |
| Week 1 | 3 | 18.75% |
| Week 3 | 2 | 12.5% |
Keep the order as typed when the labels are a sequence in time, because sorting would break the story the chart tells. Use one color for every bar when all bars measure the same thing, and the color per bar option only when you need to tell bars apart in a legend or a slide. The palette has eight colors chosen to stay apart for common kinds of color blindness.
For parts of a whole that add up to 100%, the pie chart maker shows the same kind of data as slices. To check the numbers behind your bars, the average calculator and the statistics calculator give more measures, and the graph paper page prints a grid if you want to draw the chart by hand.
The data is turned into the picture on this page and nowhere else. Saving as SVG gives a vector file with a white background, and the PNG is drawn at twice the size of the preview.
Use it with
- Pie Chart Maker: descriptive and inferential stats; paste data from Excel; charts.
- Standard Deviation Calculator: sample and population SD with steps.
- Graph Paper Printable: printable grid, dot, isometric and log paper.
Questions
How do I make a bar graph online?
Type one label and one number per line, such as Week 1, 3, then choose vertical or horizontal bars and press Download PNG or Download SVG.
Can I paste two columns from a spreadsheet?
Yes. Copy two columns, label first and number second, and paste them into the data box. Tabs between the cells are understood.
Why does the axis start at zero?
A bar is read by its length, so the bar must start at zero. A cut axis makes a small difference look large. The tool always includes zero.
Can a bar graph show negative numbers?
Yes. Negative values hang below the zero line, and the axis extends to the next clean gridline below the lowest value.
How many bars can I draw?
Up to 40 bars. Beyond that the labels stop being readable, so group the small categories first.
Is my data uploaded?
No. The chart is drawn by this page in your browser, and nothing is sent to a server.
The tool's results are computed in your browser by the code on this page; the explanations are checked against the tool's own output.