JSON to TypeScript

Generate TypeScript interfaces from a JSON sample. Free, no sign-up, your data stays on your device.

🔒 100% private — processing happens in your browser. Nothing is uploaded.

How to use the JSON to TypeScript converter

  1. Paste a JSON object or array — for example an API response.
  2. Choose the root name and interface or type style.
  3. Click Convert and copy the TypeScript definitions.

Typing API responses by hand is slow and error-prone. Nested objects become their own interfaces, arrays of objects are merged so fields that are missing in some items become optional (?), and null values become “| null”. Paste several examples in an array for the most accurate result.