Transpile JSX to React.createElement calls with Sucrase then minify with Terser. Instantly reduces React component file size. Shows compression ratio. Browser-based.
The JSX Minifier is a two-stage browser-based tool that transforms JSX syntax to standard `React.createElement` calls using Sucrase's JSX transform, then minifies the resulting JavaScript with Terser (`compress: true`, `mangle: true`). The entire pipeline runs in a Web Worker so even large React component files process without blocking the page. Compression ratio and exact byte savings are displayed after each run. A download button saves the minified `.jsx` output directly.
QWhat does the JSX transform do?
Sucrase's JSX transform converts JSX elements (e.g. `<div className="x">`) to `React.createElement('div', {className: 'x'})` calls. This is the standard approach used by Babel and Vite to make JSX valid JavaScript.
QDoes this support the React 17 automatic JSX runtime?
The Sucrase JSX transform used here produces classic `React.createElement` calls (React 16 style), not the automatic `_jsx` import. The output requires `React` to be in 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.