30 chars · 1 line
60 chars · 1 line
30 chars · 1 line
60 chars · 1 line
HTML entity guide
Escape HTML-sensitive characters before placing literal text into HTML source, or decode common named and numeric character references back into readable text. Processing stays in your browser, so snippets and template content are not uploaded. This tool is free to use. No account or payment is required.
Last updated
Encoding replaces characters that have special meaning in HTML markup. For example, < becomes < and & becomes &, which makes the literal characters visible instead of treating them as markup syntax.
This utility is for text transformation and debugging. Context-aware application escaping still belongs in your framework or templating layer, especially for attributes, URLs, JavaScript, and CSS contexts.
Decode restores common markup and typographic named references such as amp, lt, gt, quot, nbsp, copy, trade, and hellip. It also resolves valid decimal references such as © and hexadecimal references such as 😀.
Unknown named references and invalid Unicode code points are left unchanged so the output does not silently invent a replacement character.
Angle brackets, quotes, and ampersands are escaped while ordinary letters and whitespace remain readable.
<p title="R&D">Tom & Jerry</p><p title="R&D">Tom & Jerry</p>Common questions
It escapes ampersand, less-than, greater-than, double quote, apostrophe, and non-breaking space. This covers the common HTML-sensitive characters without rewriting ordinary Unicode text.
Yes. Decimal references such as © and hexadecimal references such as 😀 are decoded when they represent a valid Unicode code point.
No. Use the escaping rules provided by your framework for the exact HTML, attribute, URL, JavaScript, or CSS context. This tool helps inspect and transform text; it is not a sanitizer.
No. HTML entity encoding and decoding happen locally in your browser.
Looking for broader references? Browse all developer guides.