Encoder & Decoder Tools

HTML Entity Encoder & Decoder

Encode special characters as HTML entities or decode entities to text.

Your input is processed in this browser and is not sent to our server.

How to Use HTML Entities

  1. Choose encode or decode.
  2. Paste text or HTML entities.
  3. Select Convert and copy the result.

Example

Input

<p>Tom & "Sam"</p>

Result

&lt;p&gt;Tom &amp; &quot;Sam&quot;&lt;/p&gt;

Common Errors & Troubleshooting

  • To decode entities, choose Decode HTML entities.
  • Encoding text does not sanitize an entire web application; use context-appropriate output escaping.

Frequently Asked Questions

Which characters are encoded?

The encoder escapes ampersand, angle brackets, double quotes, and apostrophes.

Does HTML entity encoding make content safe everywhere?

No. Escaping requirements depend on the output context; this tool only converts common text characters to entities.