Công cụ lập trình

Minify JavaScript online

Minify JavaScript code quickly in your browser.

Tất cả công cụ

JS Minifier

Upload file
Drag & drop a file here, or choose a file.
Đầu vào
Đầu ra

Cách sử dụng

  1. Paste JavaScript into the input.
  2. Click Minify to compress the code.
  3. Copy or download the output.

Best practices

  • For best performance, try with smaller inputs first.
  • Preview the output before downloading or sharing it.
  • Avoid pasting sensitive data on shared devices.

Quyền riêng tư

Một số công cụ chạy trong trình duyệt của bạn. Một số có thể cần xử lý phía máy chủ tùy theo tính năng.

Ví dụ
Example 1
Đầu vào
function hello(name) {
  // say hi
  console.log('Hello ' + name);
}
hello('ToolsOnline');
Đầu ra

                                    
Example 2
Đầu vào
const items = [1, 2, 3];
items.forEach((x) => {
  if (x % 2 === 0) {
    console.log(x);
  }
});
Đầu ra

                                    

Was this tool helpful?