ย่อ JavaScript
ย่อโค้ด JavaScript เพื่อลดขนาดไฟล์
JavaScript Minifier Online
Minify JavaScript code to reduce file size — removes whitespace, comments, and shortens variable names. Paste your JS and get the minified version instantly, all in your browser.
FAQ
What does JavaScript minification do?
It removes whitespace, comments, and newlines, and may rename local variables to single characters. The resulting code is functionally identical but much smaller.
Can minified JavaScript be reversed?
Not perfectly. You can run a JS beautifier to re-add whitespace, but original variable names are lost. Use source maps in production to link minified code back to the original for debugging.
How much does JS minification save?
Typically 30–70% file size reduction. A 100 KB script often minifies to 30–60 KB, and further compresses with gzip to 10–20 KB.
สำรวจต่อ
เครื่องมือนักพัฒนา อื่นๆ ที่คุณอาจชอบ...
จัดรูปแบบ JSON
จัดรูปแบบ ตรวจสอบ และย่อข้อมูล JSON พร้อม syntax highlighting
เข้ารหัส/ถอดรหัส Base64
เข้ารหัสข้อความเป็น Base64 และถอดรหัสสตริง Base64
เข้ารหัส/ถอดรหัส URL
เข้ารหัสและถอดรหัสส่วนประกอบ URL และ query strings
สร้าง UUID
สร้างตัวระบุ UUID v4 แบบสุ่ม
สร้าง Hash
สร้างแฮช MD5, SHA-1, SHA-256 และ SHA-512 จากข้อความ
ทดสอบ Regex
ทดสอบและดีบัก regular expressions พร้อมไฮไลท์การจับคู่
ถอดรหัส JWT
ถอดรหัสและตรวจสอบ header และ payload ของ JWT token
จัดรูปแบบ HTML
จัดรูปแบบโค้ด HTML พร้อมการเยื้องที่เหมาะสม