01
Paste valid JSON
Use representative values from the API response or configuration you are reviewing.
Generate a reviewable TypeScript type from valid JSON locally, preserving mixed array values as visible union types.
0 / 200,000 characters
unknown[]; mixed arrays become visible union types. It does not guess optional fields, dates, enums, or application-specific models.Data handling
Advertising and analytics are separate site services. We do not send selected tool input to them. Read the Privacy Policy for details.
How it works
01
Use representative values from the API response or configuration you are reviewing.
02
Choose the exported type name you want in your codebase.
03
Check mixed arrays, empty arrays, and quoted property names before copying the result.
Clear limit
A single JSON sample cannot prove every field that an API may return. This tool only maps the values present in the pasted sample. Add optional fields, stricter literal types, dates, and domain rules in your code after review.
Pasted JSON stays in the current browser tab.
Different value types remain as explicit unions.
No item type is invented for an empty array.
Keys that need quoting stay quoted in output.
FAQ
It creates one exported type alias. Nested objects stay readable inline, which makes every inferred value visible in one result.
There is no item value to infer from. The tool shows that uncertainty instead of guessing a type.
No. Parsing and type generation happen only in your browser.
Keep working
Format, minify, sort, and validate JSON locally with clear syntax feedback.
Open tool →Convert valid JSON into explicit YAML locally, with text values quoted to preserve their meaning.
Open tool →Convert valid JSON into typed, indented XML locally without silently renaming invalid element keys.
Open tool →Test a regular expression against sample text locally, with visible flags, matches, capture groups, and a time limit.
Open tool →