Workspace

JSON to TypeScript

Generate TypeScript interfaces or types from a JSON sample. Merges array items and marks inconsistent keys optional.

Result

Run the tool to see results here.

About JSON to TypeScript

JSON to TypeScript is a free online developer tool. Generate TypeScript interfaces or types from a JSON sample. Merges array items and marks inconsistent keys optional.

Enter your input, adjust the options (root name, style and export types) and run it. The result appears right next to the form, is never stored, and you can copy or save it in one click. No account is needed.

You may also know this as: json-to-ts.

How to use JSON to TypeScript

  1. Type or paste your input into the form.
  2. Choose the options you need: root name, style and export types.
  3. Press Run, or use Ctrl/⌘ + Enter.
  4. Copy or save the result from the panel on the right.

JSON to TypeScript FAQ

What does JSON to TypeScript do?

Generate TypeScript interfaces or types from a JSON sample. Merges array items and marks inconsistent keys optional.

Is JSON to TypeScript free to use?

Yes. JSON to TypeScript is free, with no sign-up or account required.

Is my data safe?

Results are never stored. See our privacy policy for details.

What options does JSON to TypeScript have?

You can set: Root Name, Style and Export Types.

Is JSON to TypeScript also called “json-to-ts”?

Yes. “json-to-ts” is another common name for this task, so you’re in the right place.

More developer toolbox tools

See all Developer toolbox tools →

Popular on Toolsera