HTML Entity Encoder/Decoder
Encode and decode HTML entities. Convert special characters to HTML entities and back.
Common HTML Entities Reference
View Common Entity Reference Table
| Character | HTML Entity | Description |
|---|---|---|
| & | & | Ampersand |
| < | < | Less than |
| > | > | Greater than |
| " | " | Double quote |
| ' | ' | Single quote |
| Space | | Non-breaking space |
| © | © | Copyright |
| ® | ® | Registered trademark |
| ™ | ™ | Trademark |
| € | € | Euro sign |
Key Features
⚡ Fast Processing
All operations run locally in your browser for instant results.
🔒 Privacy Protected
Your data never leaves your browser. No server storage.
How to Use HTML Entity Encoder/Decoder
Paste Your Input
Enter or paste your HTML or text into the input area.
Choose an Action
Select "Encode" or "Decode" as needed.
Get Result
View the result in the output area and copy or download as needed.
Frequently Asked Questions
Basics
What are HTML entities?
HTML entities are codes that start with an ampersand (&) and end with a semicolon (;), used to display reserved or hard-to-type characters in HTML documents. For example, the entity for < is <, and the entity for > is >. Browsers render these entities as their corresponding characters without interpreting them as HTML tags.
Why encode HTML entities?
There are two main reasons: First, to prevent XSS (Cross-Site Scripting) attacks - if user input contains <script> tags, encoding converts them to plain text that won't execute. Second, to ensure special characters display correctly across different encodings and browsers, preventing layout issues.
Which characters are encoded?
This tool encodes the following characters: & (&), < (<), > (>), " ("), ' ('), © (©), ® (®), ™ (™), € (€), and all non-ASCII characters such as Chinese, Japanese, and special symbols.
Features
Which characters are encoded?
The tool encodes &, <, >, ", and ' to their corresponding HTML entities (&, <, >, ", ').
Related Tools
URL Encoder/Decoder
Encode and decode URLs with percent-encoding for safe transmission.
Base64 Encoder/Decoder
Convert data to and from Base64 format for binary-to-text encoding.
HTML Formatter
Beautify and format HTML code for better readability.