HTML Entity Encoder & Decoder — Escape HTML Safely
Make HTML safe to display — turn <script> into harmless text, or decode entities back to characters.
How to use this tool
- Choose Encode (escape for safe display) or Decode (entities → characters).
- Paste your HTML or text.
- Press Convert.
Example
<b>bold</b> for display → <b>bold</b> — the browser then shows the tags as text instead of rendering them. Decode reverses it, including named entities like © → ©.The formula
What the result means
Encoding is the first line of defense against XSS: angle brackets become harmless text, so user input can never become executable markup. The five characters escaped here are the exact set recommended by OWASP for HTML context — more is unnecessary, less is unsafe.
Frequently asked questions
Is this the same as URL encoding?
No — URL encoding (%20) is for links; HTML entities (<) are for page content. Different worlds, different escapes. The URL tool handles the other one.
Why only five characters when encoding?
Because those five are the ones that change HTML structure (& starts entities, < > make tags, quotes break attributes). Escaping more just bloats the text.
Does decoding execute any code?
Never. The decoder renders entities into a detached textarea and reads back plain text — no script runs at any point.
Is my text uploaded?
No — everything happens locally in your browser.
More tools from Circuit Cove
Explore the island world
- Circuit Cove — the island where this tool lives.
- The Main Island — drive the boat, explore the whole world.
- The 90s Kids Island — where most of us started.
Comments
Post a Comment