How it works
JSON, YAML, TOML, XML, TOON, CSV, and TSV are different ways of representing the same structured data. JSON dominates in APIs; YAML and TOML are common in configuration files; XML is still present in many systems; and CSV/TSV are the standard for tables and spreadsheets.
This tool interprets the source format you choose, builds its internal structure, and re-serializes it in the target format. You can type or paste the data, or load a file.
All formats share the idea of objects (key-value pairs) and lists, so the conversion preserves the structure whenever the target can express it. The whole process happens in your browser.
Examples
{ "name": "Ada", "age": 36 }name: Ada
age: 36From JSON to YAML: the same object, without braces or quotes, with indentation as the structure.name = "Ada"
age = 36{ "name": "Ada", "age": 36 }From TOML to JSON: the key = value pairs become object properties.Use cases
- Migrate a configuration file from one format to another, for example from JSON to YAML for a CI/CD pipeline.
- Convert an API's JSON response to CSV to open it in a spreadsheet.
- Translate between XML and JSON when integrating systems that speak different formats.
Frequently asked questions
Is all data preserved when converting?
The structure and values are preserved, but some features specific to a format have no equivalent in another: YAML or TOML comments, XML attributes, or rich types may be simplified when moving to JSON.
When is YAML or TOML preferable to JSON?
For hand-written configuration. YAML and TOML support comments and are more readable; JSON has no comments but is ideal for exchange between programs.
How is something with a nested structure converted to CSV?
CSV represents a flat table, so it works best with a list of objects with the same keys. Very nested structures must be flattened, because a table cannot express multiple levels.
What is the TOON format?
It is a compact object-oriented notation designed to write structured data concisely. The tool treats it as one more source or target format.