Bar Chart Generator
Turn label, value lines into a clean bar chart — live SVG preview with SVG and PNG downloads, drawn entirely in your browser.
A bar chart compares separate categories side by side, and its one job is honest scaling: each bar starts at zero and its height is proportional to its value. This generator follows that rule literally — with the sample data (Jan 24, Feb 31, Mar 18, Apr 42, May 36) the tallest bar, April at 42, fills the full 310-pixel plot height of the 360-pixel chart, February at 31 reaches 31 ÷ 42 × 310 ≈ 229 pixels, and March at 18 reaches about 133 pixels. Because every bar shares the same baseline and the same scale, the visual ranking you see is the ranking in the numbers, with no truncated-axis tricks.
Everything runs in your browser; your data stays on your device, is never uploaded, never stored and never put into a link. Paste figures from a spreadsheet if you like — only the numbers in the box are used, and the chart is drawn locally as SVG.
Quick answers
How do I make a bar chart online?
Write one line per category as label, value, set a title and colour, and download the result. The sample Jan 24, Feb 31, Mar 18, Apr 42, May 36 draws five bars scaled to the largest value, 42.
Bar heights are proportional from a zero baseline, so the picture cannot exaggerate differences the way a truncated axis can.
Why does the tallest bar always fill the chart?
Because the scale is set by your largest value: its bar gets the full plot height and every other bar is that value’s fraction of it. A value of 21 next to a maximum of 42 draws exactly half as tall.
If you need bars compared against a fixed target or capacity instead, note the target in the title — the scale here is always relative to the data.
How to use
- Type or paste one row per line in the form label, value — for example Jan, 24 — using the sample data as a template.
- Set the chart title and pick a bar colour; the preview redraws on every keystroke.
- Check the bar labels and values in the preview — bar heights are scaled so the largest value fills the plot height.
- Download the chart as SVG for crisp scaling, or as PNG for slides and documents.
About this tool
The chart is drawn as hand-built SVG by a small shared chart kernel also used by the line, pie and histogram generators on this site — there is no chart library and nothing is sent anywhere. SVG is the right download for anything that will be resized (reports, web pages, print), because it stays sharp at any size; PNG is the right download for tools that cannot embed SVG, such as some slide decks and word processors, and it is rasterised locally on a canvas from the same SVG. If your data has more than one number per category, you want grouped bars or a line chart instead — use the Line Chart Generator for trends over time, and keep this tool for single-value comparisons.
Frequently asked questions
What format does the data need to be in?
One category per line, written as label, value — for example “Q1, 120”. Labels may contain spaces; values must be plain numbers. Blank lines are ignored, and a line without a number is skipped rather than drawn as a mystery bar.
How are the bar heights calculated?
Proportionally from zero: height = value ÷ largest value × plot height. The largest value always gets the full plot height (310 pixels in the default 640 × 360 chart), so a value half as large gets a bar exactly half as tall.
Should I download SVG or PNG?
SVG if the destination accepts it — it is resolution-independent and tiny. PNG if you are pasting into a slide deck, a document or a social post. Both files are generated locally from the same chart, so they always match the preview.
Can I make a grouped or stacked bar chart here?
Not in this tool — it deliberately does one value per category well. Extra numbers on a line are used by the Line Chart Generator as extra series; for grouped comparisons, split the data into two charts or plot the series as lines.
First time embedding? Read the step-by-step guide →
More free tools
Line Chart Generator
Plot one or more series over time as a line chart — shared chart kernel, live SVG preview, SVG and PNG downloads.
Pie Chart Generator
Turn label, value lines into a pie chart with exact slice angles and shares — live SVG preview, SVG and PNG downloads.
Histogram Generator
Bin your raw numbers into a histogram — equal-width bins, exact counts per bin, live SVG preview and downloads.
Pivot Table Maker
Paste CSV and pivot it in seconds — choose row, column and value fields, aggregate by sum, count or average, with row and column totals.
QR Code Generator
Turn any link or text into a scannable QR code in seconds.
Random Number Generator
Pick random numbers in any range, with no repeats option.