Skip to content
2xKit

JSON to TypeScript

Generate TypeScript interfaces from a sample JSON object.

Runs in your browser

About this tool

Writing TypeScript interfaces by hand to match a JSON API response's shape is tedious and easy to get subtly wrong, especially for a response with nested objects and arrays. This tool generates TypeScript interfaces directly from a sample JSON object, giving you accurate starting types instead of hand-transcribing the shape of a JSON response.

Frequently asked questions