JS Minifier

Minify JavaScript, TypeScript or JSX in your browser, and turn code or a GitHub Gist into a bookmarklet.

{{ currentSource.help }}

{{ notice.text }}
or drop files and folders here

Drop scripts or folders here, or open them above.

JavaScript, TypeScript and JSX files are minified with the options below. node_modules, hidden folders, .min.js and .d.ts files are skipped.

File Size Minified Saved Actions
{{ row.path }} → {{ minifiedName(row.path) }} {{ row.error }} {{ formatBytes(row.inputBytes) }} −{{ Math.max(0, Math.round((1 - row.outputBytes / row.inputBytes) * 100)) }}%
Drop scripts or folders to add them
Open
{{ gistError }}
{{ gist.description || 'Untitled Gist' }} by {{ gist.owner }} · {{ gistFileNames.length }} {{ gistFileNames.length === 1 ? 'file' : 'files' }} {{ check.text }}

{{ isLoader ? 'Loader code' : 'Input' }}

Read only
Drop a script to open it
{{ bookmarkletLabel.trim() || 'Bookmarklet' }} Drag it to your bookmarks bar
{{ busyText }}
{{ emptyText }}
{{ busyText }} Sizes appear here.
Options {{ optionsSummary }}
Minify
Remove
Output
Bookmarklet
JSX