JSON to TypeScript, Zod & Pydantic

Generates TypeScript interfaces, Zod schemas, and Pydantic models from a pasted JSON sample, inferring nested objects, arrays, optional fields, and nullable values.

Runs locally in your browser
Sample JSON

Paste an API response, fixture, or configuration object. The sample stays in this browser.

Generated code
Generate from a JSON sample to create TypeScript types.

Inference is based on the supplied sample. Review IDs, nullable values, date strings, and business constraints before using generated types in production.

Generate typed models without uploading an API response

Use the TypeScript output as a fast model scaffold, the Zod schema for runtime validation, or the Pydantic models for Python API code. No JSON is sent to KivTools or another service.

Recent tools: