30 converters · In-browser · Zero uploads
Convert data between formats. In one paste.
Move payloads between JSON, CSV, PHP arrays, YAML, XML, Excel, SQL, Markdown, and typed structs. Every converter runs in your browser tab, so API responses and configs never leave your device.
01 · What do you have?
02 · Convert to
Quick pairs
Common round-trips
Jump directly into either direction of a pair.
No converter matches that query. Try json, csv, php, or yaml.
01 · JSON exports
JSON to other formats
Turn API payloads into PHP arrays, CSVs, YAML manifests, XML trees, Excel workbooks, or Markdown tables.
- JSON PHP Short [] syntax
JSON to PHP Array
Convert JSON to a PHP array in short [] syntax, ready to paste.
Open converter → - JSON CSV RFC 4180
JSON to CSV
Convert a JSON array to CSV with the delimiter of your choice.
Open converter → - JSON JS Unquoted keys
JSON to JavaScript
Convert JSON to a JavaScript object literal with unquoted keys.
Open converter → - JSON YAML K8s & Compose
JSON to YAML
Convert JSON to YAML for Kubernetes, Compose and CI config files.
Open converter → - JSON XLSX Typed cells
JSON to Excel (XLSX)
Export a JSON array to an Excel .xlsx workbook.
Open converter → - JSON XML Repeated tags
JSON to XML
Convert JSON to XML, with arrays as repeated elements.
Open converter → - JSON MD GFM table
JSON to Markdown Table
Convert a JSON array of objects to a Markdown table.
Open converter →
02 · CSV, TSV & spreadsheets
Tables and spreadsheet pipelines
Parse quoted exports, convert Excel workbooks, switch delimiters, and prepare SQL seed files.
- CSV JSON Header keys
CSV to JSON
Convert CSV to a JSON array of objects, with the header row as keys.
Open converter → - CSV PHP Assoc arrays
CSV to PHP Array
Convert CSV to a PHP array keyed by the header row.
Open converter → - CSV JS Objects / rows
CSV to JavaScript
Convert CSV to a JavaScript array of objects or arrays.
Open converter → - CSV SQL INSERT + DDL
CSV to SQL INSERT
Turn CSV rows into SQL INSERT statements, with an optional CREATE TABLE.
Open converter → - XLSX JSON ISO 8601 dates
Excel (XLSX) to JSON
Convert Excel and ODS spreadsheets to JSON, with dates as ISO 8601.
Open converter → - CSV MD Padded pipes
CSV to Markdown Table
Convert CSV to a GitHub-flavored Markdown table with alignment and padding.
Open converter → - EXCEL HTML Paste & copy
Excel to HTML Table
Paste cells from Excel or Google Sheets and copy them as an HTML, Markdown or email table.
Open converter → - TSV CSV Any delimiter
TSV to CSV Converter
Convert TSV to CSV, CSV to TSV, or change any CSV delimiter.
Open converter →
03 · Code & schema generators
Types, models and HTTP clients
Infer TypeScript interfaces, Go structs, Python dataclasses, JSON Schemas, and cURL client snippets.
- JSON TS Named interfaces
JSON to TypeScript
Generate TypeScript interfaces from a JSON sample.
Open converter → - JSON Go json tags
JSON to Go Struct
Generate Go structs with json tags from a JSON sample.
Open converter → - JSON Python Dataclass / Pydantic
JSON to Python Dataclass
Generate Python dataclasses, TypedDicts or Pydantic models from JSON.
Open converter → - JSON Schema Draft 2020-12
JSON Schema Generator
Generate a JSON Schema from sample JSON, with formats and a required list.
Open converter → - cURL Code 6 client targets
cURL to Code Converter
Turn a curl command into fetch, axios, Python, PHP or Go code.
Open converter →
04 · PHP, YAML, XML & env
Config and legacy data formats
Bridge PHP arrays, serialized payloads, YAML anchors, XML attributes, and .env files without a server runtime.
- XML JSON Keeps @attrs
XML to JSON
Convert XML to JSON, keeping attributes and repeated elements.
Open converter → - YAML JSON Resolves anchors
YAML to JSON
Convert YAML to JSON, with anchors and aliases resolved.
Open converter → - PHP JSON No PHP needed
PHP Array to JSON
Convert PHP array() or [] literals to JSON without running PHP.
Open converter → - PHP CSV Nested arrays
PHP Array to CSV
Convert a PHP array of rows to CSV for Excel or Google Sheets.
Open converter → - .ENV JSON Dotenv quotes
.env to JSON Converter
Convert .env files to JSON and back, following dotenv quote rules.
Open converter → - PHP JSON Fixes s:N bytes
PHP Unserialize Online
Decode PHP serialize() data to JSON or print_r, and serialize JSON back.
Open converter →
05 · Markup, React & numbers
HTML, Markdown, JSX and bases
Sanitized Markdown to HTML, HTML to React JSX, and exact BigInt number base conversions.
- MD HTML DOMPurify safe
Markdown to HTML
Convert Markdown into clean, sanitized HTML with GFM tables and task lists.
Open converter → - HTML MD GFM tables
HTML to Markdown
Convert HTML back into Markdown, with pipe tables and your choice of bullets.
Open converter → - BASE 2–36 BigInt exact
Number Base Converter
Convert between binary, octal, decimal, hex and any base up to 36.
Open converter → - HTML JSX React style obj
HTML to JSX Converter
Convert HTML into React JSX with className, style objects and SVG fixes.
Open converter → - Request a converter →
Missing a pair?
Need a different format converter?
Tell us which input and output formats you work with. New tools stay free and client-side.
Task guide
Which tool for which job
- 01
Send an API response to someone who works in Excel
JSON to Excel (XLSX) JSON → XLSX They get a real .xlsx workbook, so nobody has to pick a delimiter or an encoding when they open it.
- 02
Load a CSV export into JavaScript or a JSON API
CSV to JSON CSV → JSON The header row becomes the keys, so each line of the file turns into one object.
- 03
Write a Kubernetes manifest or a Compose file from JSON
JSON to YAML JSON → YAML Kubernetes accepts JSON manifests too, but most teams keep these files in YAML so they can add comments.
- 04
Read a YAML config from a script that only parses JSON
YAML to JSON YAML → JSON Anchors and aliases are expanded, so the JSON shows the values the application receives.
- 05
Type an API response in TypeScript
JSON to TypeScript JSON → TS The interfaces come from the sample you paste. Use a response that includes the optional fields, or they will be missing from the types.
- 06
Model an API response as Go structs
JSON to Go Struct JSON → Go Each field gets a json tag, so Go's capitalized field names still map to the original keys.
- 07
Model an API response in Python
JSON to Python Dataclass JSON → Python Choose dataclasses for plain code, TypedDict to type-hint existing dicts, or Pydantic when you also want validation at runtime.
- 08
Seed a database table from a spreadsheet
CSV to SQL INSERT CSV → SQL Each row becomes an INSERT statement, and the tool can write a CREATE TABLE for the columns as well.
- 09
Move a PHP config array into a JavaScript or Python project
PHP Array to JSON PHP → JSON The array literal is parsed as text, so you don't need PHP installed to convert it.
- 10
Inspect a serialized value from a WordPress database
PHP Unserialize Online PHP ⇄ JSON WordPress stores options and post meta with serialize(). This turns those strings into JSON you can read.
- 11
Turn a curl example from API docs into code
cURL to Code Converter cURL → Code Pick fetch, axios, Python, PHP or Go and get the same request with its headers and body.
- 12
Reuse an HTML snippet inside a React component
HTML to JSX Converter HTML → JSX Attributes are renamed for React, such as class to className and for to htmlFor, and inline styles become objects.
- 13
Paste a spreadsheet range into an email or a web page
Excel to HTML Table EXCEL → HTML Cells copied from Excel or Google Sheets arrive as tab-separated text. This turns them back into a table you can paste or embed.
- 14
Write a Markdown table for a README
CSV to Markdown Table CSV → MD The columns are padded so the raw Markdown lines up in a code review, and you can set the alignment.
Architecture & privacy
How these converters work
01
Data moves between formats all day. An API returns JSON, a client sends a CSV export, a legacy PHP app keeps its config in arrays, and the deployment pipeline wants YAML. Rewriting that by hand is slow and error-prone, and pasting it into an unknown website is a security risk. Every converter on this page runs in your browser with JavaScript, so nothing you paste is uploaded, logged or stored.
02
The converters walk nested structures, so an object inside an array inside an object comes through intact. The CSV tools let you pick the delimiter (comma, semicolon, tab, pipe or a custom string) and handle quoted fields that contain commas or line breaks. The PHP tools accept both the classic array() syntax and the short [] syntax, and produce output you can paste into a config file as-is. Most converters also load a file from disk or fetch a URL, then copy or download the result.
03
Pick the target format by where the data goes next. Use JSON for APIs and JavaScript, CSV or XLSX for spreadsheets and analysts, YAML for configuration and CI pipelines, XML for SOAP and older enterprise systems, and PHP arrays for Laravel or WordPress config files.
Browse more
Other tool categories
Format specs
Data format standards behind these converters
Questions
Data conversion questions
Why does my CSV open in a single column in Excel?
Excel splits a CSV on the list separator from your system's regional settings. In regions that write decimals with a comma, which includes much of Europe and South America as well as Indonesia, that separator is a semicolon, so a comma-delimited file lands entirely in column A. Export with a semicolon delimiter, import the file through Data > From Text/CSV and choose the delimiter there, or send an .xlsx file instead.
Should a config file be JSON or YAML?
YAML allows comments and is easier to edit by hand, which is why Kubernetes, Docker Compose, GitHub Actions and GitLab CI use it. JSON is stricter, and JavaScript, Python, PHP, Go and Ruby parse it with their standard libraries, so it suits files that programs write and read. Nearly every JSON document is also valid YAML 1.2, so a YAML parser will usually accept JSON as it is.
How accurate are the TypeScript, Go and Python types generated from JSON?
They describe the sample you paste. A field that is null in the sample gives no clue to its real type, a field that is absent is missing from the output, and a whole number may be typed as an integer when the API sometimes sends decimals. Paste a response that includes the optional fields, then read the result before you commit it.