Skip to content
Accessibility
Theme
Text size
High contrast
Limit animations
Readable fontAtkinson Hyperlegible
Increased text spacing
Underline links
Always show focus

Runs in your browser — nothing you paste is uploaded.

JSON → Types

Paste a JSON sample and get TypeScript interfaces or Go structs. Handles nested objects and arrays. Runs in your browser.


    

What it does

Infers a type shape from your JSON: object keys become fields, arrays use their first element's type, and nested objects become their own named type. Numbers map to number/float64, strings to string, booleans to boolean/bool.

Limitations

It infers from one sample, so optional/union fields and mixed arrays are approximated. Treat the output as a strong starting point.

Privacy

Generation is local; nothing is uploaded.

Related tools