Search Ctrl K
Home / Tools
THE FEUTEX TOOLKIT

JSON to TypeScript Type

Infer a TypeScript type from a JSON example, including nested objects, mixed arrays, nullable values and quoted property names.

Private browser workspace● Runs in your browser
01 Your input
02 Your result

How to use JSON to TypeScript Type

  1. Paste the input or use the example.
  2. Adjust any options and run the tool.
  3. Review, copy or download the result.

Example

{"name":"Example","active":true,"roles":["editor"],"address":null}

Capabilities and limits

Infers only the supplied example, not an API contract. Missing fields are not inferred as optional. Empty arrays become unknown[] and empty objects become Record<string, unknown>. Maximum depth 40 and 20,000 visited values. Review the type against additional real examples.

Local processing

The tool processes your pasted input on this device. It does not send that input to a FeuTex processing server. Download your result before closing this page.