Skip to content
Handy Browser Tools

HTML Encode / Decode

Paste text to escape HTML special characters (< > & " ') into entities, or paste HTML-encoded text to decode named and numeric entities back to plain text.

Private by default: processing stays on your device
YOUR HTML

Raw HTML or encoded entities

Entities, handled.

Encode special characters or decode entities back to HTML.

Good to know

Encoding escapes <, >, &, quotes and more. Decoding reverses named and numeric entities. Everything runs in your browser.

Example: encode

Input

<a href="/">Tom & Jerry</a>

Output

&lt;a href=&quot;/&quot;&gt;Tom &amp; Jerry&lt;/a&gt;
Share this page X LinkedIn Reddit

These buttons share the page link, not your input.

Frequently asked questions

When do I need to encode HTML?

Whenever untrusted or literal text is placed inside HTML, encoding < > & prevents it from being interpreted as markup and is the first line of defense against XSS.

Which entities can be decoded?

All numeric entities (&#65; and &#x41;) plus common named entities like &amp;, &lt;, &nbsp;, &copy; and &mdash;.

Is my content uploaded?

No, encoding and decoding run entirely in your browser.