HTML Entity Converter

Encode text into HTML entities (named, numeric decimal, or numeric hex) or decode entities back to text. Useful for safely embedding user-generated content in HTML or for reading minified HTML where entities have been stripped.

The five characters you must always encode

  • &&
  • <&lt;
  • >&gt;
  • "&quot; (inside attribute values)
  • '&#39; (inside attribute values)

Anything else can theoretically render in modern browsers — but encoding non-ASCII characters as numeric entities is sometimes useful for emails or for systems with uncertain character encoding.