JSON Fixer
Auto-detect and fix common JSON formatting issues in real time.
Open JSON Fixer
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.
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.
Auto-detect and fix common JSON formatting issues in real time.
Open JSON Fixer
Format and beautify JSON instantly with proper indentation.
Open JSON Formatter / Beautifier
Validate JSON against a JSON Schema in the browser with clear errors and example templates.
Open JSON Schema Validator
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.
Convert CSV data into structured JSON quickly.
Open CSV to JSON Converter
Convert JSON arrays of objects (or a single object) into CSV.
Open JSON to CSV Converter
Convert CSV to TSV or TSV to CSV with correct quoting for commas, tabs, quotes and line breaks.
Open CSV to TSV Converter
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.
Generate TypeScript interfaces from JSON samples.
Open JSON to TypeScript Interface Generator
Generate Zod validation schemas with inferred TypeScript types from JSON samples.
Open JSON to Zod Schema Generator
Generate Python Pydantic BaseModel classes from JSON samples.
Open JSON to Python Pydantic Model Generator
Generate Go struct definitions with JSON tags from JSON samples.
Open JSON to Go Struct Generator
Generate Kotlin data classes with null safety and serialization annotations from JSON samples.
Open JSON to Kotlin Data Class Generator
Generate Swift Codable structs from JSON samples with CodingKeys support.
Open JSON to Swift Codable Model Generator
Generate Dart model classes with fromJson/toJson from JSON samples.
Open JSON to Dart Model Generator
Generate C# classes with JSON property attributes from JSON samples.
Open JSON to C# Class Generator
Generate Java POJO classes with Jackson annotations from JSON samples.
Open JSON to Java POJO Generator
Match the symptom or the goal to a tool:
Unexpected token or Expected double-quoted property name, often because of single quotes, trailing commas, comments or Python values like None: JSON Fixer.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.
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.
Common questions about JSON & Data Tools.
z.infer type gives you the static type from the same source.