Runs locally — nothing is uploaded
Result
Nothing yet — enter data or press Example.
How to use
- 1Paste a JSON sample, ideally with several array items.
- 2Name the root type.
- 3Choose interface or type alias.
- 4Copy the generated declarations.
When it is missing in some objects of the same array. A key that is present but null gets “| null” instead.
After their key in PascalCase (owner → Owner); array items use the singular (orders → Order). Identical shapes with the same name are reused, different ones get a number.
An empty array becomes unknown[] and an empty object Record<string, unknown>, because the sample shows no structure.
No, everything runs in your browser.
Related tools
JSON formatterValidate, pretty-print or minify JSON
JSON ↔ CSV converterFlatten JSON to CSV, or turn CSV into JSON
JSON ↔ YAML converterConvert configs between JSON and YAML
JSON to SQLCREATE TABLE and INSERTs from a JSON array
XML formatterValidate, indent or minify XML
Data size calculatorConvert data sizes and estimate download time
Messy data?
Send a sample — we reply within one business day with an approach and a quote.