مصغّر HTML

اضغط HTML بإزالة التعليقات والمسافات الزائدة.

يعمل في متصفحك. ملفاتك لا تغادر جهازك أبدًا. شاهد كيف تتحقق

…

كيف تفعل ذلك

  1. 1
    املأ الحقول

    اكتب أرقامك أو اختر الخيارات التي تحتاجها.

  2. 2
    شاهد النتيجة

    تتحدّث الإجابة فورًا عند تغيير أي قيمة.

  3. 3
    استخدمها

    انسخ النتيجة أو دوّنها. لا يُرسل شيء إلى أي مكان.

عن هذه الأداة

Paste your HTML to remove comments and collapse extra spaces and line breaks. Content inside pre, textarea, script and style blocks is kept as it is. Tick the aggressive option to also remove the spaces between tags, which makes the file smaller but can close the gap between inline words.

When to use it

Compress HTML by removing comments and extra spaces.

Tips

Check pre blocks, which keep spacing.

Privacy

Everything runs in your browser, so your data is not uploaded or stored.

Notes

Minifying removes comments and extra spaces, but not required spaces between inline elements. Keep a readable source and publish the minified copy.

نصائح لأفضل النتائج

راجع كل حقل قبل الاعتماد على النتيجة، فرقم واحد خاطئ يغيّر الجواب كله. استخدم الأرقام الدقيقة من قسيمة راتبك أو فاتورتك أو شهادتك أو عقدك، ودوّن تاريخ الحساب. تتغير الأسعار والحدود والقواعد من وقت لآخر، فعامل النتيجة في الضرائب والرسوم والأمور القانونية على أنها تقدير وتأكد من المصدر الرسمي المذكور في هذه الصفحة. يمكنك تجربة عدد غير محدود من السيناريوهات؛ لا يُحفظ شيء ولا يُرسل، وتحديث الصفحة يفرّغ الحقول.

حقائق سريعة

ضمّن هذه الآلة الحاسبة في موقعك

انسخ هذا الرمز لعرض الآلة الحاسبة في صفحتك. يتضمن رابطًا يعود إلى shobfree.com.

الأسئلة الشائعة

Is it safe to use?

Yes with the default settings. Check the page after using the aggressive option, because spaces between inline tags can matter.

Are conditional comments kept?

Yes. Conditional comments for old versions of Internet Explorer are left alone.

Are pre blocks kept?

Yes.

How much does it save?

Often 10 to 30 percent.

Does it minify inline CSS and JS?

This tool handles the HTML only. Use the CSS and JS minifiers for those.

مجاني تمامًابلا تكلفة وبلا تسجيل
ملفات خاصةكل شيء يعمل في متصفحك
سهل بلغتكمتوفر بلغات كثيرة