HTML Entity Encoder/Decoder

Convert special characters to HTML entities or decode HTML entities back to text. Supports named entities (&lt;), numeric entities (<), and hexadecimal entities (<). 100% free and private - all processing happens in your browser.

Mode

0 characters
0 characters
Encoded entities will appear here...

Common HTML Entities Reference

Special Characters

<&lt;or&#60;
>&gt;or&#62;
&&amp;or&#38;
"&quot;or&#34;
'&apos;or&#39;

Common Symbols

©&copy;or&#169;
®&reg;or&#174;
&trade;or&#8482;
&euro;or&#8364;
£&pound;or&#163;

Multiple Encoding Formats

Choose between named entities, numeric entities, or hexadecimal entities.

Real-Time Processing

Instant encoding and decoding as you type or paste text.

100% Private

Your text never leaves your computer.

Frequently Asked Questions

What are HTML entities?

HTML entities are special codes used to display reserved characters in HTML. For example, &lt; represents < and &gt; represents >. They prevent browsers from interpreting characters as HTML code.

When should I use HTML entities?

Use HTML entities when displaying special characters like <, >, &, quotes, or copyright symbols in HTML. They're essential when showing code examples or user-generated content to prevent XSS attacks.

What's the difference between named and numeric entities?

Named entities use memorable names like &copy; for ©. Numeric entities use character codes like &#169; (decimal) or &#xA9; (hex). Both produce the same result, but named entities are more readable.

Should I encode all characters or just special ones?

For most cases, encoding only special HTML characters (<, >, &, quotes) is sufficient and keeps your HTML readable. Use "Encode all" when you need maximum compatibility or want to obscure text.

Is this tool free to use?

Yes! This HTML entity encoder/decoder is 100% free with no sign-up required and no limits on text length.

Is my data private?

Absolutely. All encoding and decoding happens in your browser. Your text never gets sent to any server, ensuring complete privacy.