Encode & Decode Named and Numeric HTML Entities Safely in Your Browser
Escape raw HTML snippets, code blocks, and untrusted user strings into safe named (&lt;) or numeric (<) entities—or decode escaped HTML back to readable markup.
INPUT SOURCE
66 chars
LIVE PROCESSED OUTPUT
UTF-8 • CLIENT-SIDE
Processing...
How to Use the HTML Entity Studio
-
STEP 01Paste raw HTML markup or entity-encoded text into the left input editor.
-
STEP 02Select Named Encoding, Numeric Hex Encoding, or Entity Decoding from the toolbar.
-
STEP 03Copy the escaped output for safe embedding in documentation, emails, or templates.
Frequently Asked Questions (HTML Entity Studio)
Which characters must be HTML-encoded to prevent Cross-Site Scripting (XSS) in HTML bodies?
At minimum, &, <, >, ", and ' must be escaped so untrusted strings cannot break out of text nodes or attribute values.