TypeScript Beautifier

Beautify and indent 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

About the TypeScript Beautifier

This tool reformats TypeScript so it is easy to read. It uses the same tokenizer as the JavaScript beautifier — safe for strings, template literals, regex literals, generics and decorators.

What it does

  • Adds newlines after {, }, and ;.
  • Indents nested blocks.
  • Preserves strings, template literals, regex, generics and comments.