HTML Entities
private · runs in your browser
~ $ devkit:html-entities

HTML Entities

Escape HTML-sensitive characters to prevent broken markup or injection, or unescape entity-encoded text back to plain text.

Input
Output

How to use HTML Entities

  1. Paste text containing HTML-sensitive characters or encoded entities.
  2. Choose Encode to escape characters, or Decode to convert entities back to text. Enable the non-ASCII option to encode Unicode characters as numeric entities.

Example

Text: <p>Café & tea</p>
Encoded: &lt;p&gt;Café &amp; tea&lt;/p&gt;
Numeric emoji: &#x1F600; → 😀

Details and limitations

Decoded output remains plain text in this tool. HTML escaping is context-dependent: do not treat this converter as a sanitizer for untrusted HTML, JavaScript or CSS. Named entities should include their terminating semicolon.