HTML Entity Encoder / Decoder
How to Use
Type or paste text into the input area. In Encode mode, special HTML characters (&, <, >, ", ') are converted to their entity equivalents. In Decode mode, HTML entities are converted back to their original characters. Supports named entities (&, <, ©), decimal (A), and hexadecimal (A) numeric references.
HTML Entities
HTML entities are special codes used to represent characters that have meaning in HTML markup. For example, < and > define HTML tags, so to display these characters as text, you must use < and >. The ampersand (&) starts every entity, so it must be written as &. Entities are essential for preventing XSS vulnerabilities and ensuring HTML renders correctly.
Privacy
All encoding and decoding happens entirely in your browser. No data is sent to a server, stored, or logged. You can safely encode HTML containing sensitive content.