PrivTab

JSON を TypeScript に変換

JSON から TypeScript へ

ブラウザで動作 · アップロード不要

このツールとページ内の説明は、現在は英語のみです。動作は同じで、すべてブラウザ内で実行されます。

Generate TypeScript

  • 何も端末から出ません
  • サーバーによるサイズ制限なし
  • 登録不要・透かしなし
  • 無料

How to convert JSON to TypeScript

  1. Paste your JSON, or try the example.
  2. Choose interface or type, export and optional fields.
  3. Copy or download the TypeScript.

What you get

  • An interface for every object, named after its key.
  • Optional fields (name?: string) for fields missing from some array items.
  • Union types (string | null) where values differ.
  • Keys that aren't valid names (like "created-at") are quoted.

よくある質問

Is my JSON uploaded?

No. Everything happens in your browser, and the page is blocked from uploading anything.