Online JavaScript minification and formatting tool: compress by removing comments and whitespace, or format with Prettier. Protects string literals.
TL;DR: Free online JavaScript minifier powered by Terser with ES6+ support. Shortens variable names and tree-shakes unused code safely, runs locally in your browser.
This tool runs entirely in your browser. Open DevTools → Network panel and search your input — it appears in no request.
FAQ
Completely free, no registration required. Minify JavaScript code directly in your browser — all operations run locally with no usage limits.
Powered by Terser, supporting ES6+ syntax. It removes comments and whitespace, shortens local variable names, removes unused code (tree-shaking), and safely compresses string literals.
No. All JavaScript minification runs locally in your browser. Your code is never sent to any server, protecting your intellectual property.
No. Terser is a mature, industry-standard minifier that strictly preserves code semantics. The minified code is functionally identical to the original — just less readable and smaller in size.
Related Tools
Related Articles
Online CSS Minifier: Reduce CSS File Size for Better Performance
Learn how to compress CSS code to reduce file size. Understand CSS minification principles, common optimization strategies, and how to use an online tool to improve page load speed.
Online JavaScript Minifier: Reduce JS File Size for Faster Page Loads
Learn how to compress JavaScript code to reduce file size. Understand JS minification principles, common optimization strategies, and how to improve page performance through code compression.
Online HTML Minifier: Reduce HTML File Size for Faster Loading
Learn how to compress HTML code to reduce file size. Understand HTML minification principles, common compression strategies, and how to use an online tool to optimize page performance.