Skip to content

Developer tools

Free tool

JavaScript Converter

Convert JavaScript to TypeScript, free and online

JavaScript Converter is a free online tool that converts JavaScript source code to TypeScript using deterministic AST transforms. It handles automatic type inference, CommonJS-to-ES-module rewriting, JSDoc-to-type conversion, class-property detection, and tsconfig generation, and also renames .js/.jsx files to .ts/.tsx. A free Windows desktop app is available in addition to the browser tool.

What you get

Key capabilities of JavaScript Converter.

Module Rewriting

Converts CommonJS require and module.exports into ES Module import and export syntax.

JSDoc Type Inference

Turns JSDoc @param and @returns annotations into native TypeScript types.

Class Property Detection

Detects class properties from constructor assignments and hoists static members.

Automatic File Renaming

Renames .js files to .ts and .jsx files to .tsx during conversion.

Official site

Full documentation, live demos, and support live on javascriptconverter.com.

javascriptconverter.com

Not sure which product fits?

Tell us what you're building and we'll point you to the right tool — or the right license.