DevToolBox

HTML Entity Encoder

Convert special characters to HTML entities and vice versa

Encoding Options

Common Entities

& → &
< → &lt;
> → &gt;
" → &quot;
© → &copy;
€ → &euro;

Input Text

Characters: 69

Output Text

About HTML Entities

HTML entities are used to display reserved characters and special symbols in HTML documents.

Named Entities

Human-readable names like &copy; for ©. Most common and easy to remember.

Numeric Entities

Use character codes: decimal (&#169;) or hexadecimal (&#xa9;). Works for any Unicode character.

When to Use

Display HTML code in web pages
Prevent XSS vulnerabilities
Show special characters (©, ™, €)
Ensure compatibility across encodings
Display mathematical symbols
Represent non-breaking spaces