HTML Encoder & Decoder

Your text never leaves your browser — everything runs on your device.

Encode text into safe HTML entities — < becomes &lt;, > becomes &gt;, & becomes &amp;, and quotes become &quot; and &#39; — so it displays as text instead of being read as markup. Or decode entities back to plain characters, including numeric references such as &#65;. Free, no signup, and your text never leaves your browser.

Frequently asked questions

When do I need to encode HTML?

Whenever you want to show code or special characters on a web page as text — for example displaying &lt;div&gt; in a tutorial — or when inserting user text into a page safely so it cannot be interpreted as markup.

What characters does the encoder change?

It encodes the five characters that matter in HTML: & becomes &amp;, &lt; becomes &lt;, &gt; becomes &gt;, " becomes &quot; and ' becomes &#39;.

What entities can the decoder handle?

Named entities such as &amp;, &lt;, &gt;, &quot;, &apos;, &copy; and &nbsp;, plus numeric references in decimal (&#65;) and hexadecimal (&#x41;) form. Unknown entities are left unchanged.

Is my text uploaded anywhere?

No. Encoding and decoding run entirely in your browser. Nothing you paste is sent to a server or stored.