# Data Format Converter

> Convert between JSON, YAML, XML, CSV, TSV and TOML in any direction, locally in your browser.

To convert between data formats, paste your content, pick the format it is in and the format you want. Conversion between JSON, YAML, XML, CSV, TSV and TOML happens entirely in your browser, so API payloads, config files and customer data are never uploaded to a server.

**URL:** https://convertto.tech/t/data-format-converter
**Category:** Data & Format Tools (https://convertto.tech/c/data-tools)
**Privacy:** Runs entirely in the browser; no upload
**Cost:** Free, no sign-up
**Last updated:** 2026-08-01

## Key facts

- **Privacy:** Runs entirely in your browser — nothing is uploaded
- **Cost:** Free, unlimited, no sign-up

## How to use

1. Enter or paste your input.
2. Choose the from.
3. Choose the to.
4. Set the indent.
5. The result appears immediately — copy or download it.

## FAQ

### What happens to nested data when converting to CSV?

CSV is flat, so nested objects are flattened into dotted column names like address.city, and arrays are serialised as JSON strings inside a single cell.

### Why does my XML conversion add a root element?

XML requires exactly one root element. If your data is an array or a primitive, it is wrapped in a <root> element so the output is valid XML.

### Is my data sent to a server?

No. Parsing and serialisation run in your browser using JavaScript. Nothing you paste is transmitted, which is why this is safe for production config and API responses.

## Related tools

- [Mock Data Generator](https://convertto.tech/t/mock-data-generator): Generate realistic fake test data in 14 formats from 100+ field types, with reproducible seeds.
- [INI & Config File Parser](https://convertto.tech/t/ini-parser): Parse INI, .conf, .cfg and .properties files into structured JSON, YAML or TOML.
- [CSV Column Extractor](https://convertto.tech/t/csv-column-extractor): Pull selected columns out of a CSV by name or position, and reorder them.
- [CSV Viewer & Table Converter](https://convertto.tech/t/csv-viewer): View CSV data as a sortable table and export it as JSON or a Markdown table.
- [.env to JSON Converter](https://convertto.tech/t/env-to-json): Convert .env files to JSON and back — for config migrations and CI variables.
- [JSON Flattener](https://convertto.tech/t/json-flattener): Flatten deeply nested JSON into dot-notation keys, or expand flat keys back into nested objects.
- [JSON Formatter & Validator](https://convertto.tech/t/json-formatter): Format, validate, repair and analyse JSON — with errors that point at the exact line.
- [JSON to TypeScript Converter](https://convertto.tech/t/json-to-typescript): Generate TypeScript interfaces, Zod schemas, Go structs, Python dataclasses or Rust structs from JSON.
- [XML Validator](https://convertto.tech/t/xml-validator): Check XML is well-formed, with the exact line and column of the first error and a document summary.
