Uttir

HTML Entity Encoder/Decoder

Encode special characters to HTML entities (& < > " ’) and decode named, decimal, or hex entities back to text.

HTML Entity Encoder/Decoder — HTML reserves a handful of characters that have special meaning in markup: &, <, >, ", and '. When you want those characters to appear as text inside an HTML document, you replace them with entities like &amp;, &lt;, and &quot;.

All conversion happens locally in your browser. No text leaves your device.

Was HTML Entity Encoder/Decoder useful?

What is html entity encoder/decoder?

HTML reserves a handful of characters that have special meaning in markup: &, <, >, ", and '. When you want those characters to appear as text inside an HTML document, you replace them with entities like &amp;, &lt;, and &quot;.

This tool encodes plain text to entities (escaping only the reserved characters by default, or every non-ASCII character in "all" mode) and decodes any combination of named (&copy;), decimal (&#169;), and hex (&#xA9;) entities back to the characters they represent.

How to use it

  1. Encode or decode

    Switch the mode with the toggle at the top of the page.

  2. Paste your text

    Type or paste into the input box. Output updates as you type.

  3. Copy the result

    Use the Copy button to put the converted text on your clipboard.

Examples

Encode a tag

Convert <div> to its escaped form.

Result: &lt;div&gt;

Decode a named entity

&copy; 2024 — Uttir → © 2024 — Uttir

Result: © 2024 — Uttir

Frequently asked questions

Related tools