OnlineTextLab
Esc

Free Online Data Converters

Data conversion tools help turn structured text into the format you need without publishing your input or routing it through an account system.

All data converters

CSV to JSON

Paste a spreadsheet export and get a JSON array of objects, with the odd rows pointed out…

JSON to CSV

Hand it an API response and get a spreadsheet: nested fields become columns, and the wrapper…

XML to JSON

A strict XML reader that keeps attributes, CDATA and namespaces, and stops at the exact…

YAML to JSON

Resolves anchors and merge keys so you can see the data your YAML really means, with…

JSON to YAML

Clean, readable YAML where strings that could be misread are quoted, so reading it back gives…

JSON to XML

Well-formed XML from JSON, with @ keys for attributes, one root element, and a notice when a…

CSV to YAML

Spreadsheet rows become a YAML list of mappings, typed by column, with codes and odd strings…

YAML to CSV

Takes a list buried in a YAML file and lays it out as a table, with nested fields as their own…

CSV to TSV

Swaps commas for tabs properly, so a quoted cell stays one cell, and you decide what happens to…

TSV to CSV

Tab-separated text in, standards-compliant CSV out, with commas quoted and a choice for how to…

CSV to SQL Inserts

Turn a CSV into INSERT statements escaped for your database, with an optional CREATE TABLE and…

JSON to TypeScript

Generates interfaces from a sample response, reading every item in a list so optional fields…

JSON to JSON Schema

Writes a draft 2020-12 or draft 7 schema from sample JSON, merging list items so required keys…

JSON Flattener

Collapses nested JSON into one level of paths such as user.address.city, with a warning if two…

JSON Unflattener

Turns keys such as user.address.city and roles[0] back into nested objects and lists, and…

XML to CSV

Finds the repeating element in your XML and turns each one into a row, with attributes and…

CSV to XML

Turns spreadsheet rows into well-formed XML with element names you choose, as child elements or…

TSV to JSON

Copy cells from a spreadsheet, paste them here, and get typed JSON records with no export step…

JSON to SQL

A list of JSON records becomes INSERT statements, with columns gathered from every record and…

Which format should you convert to?

CSV suits flat tables that will end up in a spreadsheet or a database import. JSON suits nested data and anything going to or from an API. YAML is for configuration that people edit by hand. XML is what you will meet when working with older systems, feeds and many enterprise integrations.

Conversions from nested data to flat tables need a decision about what to do with the nesting. JSON to CSV and the JSON Flattener handle this differently, so it is worth checking the output on a small sample first.

Data that goes further

Beyond format changes, you can generate code from data: JSON to TypeScript writes types from a sample, JSON to JSON Schema writes a validation schema, and CSV to SQL writes insert statements. Treat generated code as a first draft, because one sample cannot reveal every case your real data will contain.

Because this all runs in your browser, customer lists and internal exports stay on your machine.

Questions people ask

Do data converters validate input?

Yes. Data tools surface parsing errors and warnings instead of silently changing malformed input. Invalid JSON, YAML, or CSV produces a clear error message.

Are conversions lossless?

Conversions between text-based formats (CSV, JSON, YAML, XML) are lossless for well-formed input. Type coercion notes are shown where values are automatically interpreted.