DevToolbox

โ†‘ โ†“ to select ยท Enter to open ยท Esc to close

HTML Entity Encoder & Decoder

Convert common text characters to HTML entities or decode entity text back to characters.

Common Entities

How to use the HTML Entity Encoder & Decoder

Convert common text characters to HTML entities or decode entity text back to characters.

Steps

  1. Choose Encode or Decode.
  2. Enter the text or entity string.
  3. Copy the converted result or select a common entity from the reference list.

Example: Encode markup punctuation

<tag> โ†’ &lt;tag&gt;

Limitations

Entity encoding is context-specific and does not sanitize all untrusted HTML. Use a context-aware sanitizer before inserting untrusted content into a page.