RU

HTML Entities Encode & Decode Online

Free tool for encoding and decoding HTML entities

html-entities
HTML EntitiesUTF-8
Was this tool helpful?
<

Encode

Encode special characters to HTML entities

<>

Decode

Decode HTML entities back to characters

&amp;

Named Entities

Support for &amp;, &lt;, &gt;, &quot; and more

#

Numeric Entities

Support for decimal and hexadecimal codes

Related Tools

Frequently Asked Questions

HTML entities are special character sequences that represent reserved or hard-to-type characters. For example, &lt; displays the < sign and &amp; displays &. The browser replaces each entity with the corresponding character when rendering the page.
HTML entities are needed when inserting characters into HTML that could be interpreted as markup: angle brackets, ampersands, and quotes. They are also useful for entering characters not available on the keyboard, such as currency signs or mathematical symbols.
Encoding user input into HTML entities prevents malicious scripts from executing. If an attacker inserts a <script> tag, it gets encoded as &lt;script&gt; and is displayed as text rather than executed.
The five essential entities are &lt; (<), &gt; (>), &amp; (&), &quot; ("), and &#39; ('). Other commonly used ones include &nbsp; (non-breaking space), &mdash; (em dash), &copy; (copyright), and &euro; (euro sign).