Bỏ qua đến nội dung chính
TOP free online tools Bàn làm việc của bạn
Tiếng Việt

JavaScript Trình thu nhỏ

Minify JavaScript by removing comments and whitespace trong trình duyệt của bạn. Free, online, Không tải lên, fully hoàn toàn riêng tư.

Xử lý cục bộ

Cách sử dụng

Nhập dữ liệu ở trên. Kết quả tự động cập nhật. Dùng nút sao chép để lưu kết quả.

Câu hỏi thường gặp

Câu hỏi thường gặp đang hiển thị bằng tiếng Anh trong khi bản dịch được hoàn thiện.

Is my JavaScript uploaded?

No. Minification happens locally in your browser. Your code never leaves your device.

Does it rename variables?

No. This minifier removes comments and whitespace but preserves variable names for safety without a full AST parser.

Does it remove comments?

Yes. Both single-line (//) and multi-line (/* */) comments are stripped. String and regex literal contents are preserved verbatim so commented-out code inside strings is not affected. Trailing semicolons are kept where removal could trigger ASI hazards.