Format Converter

Convert between JSON, CSV, YAML, and XML. Processed locally, no uploads.


How it works

When converting JSON to CSV, the field names of the object array automatically become the header row; when converting CSV to JSON, the first row is treated as the field names. YAML conversion uses js-yaml; when converting XML to JSON, attributes are written as @attribute and text as #text, so converting back from JSON to XML restores the original structure.

FAQ

What about commas or line breaks inside CSV fields?
Standard CSV rules apply: fields containing a comma, quote, or line break are automatically wrapped in double quotes, and quotes themselves are doubled.

What happens if the objects have different fields when converting JSON to CSV?
The header is the union of all objects' fields, and any field an object doesn't have is left blank.

Will XML attributes be lost?
No — attributes become fields starting with @. To convert back, just convert from JSON to XML again.

Is my data uploaded?
No. The conversion happens locally in your browser — your data never leaves your device.

Related tools

JSON Formatter · Text Diff · Code Formatter