Generate TypeScript types from GraphQL schemas with style
Enter a GraphQL endpoint and click "Generate Types" to get started
Or press Ctrl + Enter to generate
You can also pass the GraphQL endpoint as a URL parameter:
/?graphqlApiEndpoint=https://spacex-production.up.railway.app/
Paste GraphQL schema definitions directly:
type Query {
user: User
posts: [Post!]!
}
type User {
id: ID!
name: String!
email: String!
}
type Post {
id: ID!
title: String!
content: String!
author: User!
}
Try these public GraphQL APIs:
Transform your GraphQL schemas into TypeScript types instantly with our free online GraphQL Codegen tool. No installation required - just paste your GraphQL endpoint and generate production-ready TypeScript types, React Query hooks, GraphQL Request SDKs, and more.
TypeScript types, React Query hooks, GraphQL Request SDK, Typed Document Nodes, and more.
Work with authenticated APIs using Bearer tokens, API keys, and custom headers.
Instant code generation with performance metrics and file size tracking.
Copy to clipboard, download files, keyboard shortcuts, and dark mode support.
No registration required, secure server-side processing, and completely open-source. We don't store your GraphQL schemas or generated code.