HomeToolsEncodingHTML Entities Encoder / Decoder

HTML Entities Encoder / Decoder

Encode text to HTML entities or decode HTML entities back to plain text.

Encoding
Input (Raw Text)
Output (HTML Entities)

What are HTML Entities?

HTML entities are strings that start with an ampersand (&) and end with a semicolon (;). They are used to display reserved characters (like < and >), which would otherwise be interpreted as HTML tags, or to display invisible characters and symbols not easily typed on a keyboard.

Common examples include:

  • &lt; for < (less than)
  • &gt; for > (greater than)
  • &amp; for & (ampersand)
  • &quot; for " (double quote)
  • &apos; or &#39; for ' (single quote)

Features of this tool

  • Encode Special Characters: Convert reserved HTML characters (&, <, >, ", ') to their corresponding named entities.
  • Encode All Non-ASCII: Convert non-ASCII characters (accented characters, symbols, emojis) to decimal or hexadecimal numeric entities.
  • Encode Everything: Convert every single character of the input to HTML entities.
  • Decode Named and Numeric Entities: Convert all HTML entities (named, decimal &#...;, or hex &#x...;) back to their original characters.
  • Live Conversion: Results update instantly as you type or change options.

Contribute

Find a bug or want to suggest an improvement to this tool?