Encode and decode HTML entities
When you want to show HTML code or special symbols on a page without the browser interpreting them, you replace certain characters with HTML entities. This tool does that both ways: encode raw text into entities so tags and symbols display as written, or decode entities back into the original characters. Everything runs in your browser.
What gets encoded
&,<, and>are the characters that would otherwise be read as markup.- Double and single quotes become
"and', which matters inside attributes. - An option encodes every non-ASCII character to a numeric entity for maximum compatibility.
Frequently asked questions
How do I display HTML code on a web page?
Encode it here first. The angle brackets become entities, so the browser shows the tags as text instead of rendering them.
How do I decode HTML entities?
Switch to Decode and paste text containing entities like & or ©. The tool turns them back into the original characters.
What is the difference between encoding and escaping?
They mean the same thing here: replacing characters that have special meaning in HTML with a safe entity representation.
Is my text private?
Yes. Encoding and decoding run entirely in your browser.