GRAPHQL → TYPESCRIPT

Paste a GraphQL SDL schema and instantly get TypeScript interfaces, enums, and type aliases. Supports objects, inputs, enums, unions, scalars — live conversion, no backend.

GRAPHQL SDL INPUT
TYPESCRIPT OUTPUT
// TypeScript will appear here
CONVERSION RULES
Scalars
String/ID→string, Int/Float→number, Boolean→boolean
Objects & Inputs
Become TypeScript interface
Enums
Become TypeScript enum with string values
Unions
Become type A = B | C union types
Non-null (!)
Required — no null wrapping
Nullable
T | null | undefined or Maybe<T>
Lists
Become Array<T>
Custom scalars
Typed as unknown with comment