Convert JSON to TypeScript interfaces or types.
Drag & drop a file here, or click to browse
Supports JSON files
Privacy: This tool runs entirely in your browser. No data is sent to our servers. We don't store, share, or have access to any of the information you process here.
{"name":"John","age":30,"active":true}{"items":[{"id":1,"name":"Item 1"},{"id":2,"name":"Item 2"}]}{"metadata":{"createdAt":"2024-01-01","tags":["tag1","tag2"]}}A: You can choose between interface and type alias.
A: Yes, fields with null/undefined become optional.
This tool runs entirely in your browser. No data is sent to our servers. We don't store, share, or have access to any of the information you process here.