ToolsForcebeta

$ run --tool

JSON to TypeScript

Convert any JSON object into TypeScript interfaces, including nested types.

TypeScript

interface Address {
  city: string;
  zip: string;
}

interface RootObject {
  id: number;
  name: string;
  active: boolean;
  tags: string[];
  address: Address;
}

Features

  • Handles nested objects and arrays
  • Generates separate interfaces for nested shapes
  • Copy or download as .ts

How to use

  1. 1Paste your JSON
  2. 2Set a root interface name
  3. 3Copy or download the generated .ts file

Frequently asked questions

Does it handle nested objects?+

Yes, each nested object gets its own named interface.

Related tools

Need a tool that isn't here yet?

ToolsForce is growing every week. Tell us what to build next.

Request a tool