JSON, CSV & Data Format Tools
Format, validate, convert and generate code from JSON, CSV, YAML and XML.
31 free tools in 4 steps. Each one runs in your browser. How we check our tools.
1. Format and fix
Pretty-print, validate, minify, repair and diff.
- JSON Formatter & ValidatorPretty-print, minify and validate JSON with clear error messages.
- JSON Validator (Find the Error)Check if JSON is valid and see the exact line and column of any mistake, with a tip to fix it.
- JSON Minifier (Compress JSON)Remove spaces and line breaks from JSON to make it as small as possible.
- JSON Repair (Fix Broken JSON)Fix almost-JSON: single quotes, keys without quotes, trailing commas, comments, Python True/None.
- JSON Key Sorter (A–Z)Sort every key in a JSON object alphabetically, at every level, to compare or tidy files.
- JSON Compare (Diff Two JSON)Compare two JSON documents and list every added, removed and changed value by its path.
- JSON String Escape / UnescapeTurn text into a safe JSON string (\n, \", \\) or turn an escaped string back into normal text.
- JSON FlattenerFlatten JSON values to escaped JSON Pointer paths.
- JSON Path Value ExtractorExtract a value using simple dot and array-index paths.
- XML Formatter & ValidatorPretty-print messy XML with clean indentation, or minify it, and find unclosed tags.
2. Convert
JSON, CSV, YAML, XML, JSON Lines and tables.
- JSON to CSVConvert a JSON array of objects into a CSV you can open in Excel.
- CSV to JSONTurn CSV (with a header row) into a JSON array.
- JSON to YAMLConvert JSON into clean, readable YAML (for configs, Docker, Kubernetes).
- YAML to JSON Converter & ValidatorConvert YAML (Docker Compose, Kubernetes, GitHub Actions, configs) to JSON and catch indentation mistakes.
- JSON to XML ConverterConvert JSON into well-formed XML with your own root element name.
- XML to JSONConvert XML (RSS, sitemaps, API replies) to JSON. Attributes become @keys.
- JSON Lines (NDJSON) ConverterConvert a JSON array into JSON Lines (one object per line) and back. Used for logs, BigQuery and AI datasets.
- CSV to Markdown TablePaste CSV or spreadsheet cells and get a neat Markdown table for GitHub, README files and docs.
- CSV to HTML / Markdown TablePaste CSV and get a ready-to-use HTML or Markdown table.
- HTML5 Table Code GeneratorGenerate clean semantic HTML tables with headers and styling.
- CSV to Markdown Table GeneratorConvert comma-separated data into GitHub Flavored Markdown table format.
- List to Array Converter (JSON, JS, Python, PHP…)Turn a pasted list into an array for JSON, JavaScript, Python, PHP, Java, C#, Go or a comma-separated line.
- .env Converter (to JSON, Docker, Kubernetes)Convert a .env file to JSON, docker -e flags, Docker Compose, Kubernetes env or GitHub Actions — or JSON back to .env.
3. Clean data
Fix and dedupe CSV files.
4. Generate code and data
Types, schemas, SQL and mock data.
- JSON to TypeScript TypesGenerate a TypeScript type from a JSON example.
- JSON Schema GeneratorCreate a draft JSON Schema from an example object.
- JSON to Zod SchemaGenerate a Zod validation schema and TypeScript type from sample JSON.
- JSON to Go StructGenerate Go structs with json tags from sample JSON, including nested objects and lists.
- JSON to Python Class (Dataclass / Pydantic)Generate Python dataclasses or Pydantic models from sample JSON, with type hints.
- JSON to SQL INSERT GeneratorCreate an escaped INSERT statement from flat JSON rows.
- Mock Data Generator (JSON, CSV, SQL)Generate fake users, products, orders or posts for testing, as JSON, CSV or SQL INSERT statements.