TR ToolRivet

Developer Tools

JSON to TypeScript Converter

Convert JSON into TypeScript interfaces directly in your browser.

Converter

Paste JSON, choose a root name, and copy the generated TypeScript.

export interface RootObject 

How to use

  1. 1. Paste your JSON

    Add a valid JSON object, array, or value to the input editor.

  2. 2. Choose a root interface name

    Use the default RootObject or enter a project-specific name.

  3. 3. Copy the generated TypeScript

    Review the result and paste it into your codebase.

Example

Arrays of objects are merged into item interfaces. Properties missing from some array items are marked optional.

{
  "tools": [
    { "title": "JSON to TypeScript", "active": true },
    { "title": "Timestamp Converter" }
  ]
}

FAQ

Is the conversion done locally?

Yes, the conversion runs in your browser.

Do I need to sign up?

No, ToolRivet tools are designed to work without sign-up.

Does it support nested objects?

Yes, nested objects are converted into nested TypeScript interfaces when possible.