SimplyScan logoSimplyScan
What We ScanPricingFree ToolsBlogCreate AccountLog In
  1. Home
  2. Free Tools
  3. HTML Entity Encoder
Free Tool · Runs in your browser

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

  1. Choose Encode → Entities or Decode ← Entities.
  2. Paste the text or HTML.
  3. Copy the result. Decoding handles named (&), decimal (©) and hex (😀) entities.

Example

Input

<a href="x">Tom & Jerry's</a>

Result

&lt;a href=&quot;x&quot;&gt;Tom &amp; Jerry&apos;s&lt;/a&gt;

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

  • XSS Prevention Guide: Protect Your AI-Built App from Cross-Site Scripting
  • React Security Checklist: 10 Vulnerabilities to Fix Before Launch

Page updated 21 November 2026

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 scan

Related 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.

SimplyScan logoSimplyScan

Security Scanner for Vibe-Coded Apps.

Product

See What We ScanHow It WorksView Pricing

Resources

Security BlogSecurity ChecklistTrust BadgeUptime MonitoringIntegrationsMCP Server (Claude, Cursor & Windsurf)API DocumentationBackend Audit GuideThreat Detection GuideFAQTerms of ServicePrivacy Policy

Platforms

All platforms →Lovable ScannerBolt.new ScannerCursor ScannerReplit Scannerv0.dev ScannerWindsurf ScannerBubble Scanner

Free Tools

All free tools →SSL CheckerSecurity HeadersDNS Security CheckerCORS TesterJWT DebuggerCSP EvaluatorHash GeneratorSEO Checker

Account

Create AccountLog In

© 2026 SimplyScan. All rights reserved.