Skip to main content
7B BusyBoss

Data Converters

Convert between JSON, XML, CSV, TSV, YAML, Markdown tables.

6 tools · sorted by popularity

Data converters for JSON, XML, CSV, TSV and Markdown tables

These six data converters each move a structure from one text format to another, and the useful thing to know before picking one is what the destination cannot hold. Two of the formats nest (JSON and XML), two are flat grids (CSV and TSV), and one is a grid written for people to read (a Markdown table). All six run in your browser.

  • JSON to XML wraps the document in a single root element, repeats a tag once per array item and renames any key XML cannot accept (a leading digit, a space, an @) to item without warning. Because a one-item array and a plain value produce identical XML, the trip back is not guaranteed to be safe.
  • XML to JSON parses with the browser's own DOMParser, keeps element structure and text and drops every attribute, so a price with a currency attribute loses the currency. Text that looks numeric is converted, which means a zip code written 01234 comes back as 1234.
  • CSV to TSV removes the quotes that commas forced on the CSV. It assumes comma-separated UTF-8 and does not guess delimiters, so a semicolon file reports no rows found.
  • TSV to CSV is the one for a range copied out of a spreadsheet, which lands on the clipboard tab-separated. It adds quotes only around cells holding a comma, a quote or a line break, and leaves ragged rows ragged.
  • CSV to Markdown Table escapes every pipe, replaces newlines inside cells with a space, pads short rows and treats the first row as the header, with no option to change that.
  • JSON to Markdown Table needs a non-empty array of objects. The columns are the union of every key, in order of first appearance, and nested objects are written into a cell as JSON text.

Spreadsheet files are a separate group: the Excel converters read and write .xlsx directly, which keeps numbers and dates typed where CSV turns everything into text.