Encode
Plain text → HTML entities
Encoded output will appear here.
Encode special characters as HTML entities or decode entities back into readable text.
Convert HTML special characters to safe entities or decode entities back into readable content.
Enter HTML or entity-encoded text to get started.
Plain text → HTML entities
Encoded output will appear here.
HTML entities → plain text
Decoded output will appear here.
| Character | Name | Entity | Description |
|---|---|---|---|
| < | Less than | < | Less-than sign |
| > | Greater than | > | Greater-than sign |
| & | Ampersand | & | Ampersand |
| " | Double quote | " | Quotation mark |
| ' | Single quote | ' | Apostrophe |
| Character | Name | Entity | Description |
|---|---|---|---|
| / | Forward slash | / | Solidus |
| © | Copyright | © | Copyright symbol |
| ® | Registered | ® | Registered mark |
| ™ | Trademark | ™ | Trademark symbol |
| ␠ | Non-breaking space | | Non-breaking space |
Use every feature without limits.
Encode and decode immediately.
Everything stays in your browser.
Copy results for immediate use.
Compatible with modern devices.
Reviewed by LipiCode Editorial Team
HTML entity encoding represents characters such as angle brackets and ampersands so they can be displayed as text rather than interpreted as markup. Context-aware output escaping is a key defence, but entity conversion alone is not a complete HTML sanitizer.
To show a literal less-than sign in page text, encode it as &lt;. A trusted template engine should normally perform the correct escaping automatically for the output context.
HTML text, attributes, URLs, CSS, and JavaScript require different safety rules. Do not decode untrusted input and inject it with innerHTML. Use a maintained sanitizer when limited markup must be accepted.
No. Encoding displays text safely in a specific context; sanitizing selectively permits reviewed markup.
It begins entity syntax, so handling it consistently prevents accidental or repeated entity interpretation.