Compile TSX with Sucrase (strips TS + transforms JSX), then minify with Terser. Produces production-ready JS from TypeScript React files. Browser-based.
The TSX Minifier is a two-stage browser-based tool that processes TypeScript React (.tsx) files through both Sucrase transforms — `typescript` (strips type annotations) and `jsx` (converts JSX to `React.createElement` calls) — and then applies Terser with full compression and mangling for maximum size reduction. The entire pipeline runs in a Web Worker. Compression ratio and exact byte savings are shown after each run. A download button saves the minified output as a `.tsx` file. Your code never leaves the browser.
QWhat transforms does Sucrase apply to TSX?
Both the `typescript` transform (strips all type syntax) and the `jsx` transform (converts JSX to React.createElement) are applied sequentially, producing standard ES2020-compatible JavaScript.
QDoes the output require React to be in scope?
Yes — the JSX transform produces classic React.createElement calls, which require `React` to be available in the module scope.
QIs my code sent to a server?
No. Sucrase and Terser both run in a Web Worker inside your browser. Nothing is transmitted to any server.