JavaScript Minifier — Compress & Shrink JS With Terser
Minify JavaScript with terser. Mangle, compress, comment policies — and a before / after size comparison.
Size:
Size: · saved %
Working…
Cách dùng
- 1 Paste your JavaScript on the left.
- 2 Toggle Mangle / Compress and pick a comment policy.
- 3 Click Minify — see before / after size at a glance.
Vì sao dùng công cụ này
- Real terser engine — same minifier used by webpack, Rollup, and Vite.
- Lazy-loaded — terser is fetched only when you click Minify, keeping the page light.
- Side-by-side size comparison so you can see exactly what you saved.
- Pure client-side — your source never leaves the browser.
Câu hỏi thường gặp
What is the difference vs obfuscation?
Minifying shortens names and compresses syntax for performance. Obfuscation goes further — flattens control flow, encodes strings, injects dead code. See the <a class="underline" href="/js-obfuscator">JS Obfuscator</a>.
Will it run on modern JS?
Yes — terser supports ES2020+ syntax including optional chaining, BigInt, top-level await.
Need to pretty-print it back?
Use the <a class="underline" href="/javascript-formatter">JavaScript Formatter</a> to reverse the layout (not the mangling).
JavaScript Minifier là gì?
A JavaScript Minifier is a tool that compresses JavaScript source code to reduce its file size for faster delivery. Built on terser, it offers control over name mangling, compression, and comment policies, and shows a before-and-after size comparison. Running entirely in the browser, it minifies code client-side so scripts are never uploaded to a server.
JavaScript Minifier là công cụ lập trình miễn phí của Zerethon Tools. Minify JavaScript with terser. Mangle, compress, comment policies — and a before / after size comparison. Chạy hoàn toàn trong trình duyệt — không đăng ký, không tải lên.
- Danh mục
- Lập trình
- Giá
- Miễn phí
- Quyền riêng tư
- Chạy trên trình duyệt
- Đăng ký
- Không cần
Quyền riêng tư
Dữ liệu của bạn không bao giờ rời khỏi trình duyệt trừ khi được nêu rõ. JavaScript Minifier chạy hoàn toàn phía client — không tải lên máy chủ, không ghi log, không theo dõi dữ liệu bạn nhập.
Công cụ liên quan
JSON Formatter
Format, validate, and minify JSON online. Free, no signup — your data never leaves your browser.
Mở công cụSQL Formatter
Format SQL queries online — beautify MySQL, PostgreSQL, SQLite, SQL Server, Oracle, and BigQuery.
Mở công cụUUID Generator
Generate UUIDs online — v1, v4, v7, and Nil. Bulk generation up to 10,000. Free, no signup.
Mở công cụPassword Generator
Generate strong, cryptographically random passwords. Configurable length and character sets — runs in your browser.
Mở công cụBuild, share, and grow on Zerethon Social
Free signup. Earn points, collect achievements, and connect with creators worldwide.