Developer

HTML entities

Escape and unescape HTML entities in your text.

Output

How it works

1

Paste your text

Enter text with characters like <, > and &, or text containing entities.

2

Escape or unescape

Convert reserved characters to entities, or turn entities back into characters.

3

Copy

Copy the safe output straight into your markup.

Frequent questions

Why escape HTML entities?
Characters like <, > and & have special meaning in HTML. Escaping them to &lt;, &gt; and &amp; lets you show them as text instead of having the browser treat them as markup.
Does it handle named and numeric entities?
Yes. Unescaping recognises both named entities like &amp; and numeric ones like &#38;.