Quicktype infers strongly typed models and serializers from JSON samples, JSON Schema, TypeScript, or GraphQL. Output targets many programming languages via the web app, CLI, or JavaScript API.
Overview
Quicktype turns sample JSON, schemas, TypeScript definitions, or GraphQL queries into language-specific types, serializers, and validators. It merges multiple samples to refine nullability, unions, enums, and numeric widths, and maps awkward JSON keys to legal identifier names with matching encode logic.
You can start in the browser at app.quicktype.io, install the CLI globally with npm, or call quicktype-core from Node or bundled applications. A typical workflow generates a schema from examples, reviews it, commits it, and regenerates code during builds.
Supported outputs span mainstream languages plus JSON Schema, prop-types, and similar targets. The tool recognizes UUIDs, timestamps, URLs, map-like objects, and union shapes, emitting idiomatic code per language including helper marshal functions where needed.
The project also supports custom renderers, MCP exposure for coding agents, and offline use in the web UI without sending samples over the network. TypeScript consumers use typed language-name options when selecting targets at runtime.
Key features
- JSON and JSON Schema inputs
- GraphQL and TypeScript sources
- Twenty-five plus target languages
- Browser, CLI, and Node API usage
- Multi-sample type merging
- Custom language renderers
- MCP integration for AI agents
- Offline-capable web application
Use cases
- API client type generation
- Build-time schema-driven codegen
- GraphQL client model creation
- Safe JSON parsing in mobile apps
- Agent-assisted type scaffolding