HTML Entities Encode & Decode
Turn characters like < > & into HTML entities, and back. This tool does both encode and decode on one page — just pick a mode, paste your text, and click. Everything runs on your device, nothing is sent to a server.
Everything runs in your browser. Your data is never sent to our servers.
Example
Example Input
<b>café</b>
Example Output
<b>café</b>
How to Use
- 1Choose Encode or Decode mode at the top.
- 2Type or paste your text into the Input field.
- 3Click the button (or press Ctrl+Enter) to process. The result appears in the Output field.
- 4Click Copy to copy the result, or "Swap input/output" to quickly reverse the operation.
About HTML Entities
HTML Encode turns characters with special meaning in HTML — like <, >, &, and quotes — into entities (e.g. <, >, &). This prevents text from being interpreted as markup.
How it works: each dangerous/special character is mapped to a named or numeric entity. Decode turns entities back into their original characters. This tool keeps text displaying literally on a page.
HTML Encode is important for security (preventing XSS) and for showing literal code/characters inside HTML. Always encode user input before placing it into HTML.
FAQ
Can this HTML Entities tool both encode and decode?
Yes. This is a single page with a toggle — use Encode mode to transform text, and Decode mode to reverse it. No need for two separate pages.
Is my data sent to a server?
No. HTML Entities is processed entirely in your browser. The text you enter never leaves your device.