WebUtility
Universal Toolkit
WidgetsCalculatorsConvertersGenerators
Sign In
HomeToolsDevJSON to TypeScript Types
Back to Dev

Related Tools

.gitignore Generator

Generate .gitignore files for various languages and frameworks

Code Diff Checker

Compare two text blocks side-by-side with highlighted differences

Code Line Counter

Count lines of code, blank lines, and comments

WebUtility

Your go-to destination for 1000+ free online tools. Built for developers, designers, and everyone in between.

Tools

  • Converters
  • Calculators
  • Generators
  • Text Tools
  • Encoders

Resources

  • All Tools
  • About Us
  • Contact
  • Contribute
  • API Docs

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 WebUtility. Made withfor the web.

🚀 v1.0.01000+ Tools • 100% Free • No Signup Required

JSON to TypeScript Types

Turn JSON samples into reusable interfaces

export interface RootProfile {
  "city": string;
  "score": number;
}

export interface Root {
  "id": number;
  "name": string;
  "active": boolean;
  "roles": string[];
  "profile": RootProfile;
}
Nested objects become separate interfaces, and arrays are inferred from all items in the sample.