JSON to Types

Turn JSON into TypeScript, Go, Python, Rust and more type definitions instantly — in your browser

JSON

Optional fields: set a value to null (with “null = optional” on), or paste an array of example objects — a field missing from some becomes optional.

100% private: generated entirely in your browser, your JSON is never uploaded.

Generated types
Paste a JSON object or array to generate type definitions.