HTML Entity Encoder / Decoder

Encode special characters to HTML entities or decode HTML entities back to characters.

Advertisement

Common HTML Entities

Advertisement

About HTML Entity Encoding

HTML entities are special codes used to represent characters that have special meaning in HTML, or characters that cannot be easily typed on a keyboard. For example, the less-than sign (<) must be written as &lt; in HTML to avoid being interpreted as a tag. This tool converts between plain text and HTML entities in real-time, entirely in your browser.

When to Use HTML Entities

  • Displaying HTML code as text on a webpage
  • Inserting special characters like copyright symbols, arrows, or mathematical operators
  • Preventing XSS (cross-site scripting) by encoding user input
  • Ensuring proper display of characters across different browsers and encodings