HTML Entity Encoder / Decoder
Encode special characters to HTML entities or decode entities back to plain text.
How to Encode and Decode HTML Entities
Switch between Encode and Decode mode using the tabs above the input area. In Encode mode, paste plain text containing special characters like <, >, &, and " — the tool converts them to their HTML entity equivalents (<, >, &, "). In Decode mode, paste HTML-entity-encoded text and get the original characters back. This is essential when displaying user-generated content safely in web pages or when working with XML and HTML source that contains escaped characters you need to read.
Why HTML Entities Matter
HTML entities prevent the browser from interpreting special characters as markup. Without proper encoding, a < in user content could open an HTML tag, leading to broken layouts or cross-site scripting (XSS) vulnerabilities. Encoding also handles characters outside the ASCII range, such as accented letters, currency symbols, and emoji. The tool supports both named entities (&) and numeric entities (&, &). All processing happens in your browser — no data is sent to any server.