Remove Comments from TypeScript

Strip comments from TypeScript code.

100% Private — Nothing is Uploaded

All processing happens locally in your browser. Your files never leave your device and are never sent to any server.

Other languages

Remove TypeScript Comments

TypeScript uses the same comment syntax as JavaScript — // for lines and /* ... */ for blocks. This tool strips them all with a smart tokenizer that understands strings, template literals, regex literals and TypeScript-specific syntax such as generics and decorators.

Why remove TypeScript comments?

  • Smaller compiled output — comments are dropped before bundling.
  • Cleaner distribution — hide internal notes from published libraries.
  • Faster minification — fewer tokens for the minifier to process.