HTML Entity Encoder & Decoder

Escape HTML-sensitive characters for safe text display or decode named and numeric HTML entities.

About this tool

How it works

  1. Use encoded text in HTML content, not as an attribute sanitizer; inspect decoded markup as plain text.
  2. HTML text escaping is not a complete sanitizer for attributes, scripts, or URLs; do not use it to trust untrusted markup.

Enter text containing <, >, &, or quotes to encode; to decode, enter entities such as &amp; or &#39;.

Example: <p>A & B</p>

Processed locally in your browser; nothing is uploaded.