Skip to main content

TypeScript to JavaScript

Remove TypeScript type annotations and convert to plain JavaScript

TypeScript Input

Paste your TypeScript code here

JavaScript Output

Plain JavaScript code without types

How to Use

1. Paste your TypeScript code in the input area

2. Click "Convert to JS" to remove type annotations

3. Copy the JavaScript output and use it in your project

What it removes:

  • Type annotations (: string, : number, etc.)
  • Interface declarations
  • Type aliases
  • Enum declarations
  • Generic types (<T>)
  • Type assertions (as Type)
  • Access modifiers (public, private, protected)
  • Non-null assertions (!)