← Free online tools

HTML and text tools

HTML Entity Encoder / Decoder

Encode text into HTML entities, decode entities back to readable characters, and copy common named, numeric, and hexadecimal references.

Local text conversion

The conversion is performed in your browser. Pasted text is not uploaded.

Result will appear here...

HTML Entity Reference

CharNamedNumericDescription
&Ampersand
<Less than
>Greater than
"Double quote
'Apostrophe
[ ]Non-breaking space
©Copyright
®Registered
™Trademark
¢Cent
£Pound
¥Yen
€Euro
°Degree
±Plus-minus
×Multiplication
÷Division
≠Not equal
≤Less or equal
≥Greater or equal
∞Infinity
∑Summation
√Square root
←Left arrow
↑Up arrow
→Right arrow
↓Down arrow
↔Left-right arrow
•Bullet
…Ellipsis
–En dash
—Em dash
‘Left single quote
’Right single quote
“Left double quote
”Right double quote
«Left guillemet
»Right guillemet
¼One quarter
½One half
¾Three quarters
¿Inverted question
¡Inverted exclamation
Paragraph
§Section
†Dagger
‡Double dagger
♠Spade
♣Club
♥Heart
♦Diamond

Encode reserved characters

Convert symbols such as <, >, &, quotes, and currency marks into HTML-safe text.

Decode pasted entities

Turn named, numeric, and hexadecimal entity references back into readable characters.

Example snippets

Try &lt;div&gt;, &copy;, or © to compare named and numeric forms.

Entity Encoding Guide

Reserved HTML characters

Characters such as less-than and ampersand can change markup meaning, so they should be encoded when displayed as text.

Named entities

Readable names such as amp, lt, gt, quot, copy, and reg are convenient for common symbols.

Numeric entities

Decimal and hexadecimal forms reference Unicode code points and are useful when no common named entity exists.

Validation

Malformed entity text remains visible, making it easier to spot input that needs manual cleanup.

Clear and reset

Clear the input field when you want to reset the preview and start a fresh conversion.

FAQ

What are HTML entities used for?

HTML entities represent reserved characters such as less-than, greater-than, ampersand, quotes, and symbols in a safe text form.

Does the encoder send my text to a server?

No. Encoding and decoding runs in your browser, so pasted text stays local to the page.

Should I use named or numeric entities?

Named entities are easier to read for common symbols. Numeric and hexadecimal entities work well for broader Unicode characters.

Can this prevent every XSS problem?

No. Entity encoding helps when rendering text in HTML, but security-sensitive apps should use framework escaping and context-aware sanitization.

Related Tools

loresync tools includes 160 free online tools.