CaseWren

TypeScript Formatter & Beautifier

Beautify TypeScript code - interfaces, generics and all.

0 Characters · 0 Words · 0 Lines

About the TypeScript Formatter & Beautifier

Paste a minified or hastily-written TypeScript fragment and get back structured, indented code. Type annotations (const x: string), interfaces, generics and decorators pass through the tokenizer untouched - only whitespace and line structure are normalized.

The same ASI-safe guarantee as the JavaScript formatter applies: original lines are never merged, so type-only code and interface bodies keep their exact shape. Everything runs locally, so proprietary code never leaves your machine.

How to use it

  1. 1Paste your TypeScript into the input.
  2. 2Choose 2-space or 4-space formatting.
  3. 3Copy the result into your .ts file.

Frequently asked questions

Related tools

Search CaseWren tools

Search all 147 tools…