Strip types from TypeScript. Fast, accurate conversion that works entirely in your browser.
JavaScript will appear here...Enter your typescript content.
Content is converted to javascript.
Copy or download the converted output.
Use TypeScript to JavaScript when sharing code with developers who work in plain JavaScript, creating JavaScript bundles without a TypeScript compiler, or understanding what the TypeScript compiler produces. It is useful for library authors who want to publish JavaScript versions of their TypeScript code.
The converter accurately strips all TypeScript-specific syntax including type annotations, interfaces, type aliases, enums, generics, and decorators to produce clean JavaScript. It preserves all runtime logic, function implementations, and class structures. The output is valid JavaScript that runs identically to the compiled TypeScript.
All type stripping and conversion happens in your browser using client-side processing. No TypeScript code is sent to any external server, ensuring your source code remains completely private. This is safe for converting proprietary TypeScript codebases and library code.
This is a one-way conversion since TypeScript adds type information that does not exist in JavaScript. You cannot automatically infer TypeScript types from JavaScript code. The converted JavaScript runs identically to the original TypeScript but without the compile-time type safety.