Free tools for developers

HTML Entity Encoder / Decoder

Encode special characters to HTML entities or decode HTML entities back to plain text. Everything runs in your browser.


What are HTML Entities?

HTML entities are special codes used to represent characters that have special meaning in HTML or that cannot be easily typed. For example the less-than sign < has special meaning in HTML because it starts a tag. To display it as text you write &lt; instead. The browser then shows it as < on the page.

Common HTML entities include &amp; for ampersand, &lt; for less-than, &gt; for greater-than, &quot; for double quote, and &nbsp; for a non-breaking space. There are hundreds of named entities for mathematical symbols, currency signs, arrows, and more.

When to Use HTML Entities

Use HTML entities when you need to display characters that would otherwise be interpreted as HTML code. This is important for security - user input should always be HTML-encoded before being displayed in a page to prevent cross-site scripting attacks.


Frequently Asked Questions

What is the difference between named and numeric entities?

Named entities use a name like &amp; or &copy;. Numeric entities use a number like &#38; or &#169;. Both represent the same characters. Named entities are easier to read. Numeric entities work for any Unicode character even if it does not have a named entity.

Is my text safe?

Yes. Everything runs in your browser. Your text is never sent to any server.