AskDB

HTML Entity Encoder

Encode special characters to HTML entities or decode them back.

HTML entity encoder / decoder

<div class="example">Hello & "World"</div>

What are HTML entities?

HTML entities are special codes that represent characters with special meaning in HTML, like < (&lt;), > (&gt;), and & (&amp;). They prevent browsers from interpreting these characters as HTML code.

Common entities

  • &lt; = <
  • &gt; = >
  • &amp; = &
  • &quot; = "
  • &apos; = '