Инструменты разработчика

Minify JavaScript online

Minify JavaScript code quickly in your browser.

Все инструменты

JS Minifier

Upload file
Drag & drop a file here, or choose a file.
Ввод
Вывод

Как использовать

  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.

Конфиденциальность

Некоторые инструменты работают в вашем браузере. Для части функций может потребоваться серверная обработка.

Примеры
Example 1
Ввод
function hello(name) {
  // say hi
  console.log('Hello ' + name);
}
hello('ToolsOnline');
Вывод

                                    
Example 2
Ввод
const items = [1, 2, 3];
items.forEach((x) => {
  if (x % 2 === 0) {
    console.log(x);
  }
});
Вывод

                                    

Was this tool helpful?