Tools › Build › JSON, CSV & HTML Table Converter
🔄

JSON, CSV & HTML Table Converter

Convert between JSON, CSV, HTML tables and Markdown tables, with a live preview.

🔄 Any format to any
🧩 Flattens nested JSON
📊 Excel-safe CSV
🔒 Runs in your browser
🔄

JSON, CSV and HTML table converter

Paste data in any of these formats. Pick the format you want back. Everything runs in your browser.

Input options

How to use

  1. Paste CSV, JSON or an HTML table, or open a file. The format is detected for you.
  2. Choose the format you want back and adjust its options.
  3. Check the table preview, then copy or download the result.

What each format is good for

FormatBest forWatch out for
CSVSpreadsheets, imports, simple exportsNo types. Everything is text. Nested data does not fit.
JSONAPIs, apps, nested dataNeeds the same keys per row to look like a table.
HTML tableShowing data on a web pageIt is for display. Add your own styling.
MarkdownREADME files, docs, GitHubCells can’t hold line breaks. They become <br>.

How nested JSON becomes columns

A table has flat columns, so nested objects are flattened. {"user":{"name":"Asha","city":"Pune"}} gives two columns, user.name and user.city. Lists can stay as JSON text in one cell, or be split into columns such as tags.0 and tags.1. When you convert back to JSON, turn on “Rebuild nested objects” to restore the nesting.

CSV pitfalls this tool handles

  • Commas and quotes inside values. Values are wrapped in quotes when needed, and quotes inside are doubled.
  • Line breaks inside a cell are kept.
  • Semicolon or tab separators. Many European Excel exports use semicolons. The separator is detected for you.
  • Accents and non-English text in Excel. Turn on “Add BOM for Excel” when you download CSV.
  • Formulas. A value starting with = can run as a formula when opened in a spreadsheet. “Protect against formulas” adds a quote in front.

Frequently asked questions

How do I convert CSV to JSON?

Paste the CSV into the box and choose JSON as the output. The first row is used as the keys. Numbers and true/false values are detected, and you can turn that off if you want everything as text.

How do I convert JSON to CSV?

Paste a JSON list of objects and choose CSV. Each object becomes a row, and the keys become the header. Nested objects are flattened into columns like address.city.

Can I turn a CSV or JSON file into an HTML table?

Yes. Choose HTML table as the output, set an optional id, class or caption, and copy the markup. Values are escaped, so characters like < and & are safe.

Can I convert an HTML table back into data?

Yes. Paste the HTML that contains a table, or the whole page. If it has several tables, choose which one to use. Cells that span several columns or rows are filled in.

Why do my accents look wrong in Excel?

Excel needs a byte order mark (BOM) to read UTF-8 CSV files correctly. Turn on “Add BOM for Excel” before downloading.

What if my JSON items have different keys?

The header is the combined list of all keys, in the order they first appear. A row that is missing a key gets an empty cell.

Is my data uploaded?

No. The conversion happens in your browser, so your data never leaves your device. The tool is free with no sign-up.