HTML Entity Encoder / Decoder
Encode special characters into HTML entities or decode HTML entities back into readable text. Free online tool for developers.
Conversion Mode
Select what you want to do.
Original Text / HTML
90 charactersEncoded Output
0 charactersBrowser-Based Conversion
Your text is converted locally in your browser. This tool does not send your input to a conversion server. Decoded output is shown as text and is not executed as HTML.
What is an HTML Entity Encoder / Decoder?
HTML entities are special character representations used in HTML documents. Characters such as less-than (<), greater-than (>) and ampersand (&) have special meaning in HTML. Encoding converts these characters into entity representations so they can be displayed as text instead of being interpreted as markup.
How to Use This Tool
- Select Encode or Decode mode.
- Paste your text or HTML entities in the input box.
- Click the conversion button.
- Copy the result or download it as a text file.
Common HTML Entities
| Character | HTML Entity | Description |
|---|---|---|
| < | < | Less than |
| > | > | Greater than |
| & | & | Ampersand |
| " | " | Double quote |
| ' | ' | Apostrophe |
| © | © | Copyright |
| ® | ® | Registered trademark |
Is HTML Entity Encoding the Same as Security Sanitization?
No. HTML entity encoding is useful for displaying text safely in HTML text contexts, but it is not a complete security solution for every context. JavaScript, CSS, URLs and HTML attributes may require different handling. Always use context-appropriate output encoding and trusted sanitization practices.
