TypeScript Formatter & Beautifier Online

Format TypeScript and TSX code instantly with Prettier. No install needed.

Input —
Drop file to load
0 lines · 0 chars
Output —
0 lines · 0 chars
Ready. Paste something and press Beautify.

About this TypeScript Formatter & Beautifier

This TypeScript formatter applies Prettier's formatting to interfaces, type aliases, generics, enums, decorators and TSX. It's handy when you need to clean up a snippet without opening an editor.

Features

How to use

  1. Paste TypeScript into the Input box.
  2. Press Beautify.
  3. Copy the formatted code.

Frequently asked questions

Can I minify TypeScript here?

Not directly. Compile TypeScript to JavaScript first, then use the JavaScript minifier.

Which formatter is used?

Prettier 3, the same formatter used by most TypeScript projects.

More free formatters