Free online tool

JSON to Chart Converter

Turn JSON data into accessible bar, line, and pie charts in your browser.

Build a chart from JSON

Map JSON fields to a bar, line, or pie chart and download it as SVG.

Try an example:

Your JSON is processed locally and never leaves your browser.

How to create a chart from JSON

  1. Paste an array of JSON objects or load one of the examples.
  2. Optionally filter the records by exact values in one or more fields.
  3. Select the category field for the X-axis and a numeric value field for the Y-axis.
  4. Choose a bar, line, or pie chart and decide how repeated categories should be aggregated.
  5. Review the accessible data table, then download the chart as SVG.

Filter records before charting

Use Filters to include only matching records before categories are counted, summed, or averaged. Select several values in one field with OR and combine different fields with AND.

Choose the right chart type

Use a bar chart to compare categories, a line chart to show ordered values such as monthly sales, or a pie chart to show how positive values contribute to a total.

JSON format and numeric fields

Arrays of objects work best. Consistent keys become chart fields, while nested keys use double underscores. Numeric values and numeric strings can be selected as the Y-axis.

[
  { "month": "Jan", "sales": 4200 },
  { "month": "Feb", "sales": 5800 },
  { "month": "Mar", "sales": 7300 }
]

Private, browser-based processing

Your JSON is parsed and visualized locally in your browser. The data is not uploaded to CosmoTools, and no account is required.

Download as SVG

SVG stays sharp at any resolution and can be opened in browsers, design tools, documents, and presentation software.

Frequently asked questions

What JSON format works best for charts?

An array of objects with consistent category and numeric fields works best, such as monthly sales records.

Which chart types can I create?

You can create bar, line, and pie charts from the same JSON data.

Can I aggregate repeated categories?

Yes. Numeric values can be summed, averaged, or counted for each category.

Can I filter the records used by the chart?

Yes. Choose exact values from one or more fields before counting, summing, or averaging the chart data.

Can I download the chart?

Yes. Every chart can be downloaded as a scalable SVG image.

Is my JSON uploaded?

No. Your JSON is parsed and charted locally in your browser.

Prefer Portuguese? Use esta ferramenta em português.

How the tool works

Paste a JSON record array, optionally filter rows by exact field values, choose a category and a numeric value, then create a bar, line, or pie chart. Filters are applied before repeated categories are summed, averaged, or counted. The chart is generated locally and can be downloaded as SVG.

Supported input and output

Consistent objects work best: one field supplies labels and another supplies numeric values. If there is no numeric field, count records by category. Clean category names and finite numbers produce the clearest visualization.

Practical example

Monthly sales records can use month as the category and sales as the value. API measurements can instead group endpoint names and average response times, while survey records can be counted into a pie chart.

Common use cases

Create a quick chart from an API response, JSON export, monitoring sample, survey result, or test dataset without opening a spreadsheet. SVG is suitable for documentation, reports, slides, and scalable web illustrations.

Limits and important checks

The tool is intended for exploratory charts rather than complex dashboards. Too many categories make labels difficult to read, pie charts should use a small number of parts, and aggregation can hide individual variation. Inspect the data table before presenting conclusions.

Privacy and local processing

Unless the tool explicitly identifies an external lookup, input and generated output are processed in your browser and are not uploaded to CosmoTools. Avoid placing secrets in any web page and review downloaded results before using them in production.