Developer

JSON to TypeScript Interfaces

Generate TypeScript interfaces from a sample JSON object.

Optional fields can't be detected from a single sample — mark them with ? yourself.

Developer

JSON to TypeScript Interfaces

Local only
Everything stays in your browser

Your text is processed on your device — nothing is uploaded to a server.

How it works

Infers types from the sample; nested objects get their own interfaces and identical shapes are reused. Optional fields can't be detected from a single sample — mark them with ? yourself.

Good to know

Frequently asked questions

How do I use it?

Enter your json sample, adjust the options and press “Generate types”. Check the result, then copy or download it.

How does it work?

Infers types from the sample; nested objects get their own interfaces and identical shapes are reused.

Are there limitations?

Optional fields can't be detected from a single sample — mark them with ? yourself.

Is my data uploaded?

No. Everything is processed in your browser and nothing is sent to a server. No account is needed.