Back to tools
TypeScript Formatter
Beautify, format, minify, remove comments, and copy TypeScript code instantly in your browser.
How to use TypeScript Formatter / Minifier
Paste TypeScript
Add your TypeScript code, interfaces, or type definitions into the input box.
Format code
Use Format TS to beautify your code with proper indentation.
Minify TypeScript
Use Minify TS to compress code into a single line, removing comments and spaces.
Remove comments
Strip TypeScript comments before using the code in production.
Copy output
Copy the processed TypeScript output instantly to your clipboard.
Clear editor
Reset the input and output areas when you want to start over.