PrivTab

JSON en TypeScript

JSON en TypeScript

Fonctionne dans votre navigateur · Aucun envoi

L’outil et les instructions de cette page sont en anglais pour le moment. Il fonctionne de la même façon : tout se passe dans votre navigateur.

Generate TypeScript

  • Rien ne quitte votre appareil
  • Aucune limite de taille imposée par un serveur
  • Sans inscription, sans filigrane
  • Gratuit

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.

Questions fréquentes

Is my JSON uploaded?

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