Tokens, Keys & Encoding100% In-BrowserXSS Defense

HTML Entity Encoder / Decoder

Escape dangerous HTML characters (<, >, &, ", ') into safe HTML entities to prevent XSS injection.

Real-time processing·No server uploads·Zero telemetry
html-entity-encoder-/-decoder
LIVE
Input (Plain)
31 characters
Output (BASE64 encoded)
SGVsbG8gV29ybGQhIFNlY3VyZSBlbmNvZGluZyDwn5SQ
44 characters
Base64
Encodes binary data using A-Z, a-z, 0-9, +, / (RFC 4648)
✓ Email attachments, data URIs, JWTs
URL Encoding
Percent-encodes special characters so URLs remain valid (RFC 3986)
✓ Query strings, form submissions
HTML Entities
Converts special chars to &amp;entity; notation to prevent XSS
✓ Web content, preventing script injection

How to Use HTML Entity Encoder / Decoder

01

Paste your HTML markup or unescaped string.

02

Click 'Escape Entities' or 'Decode Entities'.

03

Copy the safe HTML representation.

Privacy Guarantee

HTML Entity Encoder / Decoder runs 100% client-side in your web browser. Your data, passwords, keys, and files are processed using the Web Crypto API and never transmitted to any server. Zero telemetry, zero storage, zero cloud processing.

Frequently Asked Questions

Which characters are escaped?

& (&amp;), < (&lt;), > (&gt;), " (&quot;), and ' (&#39;).

Discover More

Related Security Tools

View All Security Tools