SmartQueryTools

HTML Entity Encode & Decode

Escape special HTML characters to entities (&, <, >, ") or decode HTML entities back to plain text. Runs entirely in your browser.

Frequently Asked Questions

Which characters get encoded to HTML entities?

The five characters that have special meaning in HTML: & → &amp;, < → &lt;, > → &gt;, " → &quot;, and ' → &#x27;. Encoding these prevents them from being interpreted as HTML markup.

When do I need to encode HTML entities?

Whenever you insert user-supplied text into HTML — for example in a template or email. Without encoding, a user could inject HTML tags or JavaScript, leading to XSS vulnerabilities.

Does decoding handle numeric entities like &#60; or &#x3C;?

This tool decodes the five named entities listed above. For a full set of HTML entities including numeric forms, use a dedicated HTML parser library.

Is my data private?

Yes — completely. Everything runs locally in your browser. Nothing is sent to any server, and nothing is retained after you close the tab.

Related Tools