HTML Entity Encoder and Decoder
Escape text for safe use in HTML, optionally encoding every non-ASCII character, or decode named and numeric entities back to text.
- Local calculation
- The result is calculated in your browser.
- Private by default
- Nothing you enter leaves your browser.
How it works
Encoding replaces the characters that have meaning in HTML (ampersands, angle brackets, quotes and apostrophes) with entities. Optionally, every non-ASCII character becomes a numeric entity too.
Decoding understands decimal, hexadecimal and common named entities such as &,   and ….
Related tools
Text to HTML
Convert plain text to HTML with escaped special characters, paragraphs and line breaks preserved as tags.
URL Encoder and Decoder
Percent-encode text for safe use in URLs and query strings, or decode encoded URLs back to readable text.
Character Info
Inspect any character: see its Unicode code point, decimal value, HTML entity and UTF-8 bytes.