رمّز النص إلى كيانات HTML أو فُكّ ترميز الكيانات إلى نص، آمن مع UTF-8 ومن جانب العميل.
كيفية استخدام مرمِّز HTML
الصق نصك أو HTML الخاص بك.
اختر ترميز (هروب رموز HTML الخاصة)، أو ترميز الكل (هروب رموز غير ASCII أيضاً)، أو فكّ الترميز.
انسخ النتيجة.
An HTML entity encoder and decoder for escaping special characters so they display as text instead of being interpreted as markup. It converts characters like < and & into entities such as < and &, and decodes them back again.
Encoding and decoding are UTF-8 safe and run entirely in your browser, so nothing you paste is uploaded.
Encoding always escapes the five characters that have special meaning in HTML: & < > " and '. That is what stops a stray < from being read as the start of a tag, or text from accidentally breaking out of an attribute.
An Encode all option additionally turns every non-ASCII character into a numeric entity, which is useful for legacy systems, some email pipelines, or anywhere you need to be sure the output is pure ASCII.
Decoding understands all three entity forms: named entities like & and ©, decimal entities like é, and hexadecimal entities like €. Sequences it does not recognize are left untouched rather than mangled.
Escaping the HTML specials is the core defense against HTML injection and cross-site scripting (XSS): any untrusted text should be encoded before it is placed into a page, so it renders as harmless characters instead of active markup.
الأسئلة الشائعة
يهرّب الترميز الرموز الخمسة فقط التي يجب هروبها في HTML (& < > " '). أما ترميز الكل فيحوّل إضافة إلى ذلك كل رمز غير ASCII إلى كيان رقمي، وهو مفيد للأنظمة القديمة أو البريد الإلكتروني.
الكيانات المسماة مثل & و©، والكيانات العشرية مثل é، والكيانات الست عشرية مثل €. تُترك التسلسلات غير المعروفة دون تغيير.
ترميز رموز HTML الخاصة هو الدفاع الأساسي ضد حقن الترميز. رمّز دائماً النص غير الموثوق قبل وضعه في HTML.
ضمّن هذه الأداة
أضف هذه الأداة إلى موقعك الخاص. انسخ المقتطف أدناه، ويبقى محدّثاً تلقائياً.
<iframe src="https://monu.tools/embed/ar/html-encoder" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>أدوات ذات صلة
رمّز النص إلى Base64 أو فُكّ ترميز Base64 إلى نص. آمن مع UTF-8 واكتشاف تلقائي للاتجاه.
ترميز وفك ترميز عناوين URL ومكوّناتها بصيغة النسبة المئوية (percent-encoding)، بأمان مع UTF-8.
فُكّ ترميز رمز JSON Web Token لفحص رأسه وحمولته، مع أوقات انتهاء وإصدار بصيغة مقروءة. يعمل بالكامل داخل متصفحك، ولا تُرفع الرموز أبداً.
أنشئ تجزئات SHA-1 وSHA-256 وSHA-384 وSHA-512 لأي نص، مباشرة داخل متصفحك.