HTML Entity Encoder / Decoder
Escape and unescape HTMLRuns locally · nothing uploaded
Input
Output
Also works as:html escapehtml unescapehtml entitiesencode html
How to use
- 1Choose escape or unescape.
- 2Paste text or HTML.
- 3Copy the result.
FAQ
When do I need to escape HTML?
When showing user input or code on a page; escaping < > & stops it being parsed as markup and is basic XSS protection.
< vs <?
They render the same. < is a named entity, < decimal and < hex.