devvkit / generators
TypeScript Interface Generator
Convert JSON to TypeScript interfaces, types, and Zod schemas.
Interface name:
JSON Input
Interface mode generates named interfaces; type mode generates inline type literals; zod mode generates a runtime schema with z.object/z.array/z.optional plus an inferred type. Zod output assumes v3 import syntax: adjust if you use Zod v4.
share this tool
related tools
JSON Formatter
Format, validate, minify, and prettify JSON data instantly.
SQL Schema Generator
Generate CREATE TABLE statements from JSON or CSV data.
OpenAPI Spec Generator
Generate OpenAPI 3.1 specifications from sample data.
JSON to YAML Converter
Convert between JSON and YAML formats without data loss.
Generate TypeScript interfaces and types from JSON samples, API responses, or database schemas. Produce clean, well-typed TypeScript definitions with nullable fields, arrays, and nested objects.
>[x]Features
- -Generate TypeScript interfaces from JSON objects
- -Support for nested objects, arrays, unions, and optional fields
- -Detects and generates enum types from string unions
- -Configurable naming conventions (PascalCase, camelCase)
- -Export as .ts file or copy to clipboard
- -Inline JSDoc comments from JSON descriptions
>>Use Cases
- >Creating TypeScript types from API JSON responses
- >Generating type definitions for database query results
- >Rapidly prototyping type-safe interfaces from sample data
- >Migrating JavaScript projects to TypeScript with type generation