ToolNest

HTML Entity Encoder / Decoder

Escape and unescape HTMLRuns locally · nothing uploaded

Input
Output
Also works as:html escapehtml unescapehtml entitiesencode html

How to use

  1. 1Choose escape or unescape.
  2. 2Paste text or HTML.
  3. 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.

&#60; vs &lt;?

They render the same. &lt; is a named entity, &#60; decimal and &#x3C; hex.