Input format
GraphQL converters
GraphQL SDL types translate naturally into typed structures across 15 languages. Useful when you operate on shapes from a federated schema without going through a heavy GraphQL client.
All GraphQL converters
15 conversions, all live.
GraphQL → TypeScript
Live
GraphQL → Zod
Live
GraphQL → Yup
Live
GraphQL → Joi
Live
GraphQL → Pydantic
Live
GraphQL → Python dataclass
Live
GraphQL → Go struct
Live
GraphQL → Rust struct
Live
GraphQL → Kotlin data class
Live
GraphQL → Swift struct
Live
GraphQL → Dart class
Live
GraphQL → Java POJO
Live
GraphQL → C# record
Live
GraphQL → PHP class
Live
GraphQL → Ruby class
Live
Sample GraphQL
Here's the default sample used across the converter pages. Each tool page has additional real-world samples (User profile, e-commerce order, etc.) you can switch to.
type User {
id: ID!
name: String!
email: String
isAdmin: Boolean!
}