Private JSON type inference

Generate TypeScript types from JSON without uploading it

TypeDraft parses one bounded strict-JSON sample in an isolated no-network capsule. It creates deterministic nested declarations, merges array object shapes, marks absent properties optional and keeps null visible in unions.

Open TypeDraft

No account · no upload · interfaces or type aliases · copy or download

Three explicit steps

Paste, configure, review

01

Paste strict JSON

The sample stays inside the no-network capsule.

02

Choose the declaration style

Use interfaces or type aliases, with explicit export and readonly options.

03

Review the inferred draft

Compare it with the real schema before committing it.

Developer workflow

Useful for a fast, reviewable starting point

  • Draft API response types from representative fixtures.
  • Merge differing object keys found in one JSON array.
  • Compare interface and type-alias output before adapting it to the codebase.

Reproducible examples

Worked JSON-to-TypeScript examples

Paste a representative sample, inspect every inferred choice and copy only the reviewed output.
View examples

Private by construction

Generate the draft in this browser

Paste a representative sample, inspect every inferred choice and copy only the reviewed output.

Open TypeDraft