Skip to content
Toolden

TOOLDENDEVELOPERON-DEVICE

HTML Entity Encoder / Decoder

Encode and decode HTML entities like & < > and named characters.

e.g. <a href="x">Tom & Jerry</a>
Output appears here as you type.

HOW TO USE

  1. 1Toggle between Encode and Decode mode.
  2. 2Paste your text or HTML in the input box.
  3. 3Watch the result update live as you type.
  4. 4Copy the output to reuse it anywhere.

EXAMPLE

INPUT

<div class="box">

OUTPUT

&lt;div class=&quot;box&quot;&gt;

FAQ

Why should I escape HTML entities?
Escaping turns <, >, &, " and ' into safe sequences so text renders literally instead of being parsed as markup, essential when injecting user content into HTML.
Are named and numeric entities both supported?
Yes. The tool handles standard named entities as well as numeric ones.
What are HTML entities?
Special character codes like &amp; for & or &lt; for < that ensure special characters display correctly in HTML.
Does it decode as well?
Yes. Switch between Encode and Decode modes to convert between special characters and their entity codes.

RELATED TOOLS