Unminify TypeScript Online — Free TS Formatter

Unminify compressed TypeScript. Restore readable formatting, processed only in your browser.

Loading…
TypeScript Unminification
Unminify TypeScript online.

Features

Restore readable formatting from minified TS (alias beautify).

Unminify TypeScript

Restore readable formatting from minified TS (alias beautify).

Basic example

Minified TypeScript

interface User{id:number;name:string}async function fetchUsers<T extends User>(ids:number[]):Promise<T[]>{const res=await fetch(`/api/users?ids=${ids.join(",")}`);return res.ok?(await res.json())?.data??[]:[]}

Formatted TypeScript

interface User { id: number; name: string; } async function fetchUsers<T extends User>(ids: number[]): Promise<T[]> { const res = await fetch(`/api/users?ids=${ids.join(',')}`); return res.ok ? ((await res.json())?.data ?? []) : []; }

Formatting options

Print width
Sets the line length at which Prettier wraps code: 80, 100 or 120 characters.

Adjust tab width, tabs vs spaces, and quote style in the toolbar.

Prettier-powered formatting

Uses Prettier with the TypeScript parser. For JavaScript minification see our JS minifier or JS beautifier.

Local processing & data handling

Your TypeScript is parsed and reformatted in-browser with Prettier. No uploads, no server-side storage, and no account required. Suitable for proprietary code and internal projects.

TypeScript unminifier FAQ

Unminification

How does unminify work?

Unminify applies the same Prettier beautify pass to restore indentation.

Make minified code readable again to debug or review it. Unminify JavaScript, CSS, TypeScript, SCSS, LESS, SQL, YAML and other formats.