HTML Entity Encoder
Convert special characters to HTML entities for web-safe display.
How to Use HTML Entity Encoder
- Paste the text or HTML you want to make safe into the input box.
- Encode replaces reserved characters (& < > " ') with HTML entities so they render as text instead of markup; decode reverses it.
- Choose named (&), decimal (&), or hex (&) entity output.
- Copy the result. Nothing is uploaded β it is processed in your browser.
Encoding reserved characters prevents them from being interpreted as tags or breaking attributes, which also helps avoid injection when displaying user text.
Examples
Encode HTML β input:
<b>"Tom & Jerry"</b>
Output:
<b>"Tom & Jerry"</b>
Ampersand β input:
Fish & Chips
Output:
Fish & Chips
Decode (reverse) β input:
<p>Hi</p>
Output:
<p>Hi</p>
Decoding turns entities back into their original characters.
Features
Privacy Focused
All processing happens in your browser. No data is sent to servers.
Free Forever
No registration, no limits, completely free to use.