Private, browser-local utility

JSON to TypeScript Converter

Convert bounded JSON into deterministic TypeScript interfaces entirely in your browser.

JSON stays in this tab. It is parsed as data without eval, Function, network requests, or persistence.

Loading local tool…

Inference policy and bounds

V1 supports objects, nested objects, arrays, strings, numbers, booleans, and null. Date-like strings remain strings. Empty arrays become unknown[]; heterogeneous primitives form a union; root object arrays merge keys deterministically and mark fields optional when absent.

Input is limited to 200,000 characters, nesting to 20 levels, and generated object types to 150. Type names are sanitized and collision-resistant. The converter never executes input and is not a complete TypeScript schema or runtime validator.