HTML Encode / Decode

Show code on a page without the browser eating it — or turn entities back into text.

100% FREE & Unlimited Use — No Sign-Up, No Spinning Wheels — Your Files Never Leave Your Device

How it works

To show characters like <, > and & as text inside a web page, they must be written as HTML entities — &lt;, &gt;, &amp; — or the browser will read them as code. Encoding here converts the five critical characters (plus quotes) into entities so you can paste code samples, examples and user input into a page safely. Decoding runs in a single pass, which matters: text that was encoded twice decodes exactly once, so &amp;lt; becomes &lt; — not a live < character. Named, decimal and hex entities are all understood.

Frequently asked questions

Which characters get encoded?
The essential five: & < > and both quote marks. Those are the ones that can break a page or open an injection hole; the rest of Unicode is safe as-is in a UTF-8 page.

Why does single-pass decoding matter?
Naive decoders replace &amp; first and then happily decode the result again, turning safely-escaped text back into live markup. One pass, left to right, is the correct behaviour.

Can it decode entities like &copy; or &#169;?
Yes — common named entities, decimal (&#169;) and hex (&#xA9;) forms all decode to their characters.

Your privacy

This tool runs entirely in your browser, on your own device. Nothing you type, paste or open here is uploaded to a server, saved, or shared — close the tab and it is gone. That is the standing rule for every tool on Just SEO Tools.