مصغّر JavaScript
صغّر JavaScript بإزالة التعليقات والمسافات البيضاء في متصفحك. مجاني، عبر الإنترنت، بدون رفع، خاص تماماً.
طريقة الاستخدام
أدخل بياناتك أعلاه. يتم تحديث النتيجة تلقائيًا. استخدم زر النسخ لنسخ النتيجة.
الأسئلة الشائعة
تُعرض الأسئلة الشائعة باللغة الإنجليزية ريثما يكتمل تعريبها.
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.