close
Skip to main content

TypeScript to JavaScript Converter

Strip TypeScript type annotations, interfaces, type aliases, generics, enums, and as-casts from your source. Conversion runs entirely in your browser — your TypeScript is never uploaded. Useful when you need a plain ES module for a JS-only build pipeline or a CodePen-style demo.

What this stripper removes

  • • Parameter and return type annotations
  • • Variable type annotations (const x: T = ...)
  • • Generic type parameters (<T>)
  • interface and type declarations
  • as casts and satisfies expressions
  • ! non-null assertions
  • enum declarations (optionally compiled to const objects)
  • public/private/protected/readonly modifiers

When to use this tool

Sometimes you need plain JavaScript — for a CodePen, a JS-only bundler config, a snippet inside Markdown, or to feed code into a tool that can't parse TypeScript. This converter gives you valid ES module output without needing to spin up tsc.

For the opposite direction, see the JS to TS converter.