JSON Converter
Export JSON to XML, CSV, YAML, or Plain Text formats
Move JSON data into another format
JSON is the default for APIs, but plenty of tools still expect XML, a spreadsheet-friendly CSV or a YAML config. This converter reads your JSON in the browser and writes it out in whichever of four formats you choose. It is meant for quick, small conversions where you want to see the result immediately, not for schema-perfect production exports.
Converting a document
- Paste JSON into the Source JSON box. Sample loads a two-user array so you can experiment, and Clear empties the field. A line counter appears in the header.
- Pick the target with the four buttons: XML, CSV, YAML or Text. The main button label changes to match, and any previous result is hidden.
- Click Convert JSON to the chosen format.
- Use Copy, or Download to save a file named converted followed by the format, such as converted.csv or converted.yaml.
What each option produces
- XML: an XML declaration and a root element named root. Object keys become element names, and array entries are wrapped in item elements.
- CSV: one header row taken from the keys of the first object, then a row per object with values wrapped in quotes. Best suited to an array of flat objects.
- YAML: indented key and value lines, with lists shown as dash items.
- Text: the same data as readable JSON with four-space indentation, handy as a quick pretty print.
When to use it
- Turning an API response into rows you can paste into a spreadsheet.
- Creating a starter YAML file from a JSON config for a deployment tool.
- Producing XML for a legacy system that cannot read JSON.
- Making a quick readable copy of a payload for a ticket.
Know the limits
These converters are deliberately simple. XML element names come straight from your keys, so keys containing spaces or starting with numbers give invalid XML, and special characters in values are not escaped. In CSV, only keys from the first object become columns, so fields that appear only in later objects are lost, nested values are stored as JSON text, and values that are zero or false come out as empty quotes. YAML strings are written without quoting, which can be ambiguous for values like yes or numbers-as-text. Review the output before loading it into another system. Conversion runs in your browser, and invalid JSON produces an error pop-up instead.
Related Tools