Skip to main content

JSON Converter

Convert structured data between JSON, TSV, and XML formats with automatic type detection and bidirectional transformation. Handles nested JSON objects by flattening to dot-notation columns for TSV export and reconstructing hierarchy from dot-notation TSV headers on import.

Runs entirely in your browser

This tool sends nothing over the network. Everything you enter is processed on your device and never reaches our servers.

Data
Web
Loading the tool
Reference

Documentation

Converting between JSON, TSV, and XML means translating structured data across three different ways of representing hierarchy: JSON's nested objects and arrays, TSV's flat rows and tab-separated columns, and XML's nested elements and attributes. All six conversion paths work: JSON to TSV, JSON to XML, TSV to JSON, TSV to XML, XML to JSON, and XML to TSV.

Converting a JSON array of objects to TSV turns each object into a row and each unique key into a column. A nested object can be flattened into dot-notation columns, such as address.city and address.zip, so a hierarchy that TSV cannot represent directly still survives as a flat table; importing that same TSV back reconstructs the original nesting from those dot-notation headers. Converting TSV to JSON with the first row treated as a header turns each subsequent row into an object keyed by those header values. Numeric strings in TSV are parsed to numbers automatically, and the literals true, false, and null are converted to their JSON equivalents rather than kept as text.

XML conversion wraps each record in a configurable item element and nests every record under a configurable root element, so the output can match whatever element names a target schema expects.

Indentation depth for JSON and XML output is configurable, down to zero for compact, single-line output. Data can be pasted directly or imported from a .json, .tsv, .xml, or .txt file, and the converted result can be copied or downloaded with the appropriate file extension.

Data format mismatches occur frequently when moving information between systems, APIs, spreadsheets, and configuration files. Converting between JSON, TSV, and XML bridges these gaps without writing custom scripts or installing dedicated software.

  • API Response Processing: Extract a JSON API response and convert it to TSV for quick analysis in a spreadsheet application.
  • Spreadsheet to API Payload: Copy rows from a spreadsheet as TSV and convert them to JSON for use as a request body in REST API calls. The converter automatically structures each row as an object with header-derived keys.
  • Legacy System Integration: Convert JSON data feeds into XML for systems that require SOAP or XML-based input formats. Customize the root and item element names to match the target schema.
  • Configuration Migration: Move application settings stored in XML config files to JSON format for modern toolchains, preserving the element hierarchy as a structured JSON object.
  • Data Cleaning and Inspection: Load a TSV export from a database, convert it to JSON to inspect the structure, adjust values, then convert back to TSV for re-import. Round-trip conversion highlights formatting inconsistencies.
  • Documentation and Reporting: Convert structured datasets to XML for inclusion in technical documentation that requires well-formed markup with descriptive element tags.
  • Batch Data Preparation: Prepare bulk upload files by converting between the format your source system exports and the format your target system expects, eliminating manual reformatting across hundreds or thousands of records.
  • Test Data Generation: Start with a small JSON sample, convert it to TSV, duplicate and modify rows in a spreadsheet, then convert back to JSON to produce larger test datasets with consistent structure.
Inputs, outputs, and what the JSON Converter computes

What the JSON Converter asks for and what it returns, as a plain list. Defaults, units, and ranges are the ones the form loads with.

Inputs

  • Input Format · default: JSON
  • Input Data
  • Output Format · default: TSV
  • Converted Output
  • Indentation Spaces (JSON/XML output) (numeric input) · default: 2 · range: 0 to 8
  • First TSV row is header · default: on
  • Flatten nested JSON to dot-notation for TSV · default: on
  • XML Root Element Name (text input) · default: root
  • XML Item Element Name (text input) · default: item

Controls

Copy · Download · Convert · Reset