HTML Escape/Unescape

Escape or unescape HTML special characters like <, >, &, and quotes

How to Use

  1. Enter HTML code in the input area.
  2. Click 'Escape' to convert special characters to HTML entities.
  3. Click 'Unescape' to restore entities back to original characters.

FAQ

Why do I need to escape HTML?

Escaping HTML prevents browsers from interpreting characters like < and > as HTML tags, which is essential for preventing XSS attacks and displaying code correctly.

Which characters are escaped?

The main characters escaped are: & to &amp;amp;, < to &amp;lt;, > to &amp;gt;, double quote to &amp;quot;, and single quote to &amp;#39;.

Related Tools