Paste an API response or any JSON and get TypeScript types for it. Nested objects become their own named interfaces, arrays of objects are merged into one type with optional fields where items differ, and identical shapes share a name. Choose interface or type, export, readonly and the root name, then copy or download a .ts file.
Types come from this one sample. A field that is sometimes missing or null in real data needs a second sample (paste an array of both) or a manual ?.
Processing runs in your browser. What you type never leaves this device.
interface or type alias output
Named types for nested objects
Array items merged; missing keys marked optional
Unions for mixed values (number | string)
Identical shapes reuse one type
Quoted names for keys like "first-name"
Paste a real response from a payment gateway, courier or CRM API and get types to start from.
Generate types for fixtures and config objects instead of writing them by hand.
Show the shape of a webhook payload in a readable form for your team.
Types come from the values you paste. If a field can be null or missing in real data but is filled in your sample, the type will not show it. Paste an array with several real items so the generator can see the differences.
Need a schema for validation instead? Use the JSON Schema generator.
JSON Schema Generator
Generate JSON Schema or TypeScript interfaces from JSON
JSON Formatter
Format and validate JSON
Mock Data Generator
Fake Indian test data (names, cities, +91 phones) as JSON, CSV, SQL or TypeScript
JSONPath Tester
Query JSON with JSONPath expressions and filters
JSON Sort Keys
Alphabetize JSON keys at every level
JSON Flatten
Nested JSON to dot-path keys
JSON Unflatten
Dot-path keys back to nested JSON
Built by Edesy
Edesy builds AI products for Indian businesses. Start self-serve, no demo call needed.
AI agents that answer and make phone calls 24/7. Handle appointments, inquiries and support in Indian and global languages.
₹50 free credit. No demo call needed.