JSON to TypeScript
Generate TypeScript interfaces from JSON data, inferring nested objects and arrays. Everything runs in your browser.
FAQ
Is my JSON sent to a server?
No. Everything happens entirely in your browser and no data leaves your device.
Are nested objects typed too?
Yes. Nested objects become their own interfaces, and arrays of objects merge element keys into an element type.
How are null values handled?
null values are typed as null. Refine the generated types with unions as needed.
Related tools
Format JSON for readability or minify it to a single line. Syntax errors are shown instantly.
Convert a JSON array into CSV. Arrays of objects use their keys as the header. Everything runs in your browser—no data leaves your device.
Convert YAML into JSON, including nested structures and arrays. Everything runs in your browser—no data leaves your device.
Pick Linux file permissions with checkboxes to get the octal (755) and symbolic (rwxr-xr-x) forms, or set them from an octal value. Everything runs in your browser.
Parse a cron expression field by field and compute the next 5 run times.
Compare two texts line by line and highlight added and removed lines.