HTML Entity Encoder Decoder

Encode special characters to HTML entities to safely display them in HTML, or decode entities back to readable characters.

0 chars0 bytes

What are HTML Entities?

HTML entities are special sequences that represent characters that have special meaning in HTML or cannot be typed directly. They start with & and end with ;

Common HTML Entities

  • &lt; represents < (less than)
  • &gt; represents > (greater than)
  • &amp; represents & (ampersand)
  • &quot; represents " (double quote)
  • &apos; represents ' (single quote)
  • &nbsp; represents non-breaking space

When to Use

  • Displaying code snippets in HTML
  • Preventing XSS attacks
  • Showing special characters in web pages

Keyboard Shortcuts

  • Ctrl + L - Focus input field
  • Ctrl + Enter - Repeat last action
  • Alt + S - Swap input/output
  • Ctrl + Shift + C - Copy result
  • Ctrl + S - Download result
  • Escape - Clear all inputs
  • Tab - Insert spaces
  • Double-click output area - Select all text