JSON to TypeScript

This runs in your browser. Nothing is uploaded.

What it does

Writes TypeScript interfaces that match a piece of JSON. Give it a list with several items, and fields that some of them lack become optional.

Questions

Can I trust the types?
They describe your sample. A field that's only sometimes null looks like plain text if your sample never has a null.

Related tools

See the full list: Developer tools