Text Tools
Developer Tools
Paste any text and HTML special characters are encoded to entities instantly. Switch to Decode mode to convert HTML entities back to plain text. Optionally encode all non-ASCII characters as numeric entities for maximum compatibility.
HTML entities are text representations of characters that have special meaning in HTML markup. The five critical entities are: < for <, > for >, & for &, " for ", and ' for '. Encoding these characters prevents browsers from interpreting them as HTML tags or attributes.
Inserting user-generated content into HTML without encoding is one of the most common causes of Cross-Site Scripting (XSS) vulnerabilities. HTML encoding ensures that characters like < and > are rendered as visible text rather than parsed as HTML tags, preventing injected scripts from executing.