HTML Entity Encoder & Decoder
Encode and decode HTML entities. Convert special characters to &, <, > and decode them back.
About this tool
HTML entities are special codes used to display reserved characters and symbols in HTML. For example, the less-than sign < must be written as < in HTML to avoid being interpreted as a tag.
This tool encodes/decodes: - Reserved characters: < > & " ' - Extended ASCII and Unicode characters: © ® ™ € - Numeric character references: < (decimal) and < (hex) - All named HTML5 entities (over 2,000 named entities)
Use cases: Escaping user-generated content before inserting into HTML (XSS prevention), debugging HTML source, converting characters for safe inclusion in XML/RSS feeds, and displaying code examples in HTML.
Frequently Asked Questions
Why do I need HTML entities?
What is XSS and how do entities help?
What's the difference between & and &?
Should I use entities or CSS escape for non-breaking space?
Related Tools
URL Encoder/Decoder
Encode and decode URLs and query strings. Parse URL components. Convert special characters to percent-encoding.
Base64 Encoder/Decoder
Encode and decode Base64 text and images. Supports URL-safe Base64. Preview images inline. 100% client-side.
HTML Formatter
Format, beautify, and minify HTML. Auto-indent nested elements and collapse attributes. 100% client-side.
String Escape
Escape and unescape strings for JavaScript, JSON, HTML, SQL, and regex. Handle special characters safely.