開発者ツール

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?