LocalExcelTool
Get started

Universal Data Converter

Convert between JSON, YAML, CSV and TSV.

Runs in your browserNo account neededFree

What is Universal Data Converter

The Universal Data Converter converts between JSON, YAML, CSV and TSV. CSV/TSV parsing handles quoted fields, escaped quotes and embedded newlines; JSON/YAML are validated with precise error messages. Great for round-tripping API responses with spreadsheet data. Runs in your browser (2 MB limit).

🔒 Everything runs in your browser. Nothing is uploaded.

What this tool actually does with your file

Where it runs
In your browser, on this page
Upload
None — the file never leaves your device
Offline
Works with the network disconnected

Every pair loses something different

CSV cannot express types, nesting or null: every cell is a string, and the reader has to guess whether 007 is a number or an identifier. JSON keeps types but has no comments and no schema. YAML keeps types and comments but has the yes/no trap. XML keeps everything and is verbose enough that nobody reads it by hand.

That asymmetry is the real content of a converter. Going to CSV flattens; going from CSV to JSON produces all-string values unless you specify types; going through YAML and back can turn a country code into a boolean. None of these are bugs in the tool — they are the formats.

Nesting has no flat representation

A structure with an array of objects inside an object cannot become a table without a convention: one row per child with the parent repeated, one column per leaf path, or a JSON blob in a cell. Each choice is lossy in a different way, and the receiving system decides which one it can read.

XML attributes are the clearest case: <row id="7"> has its id in an attribute, not an element, and flattening produces either a column called @id or a lost value depending on the tool. Check the header row before trusting a converted file.

Numbers, dates and encoding on the way through

A date written 03/04/2026 is ambiguous across locales and becomes a different date depending on which side parses it. Large integers exceed JavaScript's safe range as soon as they pass through a generic converter. Both failures are silent and both are expensive to trace.

For anything with money, identifiers or timestamps, convert to strings deliberately at the source and keep them as strings through the pipeline. A converter is the right place to move shape, and the wrong place to trust type inference.

How to use it

  1. 1.Paste your data
  2. 2.Pick input and output formats
  3. 3.Run and copy the result

How Universal Data Converter works under the hood

Formatters parse your input into a structure, then serialise it back with consistent indentation. That is why a formatter can also reveal a syntax error: if it cannot parse, it cannot print.

  1. 1

    Parse into a tree

    JSON goes through JSON.parse; YAML, XML, CSS and SQL use their own parsers. The parse either succeeds with a structure or fails at a line and column.

  2. 2

    Serialise with a fixed style

    Indentation width, key order and quoting are applied deterministically, so formatting the same input twice gives identical bytes.

  3. 3

    Show the error position

    When parsing fails, the message includes the position so the fix is obvious instead of guessed.

  4. Processing pipeline
Example: one-line API response → readable tree
what the API returns
Raw JSON
{"name":"Product A","price":1280,"tags":["sale","new"],"stock":null}
same data, 2-space indent
PathValue
name"Product A"
price1280
tags[0]"sale"
tags[1]"new"
stocknull

Formatting and minifying are inverse operations on the same data — no value changes. The formatter re-parses with JSON.parse, so a trailing comma or a // comment makes it fail with the parser's own message: JSON has neither. The highlighted null is a real value, not a missing one — a missing field would simply have no row.

Formatting is not validation

A formatter proves the document is syntactically parseable. It does not prove it is valid against a schema, and it does not check business rules. JSON with a duplicated key parses fine and silently keeps the last value.

What gets normalised

Comments are preserved in CSS and SQL but not in JSON, which has no comment syntax. YAML anchors may be expanded, and quote style may change. Keep the original when exact byte layout matters, such as signed payloads.

Verify it yourself

Formatting is deterministic and local — run it twice and compare.

  1. 1.Open DevTools on this page and switch to the Network tab
  2. 2.Keep the filter on Fetch/XHR and run the tool
  3. 3.Confirm no request carries your file — you should see only page assets and fonts

Frequently asked questions

Which formats?

JSON, YAML, CSV and TSV. CSV parsing supports quotes, escaped quotes and newlines inside cells. For XML use the XML Formatter.

How are nested objects exported to CSV?

Nested values are serialized as JSON strings inside one cell. Flat data works best.

What this kind of conversion cannot keep

Formatters parse the input into a tree and print it back with consistent indentation. If the input is invalid, you get the parser's error position instead of a silently mangled file — malformed JSON stays malformed rather than being «repaired» into something that is no longer yours.

More in Format