Free HTML Entity Encoder & Decoder
Escape special characters to HTML entities · or decode &-style entities back to readable text.
100% client-side · nothing you enter is ever sent to a server or stored.
Preview · sign in with a free account to run it
Decode handles named entities (&, ·, … …), decimal (©), and hex (😀) forms · unknown entities are left untouched.
How to use it
- Choose Encode → Entities or Decode ← Entities.
- Paste the text or HTML.
- Copy the result. Decoding handles named (&), decimal (©) and hex (😀) entities.
Example
Input
<a href="x">Tom & Jerry's</a>
Result
<a href="x">Tom & Jerry's</a>
What gets escaped
- & < > " '
- The five characters that can end text and start markup. Escaping them makes a string display as text, not HTML.
- Unknown entities
- When decoding, anything that isn't a real entity is left unchanged.
- Context matters
- Escaping makes text safe inside HTML elements and quoted attributes. It doesn't make a string safe inside a <script>, a style or an unquoted URL attribute.
Go deeper
Page updated
Frequently asked questions
Which characters must be escaped in HTML?
At minimum & < > in content, plus " and ' inside attributes. Escaping user input this way is the core defense against reflected and stored XSS · the browser renders the text instead of parsing it as markup.
Does escaping replace the need for a CSP?
No · they're layers. Output escaping prevents most XSS at the source, and a Content-Security-Policy limits the damage if something slips through. Ship both; SimplyScan checks both.
Does React escape for me?
Yes, for text in JSX. It doesn't when you use dangerouslySetInnerHTML or put user input in an href, and those are the common XSS holes in React apps.
Want the full picture?
This tool covers one narrow check. A full SimplyScan runs 60 checks across 14 categories · exposed keys, RLS, XSS, auth, and speed · in 30 seconds.
Run a full security scanRelated tools
Timestamp Converter
Convert Unix epoch timestamps to readable dates and back · seconds and milliseconds auto-detected, UTC and local shown together.
Case Converter
Paste any identifier or phrase and get every casing variant at once · camelCase, snake_case, kebab-case, PascalCase, CONSTANT_CASE and more.
Number Base Converter
Type a number in any base · binary, octal, decimal, or hex · and see it converted to all the others instantly.