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.

The result will appear here…
or press Ctrl+Enter

Everything runs in your browser. Your data is never sent to our servers.

728 × 90Ad Space AvailablePlace your ad here

Example

Example Input

<b>café</b>

Example Output

&lt;b&gt;caf&eacute;&lt;/b&gt;

How to Use

  1. 1Choose Encode or Decode mode at the top.
  2. 2Type or paste your text into the Input field.
  3. 3Click the button (or press Ctrl+Enter) to process. The result appears in the Output field.
  4. 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. &lt;, &gt;, &amp;). 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.

Related Tools

Related Categories