TypeScript Minifier

Minify

Minify TypeScript code in your browser. Paste code, run the minifier, and copy the compact result. Your input stays on this device.

Minifier example

Before

type User={id:number;name:string}
const user:User={id:1,name:'Ada'}

After

type User={id:number;name:string};const user:User={id:1,name:'Ada'};

Workflow

Use TypeScript without sending code.

Paste a snippet, run the action, review any highlighted issue, then copy the result back to your work.

Current language
TypeScript
Current action
Minifier
  1. 01

    Start

    Paste a snippet or full file into the editor.

  2. 02

    Run

    Use Minify code from the action bar.

  3. 03

    Review

    Check that the compact result is suitable for your target runtime.

  4. 04

    Move

    Use Copy code when the result is ready.

Files
.ts, .tsx
Paste a TypeScript snippet or a full source file.
Engine
SWC
Runs the browser-side minifier for compact output.
Privacy
Local run
The editor does not send pasted code to a formatting API.
Result
Compact output
Copy the compact result after checking it still parses as expected.