HTML entity converter
Encode or decode HTML entities. Convert special characters to safe HTML entities and back for web publishing.
What are HTML entities?
HTML entities are codes used to represent characters that have special meaning in HTML or that cannot be easily typed. For example, < represents <, & represents & and © represents the copyright symbol. Entities prevent browsers from misinterpreting characters as markup.
What this tool does
This tool encodes special characters into HTML entities or decodes HTML entities back into their corresponding characters. It helps safely embed text in HTML documents.
Common use cases
- Web publishing: Safely display user-generated content containing special characters.
- Debugging: Understand why text displays incorrectly on a page.
- Email templates: Encode characters for HTML emails.
- Data processing: Normalize text for HTML contexts.
How to interpret the result
Encoding replaces special characters with entities such as < and &. Decoding reverses the process. The encoded output is safe to insert into HTML text content, but not necessarily into attributes or scripts without additional escaping.
Important limitations
This tool converts entities for HTML text contexts; it does not provide complete protection against XSS in all contexts. Use context-appropriate escaping for HTML attributes, JavaScript and SQL. It does not validate HTML or render the result.
Popular tools
Decode any Base64 string back to readable text. Use this tool to inspect encoded payloads, data URLs, tokens and configuration values.
Ping a website, server or port to check availability.
Extract email addresses from text quickly and see the total count of unique addresses found.
Get approximate geolocation and network details for an IP address.