Toolzy

JSON to TypeScript

Generate TypeScript interfaces from a JSON sample.

Turn any JSON object into ready-to-use TypeScript interfaces, inferring types automatically.

使い方

  1. Paste a JSON sample.
  2. Name the root interface.
  3. Copy the generated interfaces.

よくある質問

Does it handle nested objects?
Yes, nested objects become their own interfaces.
What about empty arrays?
Empty arrays are typed as unknown[] since the item type can't be inferred.

関連ツール