Skip to main content

HTML Entity Encoder / Decoder

Developer

Escape HTML characters like <, >, &, and quotes or decode entities back.

Runs locally in browser

Loading tool...

About HTML Entity Encoder / Decoder

Convert reserved HTML characters into safe HTML entities (`&lt;`, `&gt;`, `&amp;`, `&quot;`, `&#39;`) or decode common named and numeric entities back to plain text.

Who uses this

Frontend engineers, technical writers embedding code snippets, and CMS authors.

Important limitations

Decoded output is rendered as plain text (never executed as HTML) for your safety.

How to use HTML Entity Encoder / Decoder

  1. 1Pick Encode or Decode mode.
  2. 2Paste raw HTML markup or entity-escaped text.
  3. 3Copy the escaped or decoded text safely.

Practical Examples

Escape Code Snippet

Input:
<button class="btn">Save & Continue</button>
Output:
&lt;button class=&quot;btn&quot;&gt;Save &amp; Continue&lt;/button&gt;