</>
HTML ENTITIES

HTML Entities

Convert special HTML characters and entities for displaying code as text.

Local processing
Workspace
0 characters
Read only
Ready. Enter your content, then choose an action.
◇ Content is processed in this browser onlyInput is not saved automatically
HOW TO USE

How to use

Escape replaces &, <, >, double quotes and single quotes with HTML entities. Unescape restores named or numeric entities. The result is always displayed as plain text.

Example

<p>Hello & world</p> → &lt;p&gt;Hello &amp; world&lt;/p&gt;

GOOD TO KNOW

Keep in mind

HTML text escaping is not a universal sanitizer for every context. Entities are decoded one layer at a time; input tags and scripts are never inserted into the live page.

Common questions

Why does &amp;lt; become &lt; instead of <? It was escaped twice. Decoding one layer at a time avoids changing entities that are meant to remain visible.