JavaScript ตัวย่อ
Minify JavaScript by removing comments and whitespace ในเบราว์เซอร์ของคุณ. Free, online, ไม่อัปโหลด, fully เป็นส่วนตัวทั้งหมด.
วิธีใช้งาน
ป้อนข้อมูลของคุณด้านบน ผลลัพธ์จะอัปเดตโดยอัตโนมัติ ใช้ปุ่มคัดลอกเพื่อคัดลอกผลลัพธ์
คำถามที่พบบ่อย
แสดงคำถามที่พบบ่อยเป็นภาษาอังกฤษชั่วคราวระหว่างกำลังจัดทำคำแปล
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.