Text & Data Converter
Free online text and data converter. Convert JSON to CSV, CSV to JSON, JSON to XML, XML to JSON, and format or minify JSON instantly in your browser.
What This Tool Does
This browser-based converter is designed for structured data formats. You can move between JSON, CSV, and XML, or quickly format and minify JSON without sending your data anywhere.
JSON to CSV
Converts a JSON array of objects into CSV format. Each object becomes a row, and the object keys become column headers. Nested objects are flattened to dot-notation keys (e.g., address.city). Choose your separator (comma, semicolon, tab, or pipe) from the options. Semicolons are common in European Excel configurations.
CSV to JSON
Parses a CSV file and converts it to a JSON array. If "First row is header" is checked, the first row becomes the keys of each object. Otherwise, rows are converted to arrays. Numbers and booleans are automatically detected and typed correctly.
JSON to XML
Wraps each JSON key-value pair in an XML tag. Arrays become repeated elements. The root element is named <root> by default. This is useful for converting API responses or config files to XML-based systems.
XML to JSON
Parses XML and converts it to a JSON object. Attributes are included as @attr keys. Text content is stored as #text. Complex nested structures are preserved as nested JSON objects.
JSON Pretty Print and Minify
Pretty Print formats JSON with 2-space indentation for readability. Minify removes unnecessary whitespace to reduce size while keeping the same JSON data.