You can create a bar chart with the Bar Chart Maker by pasting 2–30 label,value rows, checking the preview, and downloading the same SVG you reviewed.

This browser-based workflow is designed for a small categorical dataset: each accepted row becomes one vertical bar with a category label and numeric value. It is useful when you need an SVG for a report, website, or design handoff and want the parsing, chart generation, and export to remain in the current tab. No label, value, title, SVG, or interaction is uploaded.

The input is deliberately “CSV-lite,” rather than a general spreadsheet import. Every valid row contains one label, one comma, and one nonnegative finite number. This strict structure makes the result predictable without requiring the generator to guess which field is a category and which field is a value.

create bar chart for free
Create a Bar Chart: Format, Preview, Download

Prepare rows in the required format

Copy the two fields you need from each category: a short name and its numeric value. Do not include headings, currency symbols, typed units, thousands separators, or extra columns. For example, paste North,120, South,85, and East,60 on three separate lines.

Every non-empty line must contain exactly one comma. The text before the comma becomes the label, while the text after it must be a valid numeric token. Leading and trailing whitespace around the label and number is trimmed. Blank or whitespace-only lines are ignored, so you can leave empty space around the dataset without adding false categories.

Input rule Accepted behavior
Number of non-empty rows Exactly 2 through 30; too few or too many rejects the entire request.
Row structure One label, exactly one ordinary comma, and one numeric token.
Label length At most 24 UTF-16 code units. The exact limit is accepted, while one code unit beyond it fails.
Numeric-token length At most 40. The exact limit is accepted, while one additional code unit fails.
Value type Nonnegative, finite base-ten numbers. Ordinary decimals and e/E scientific notation are accepted.
Blank lines Ignored when the line is blank or contains only whitespace.
Invalid input One malformed row rejects the whole dataset; no partial chart is created.

Quoted fields and quoted commas are not supported because this is not full CSV. Additional columns, empty labels, typed units, expressions, hexadecimal numbers, Infinity, and NaN also fail. Negative zero is normalized to zero, but genuinely negative values are rejected. Nonzero magnitudes from 1e-300 through 1e300 are supported; a nonzero token that underflows to zero and input above the accepted maximum are refused rather than silently changed.

Generate and inspect the chart

  1. Open the Bar Chart Maker and enter an optional title above the data field.
  2. Paste between 2 and 30 non-empty rows. Give every row exactly one comma, with the category label before it and a nonnegative finite number after it.
  3. Select Generate. If the request is valid, the tool creates one vertical bar for every row in the order supplied.
  4. Check that each category label matches its intended bar and that the five numeric reference ticks describe the displayed range.
  5. Review the baseline, zero-height bars, tooltips, and any visibility issue caused by an extremely wide range of values.
  6. Download the standalone SVG only after the preview accurately represents the data you intend to publish.

Generation is intentionally all-or-nothing. If the tool reports a malformed row, an incorrect row count, a label-length problem, or a numeric problem, correct the source and generate again. It never keeps only the first 30 rows, substitutes zero for a bad value, or presents a partial chart.

Editing the title or data clears the previous preview, status message, and download. This prevents an earlier SVG from appearing to represent the newly entered dataset.

Read the scale and zero handling

The bars use a nonnegative linear scale. A value of zero maps to the baseline, while the displayed axis maximum maps to the top of the plotting area. The upper bound rounds upward to a finite multiple based on 1, 2, 5, or 10 and a power of ten. Five evenly spaced reference ticks expose that range.

All-zero data has a dedicated state. Instead of creating a misleading empty axis, the generator uses an explicit zero-to-one reference range, keeps every bar at zero height, and displays an all-zero note. The source values are not changed, and the chart avoids division by zero.

An extremely wide range can make a positive bar visually indistinguishable from zero because its scaled height is smaller than SVG coordinate precision can represent. The tooltip still reports the value, but the generator does not invent a minimum bar height because that would distort the stated linear scale. A logarithmic chart or a separately grouped chart is more appropriate when tiny categories must remain visible beside values hundreds of orders larger. The bar chart best practices for choosing scales and labels guide provides additional context on scale selection.

The generator does not apply logarithmic scaling, normalize values to percentages, or imply statistical significance. It creates a deterministic linear comparison rather than choosing a scale according to the meaning of your data.

Check the labels and layout

The preview contains a baseline, five reference ticks, one bar for every accepted row, rotated category labels, interactive tooltips, and an accessible description. The SVG is 520 pixels high and expands horizontally as more rows are added. Category slots remain separated, and wide charts scroll within the preview instead of squeezing all 30 labels into a mobile-width canvas.

Duplicate labels are allowed. They remain separate bars in input order, so the chart does not merge repeated categories or rearrange them. It also does not sort, aggregate, or infer units. Review the axis range and label appearance before export, especially when several category names share the same wording.

Axis labels use up to six practical significant digits or scientific notation, and chart coordinates are rounded to three decimals in the SVG markup. These display choices keep the graphic readable, but they are not substitutes for the original values. Keep your source numbers when exact analysis is required.

Download the exact reviewed SVG

One generated SVG string powers both the visible preview and the file download. As a result, the downloaded standalone SVG matches the markup you reviewed rather than being reconstructed through a separate export process. It can be opened as an SVG asset and placed into a compatible publishing or design workflow.

User-entered text is XML-escaped before it enters a label, tooltip, title, or accessibility attribute. Ampersands, angle brackets, quotes, and apostrophes are converted into XML entities, while forbidden control characters and unpaired surrogates become the replacement character U+FFFD. Script-like labels therefore remain visible text rather than becoming executable SVG elements.

The download uses a Blob URL created from the reviewed SVG string. That URL is revoked when the data or title changes, a result is replaced, generation fails, or the page component closes. Blob creation or URL creation failures produce an error instead of leaving a stale download available. Parsing, layout, preview creation, Blob creation, and export all stay in the current browser tab. The safe local data and SVG export guide explains this local processing and export model in more detail.

Know what the generator does not add

The Bar Chart Maker handles a narrow, predictable chart-building task. It does not attempt to be a full data-processing or presentation suite.

  • It does not evaluate formulas or fetch data from another source.
  • It does not parse full CSV with quoting, additional columns, or embedded commas.
  • It does not create raster images such as PNG files.
  • It does not add multiple series, grouped bars, or a legend.
  • It does not choose colors according to the meaning of a category.
  • It does not sort, aggregate, infer units, or determine whether the chart communicates responsibly.

Use it when your task is to compare numeric values across category labels and export one vertical bar chart as SVG. If the dataset requires formulas, full spreadsheet parsing, grouped series, percentages, a logarithmic axis, or another output format, use a different workflow for those parts rather than assuming the generator has handled them.

Run a final publishing check

Before using the exported chart, compare the preview with your source data and confirm the following:

  • Every intended category appears once for each input row, including duplicate labels.
  • The five ticks and baseline show the expected value range.
  • Zero values sit correctly on the baseline, and all-zero data carries the reference note.
  • Very small positive values remain meaningful at the chosen scale or are moved to a more suitable chart.
  • The tooltips report the expected values and the title matches the intended subject.

When those checks pass, download the SVG. The resulting file is a standalone, locally generated version of the exact preview, with the chart structure and reviewed text preserved in the exported markup.