JSON & Data Tools

Format, fix and validate JSON, convert between JSON, CSV and TSV, and generate typed models from JSON.

These tools cover the work that starts when JSON lands in front of you: an API response that will not parse, a config file someone hand-edited, a spreadsheet export that a script needs as JSON, or a payload you have to model in code. They are built for developers, QA engineers, data analysts and anyone who moves structured data between systems.

The jobs fall into three groups. First, make the JSON valid and readable. Second, move it between JSON and tabular formats such as CSV and TSV without breaking quoting. Third, turn a real sample into typed models for TypeScript, Zod, Python, Go, Kotlin, Swift, Dart, C# or Java, so your code can stop treating the payload as an untyped map.

15 free tools. Everything runs in your browser; nothing you enter is uploaded.

Format, fix and validate JSON

Start here when JSON fails to parse, is hard to read, or has to match a contract. Fix syntax first, then format it, then check it against a schema.

Convert between JSON, CSV and TSV

Use these when data has to cross between an API or script and a spreadsheet, database import or analytics tool. All three parse quoted cells properly instead of splitting on every comma.

Generate typed models from JSON

Paste a real payload and get classes, structs or schemas for your language. Treat the result as a first draft that you tighten by hand, since one sample cannot reveal every rule.

Which tool do I need?

Match the symptom or the goal to a tool:

  • The parser says Unexpected token or Expected double-quoted property name, often because of single quotes, trailing commas, comments or Python values like None: JSON Fixer.
  • The JSON is valid but minified or badly indented, or you need the minified form: JSON Formatter / Beautifier.
  • An API rejects your request body and you need to know which field breaks the contract: JSON Schema Validator.
  • A spreadsheet export needs to become an array of objects: CSV to JSON Converter. The reverse, for opening API data in Excel or Google Sheets: JSON to CSV Converter.
  • An importer wants commas but you have tab-separated text copied from a spreadsheet, or the other way around: CSV to TSV Converter.
  • You want compile-time types only: JSON to TypeScript Interface Generator. You also want to validate the data at runtime: JSON to Zod Schema Generator, or JSON to Python Pydantic Model Generator on the Python side.

A typical workflow: from raw API response to typed code

If a response copied from a log line or a chatbot answer will not parse, paste it into JSON Fixer, read the Auto-fixes applied list, and check that the repairs did not change any values. Move the result to JSON Formatter / Beautifier if you want it at a specific indentation for a code review or a fixture file.

If the endpoint has a documented JSON Schema, run the cleaned payload through JSON Schema Validator to confirm it actually matches before you build on it. Then paste the same payload into the generator for your language. If the response is a list, paste an array with several records rather than one, because generators such as the TypeScript, Zod and Go ones compare the records and mark keys that are missing or null in some of them as optional or nullable.

Finally, review the types a sample cannot prove: dates arrive as strings, IDs may be numbers in one response and strings in another, and an empty array gives no hint about its item type.

What changes when data crosses formats

JSON has types; CSV and TSV do not. CSV to JSON Converter therefore keeps every value as a string, so a ZIP code like 02134 keeps its leading zero and you convert numbers and booleans yourself. Going the other way, JSON to CSV Converter writes nested objects and arrays into a single cell as JSON text instead of flattening them into dotted columns, which keeps one row per record.

Numbers are another trap. JSON is parsed with the browser's JavaScript engine, so integers above 2^53, such as long account or snowflake IDs, can lose precision when they are formatted or converted. If exact digits matter, have the source send them as strings.

Frequently asked questions

Common questions about JSON & Data Tools.