JSON Converters

Transform JSON into any format you need — CSV, XML, YAML, SQL, and TypeScript. All free, all instant, all in your browser.

/json-to-csv

JSON to CSV Converter

Convert a JSON array of objects into CSV. Nested objects are flattened using dot notation. The first row becomes the header.

Input JSON

CSV Output

Paste a JSON array and click Convert.

Input format

Expects a JSON array of objects. A single object is treated as a one-row table.

Nested data

Nested objects are flattened using dot notation. Arrays inside objects are joined with ", ".

Open in Excel

Download the CSV and open directly in Excel, Google Sheets, or any spreadsheet app.

/json-to-xml

JSON to XML Converter

Convert JSON objects and arrays into well-formed XML. JSON keys become XML tag names, arrays become repeated <item> elements. Includes an XML declaration header.

Input JSON

XML Output

Paste JSON and click Convert.

Custom root tag

Specify any root element name to match your XML schema requirements.

Valid XML output

Output includes the declaration and is well-formed.

Use cases

SOAP APIs, RSS feeds, Android resources, and legacy enterprise integrations.

/json-to-yaml

JSON to YAML Converter

Convert JSON to YAML — the human-friendly config format used by Docker Compose, Kubernetes, GitHub Actions, and Ansible. Powered by js-yaml for spec-compliant output.

Input JSON

YAML Output

Paste JSON and click Convert.

Spec-compliant

Uses js-yaml which implements YAML 1.2, compatible with all major parsers.

Config files

Perfect for Docker Compose, Kubernetes manifests, GitHub Actions workflows.

Readable output

YAML uses indentation instead of braces, making complex structures easy to edit.

/json-to-sql · New

JSON to SQL Converter

Convert a JSON array into SQL INSERT INTO statements. Specify table name, choose your dialect (MySQL, PostgreSQL, SQLite), and get ready-to-run SQL instantly.

Input JSON

SQL Output

Paste a JSON array and click Convert.

Multiple dialects

MySQL (backtick identifiers), PostgreSQL (double-quote), and SQLite (no quoting). Strings are escaped.

Batch inserts

Each JSON object becomes one INSERT statement. Numbers and booleans are inserted as-is. Null becomes SQL NULL.

Type handling

Numbers and booleans are unquoted. Strings are quoted and escaped. Null values become SQL NULL.

/json-to-typescript · New

JSON to TypeScript Converter

Generate TypeScript interface or type definitions from your JSON. Paste any JSON object and get a typed interface ready to drop into your project — including nested objects and arrays.

Input JSON

TypeScript Output

Paste JSON and click Convert.

Nested interfaces

Nested objects generate separate named interfaces, keeping your types clean and reusable.

Interface vs type

Interfaces are preferred for object shapes. Type aliases are useful for unions and complex expressions.

Array detection

Arrays are typed as T[]. Arrays of objects generate a nested interface. Mixed arrays fall back to unknown[].

Frequently Asked Questions

Which SQL dialects does the JSON to SQL converter support?

MySQL (backtick quoting), PostgreSQL (double-quote quoting), and SQLite (no identifier quoting).

Can I convert deeply nested JSON to TypeScript?

Yes. The converter recursively processes nested objects and generates a separate interface for each, named after the parent key.

Is my data private?

Absolutely. Every converter runs 100% in your browser. No data is transmitted to any server.

Latest from the Blog

Tips, fixes, and deep-dives for developers working with JSON.

View all posts