DevTools

HTML Entity Encode / Decode

Escape characters for HTML (e.g., < to &lt;) or unescape HTML entities back to plain text.

What are HTML Entities?

HTML entities are used to display reserved characters in HTML or to represent characters that are not present on a standard keyboard. For example, < is encoded as &lt; to prevent the browser from interpreting it as the start of a tag.

Common Entities

  • &amp; → & (Ampersand)
  • &lt; → < (Less than)
  • &gt; → > (Greater than)
  • &quot; → " (Double quote)
  • &apos; → ' (Single quote)