Home » Developer Tools » TypeScript Minifier
Paste TypeScript and get smaller working JavaScript in seconds, right in your browser.
Your code never leaves your browser. Everything runs locally on your device.
TypeScript files carry extra information that browsers do not need: type annotations, interfaces, and enums. The TypeScript Minifier removes that type layer and shrinks the remaining JavaScript, so your code stays working but downloads faster.
This page is built for real TypeScript, not for plain JavaScript with the labels changed. Interfaces and type aliases are removed, enums become JavaScript objects, and generics are stripped, all before the code is minified. Everything runs in your browser, so your code is never uploaded to a server.
Yes, it is completely free with no sign up and no limits. You can minify as much TypeScript as you like, as often as you like.
JavaScript. Type annotations, interfaces, and type aliases are removed, and enums become JavaScript objects, so the output is plain JavaScript you can run in any browser.
Yes, for the constructs the tool supports. The logic of your code is unchanged; only types, comments, and extra whitespace are removed.
Yes. Interfaces and type aliases are removed, generics are stripped from functions, classes, and calls, and enums are converted to JavaScript objects.
No. All minifying happens in your browser on your own device, so your code never leaves your computer.
The tool shows a clear error message and keeps your input untouched, so you can fix the error and try again.
If you want to make your code readable again after shrinking it, try the TypeScript beautifier to format it back into clean code.