JavaScript圧縮
JavaScriptからコメントと空白を削除します。
ブラウザ内で動作します。ファイルは端末の外に出ません。 確認方法を見る
…
使い方
- 1項目を入力
数値を入力するか、必要なオプションを選びます。
- 2結果を見る
値を変えるとすぐに答えが更新されます。
- 3活用する
結果をコピーするか書き留めてください。何もどこにも送信されません。
About this tool
Paste your JavaScript and the tool removes comments and unnecessary whitespace while keeping strings, template text and regular expressions safe. This is a light minifier: it does not rename variables. For the smallest possible file use a build tool, but this is quick for small scripts and snippets.
When to use it
Remove comments and spaces from JavaScript.
Tips
Use a full build tool for large projects.
Privacy
Everything runs in your browser, so your data is not uploaded or stored.
What it does not do
This simple minifier removes comments and extra whitespace. It does not rename variables or remove dead code, so the saving is smaller than with a full build tool. Always test the minified script.
最良の結果を得るためのヒント
結果を信頼する前にすべての項目を確認してください。数字がひとつ違うだけで答え全体が変わります。給与明細、請求書、証明書、契約書にある正確な数字を使い、計算した日付を控えておきましょう。税率、しきい値、ルールは随時変わるため、税金、手数料、法的な事柄については結果を概算とみなし、このページに記載された公式情報源で確認してください。シナリオは何度でも試せます。何も保存・送信されず、ページを再読み込みすると入力欄はクリアされます。
ポイント
- カテゴリ: ドキュメント
- ブラウザ内で動作し、登録もアップロードも不要です。
- 入力した情報は端末内にとどまります。
- 多くの言語で利用できます。
- 内容の最終確認日:
よくある質問
Does it rename my variables?
No. It only removes comments and extra whitespace, so the code stays readable to debug.
Is my code uploaded?
No. Everything runs in your browser.
Does it rename variables?
No. It only removes comments and spaces.
Is it safe?
It keeps the logic unchanged.
Is the minified file safe to use?
Test it, since removing line breaks can matter in rare cases without semicolons.