HTML Entity Encoder / Decoder
Convert special characters to HTML entities (&, <, ©) or decode entities back to readable text — both directions, live.
622 views
HTML Entities, Both Ways
Paste text containing <, >, &, quotes or symbols like © and €, and the encode box converts them to safe HTML entities so the text can be embedded in HTML without breaking markup or triggering injection. The decode box reverses it, turning entities like & or ’ back into their actual characters.
Useful for safely embedding user-supplied text in an HTML page, reading a page source dump full of entities, or preparing text for an email template that requires entity-encoded ampersands.
Frequently Asked Questions
Why encode text before putting it in HTML?
An unescaped < or & in HTML content can be interpreted as markup, breaking the page or opening an injection risk. Encoding to < and & keeps the text literal and safe.
Does it handle named and numeric entities both?
Yes — decoding understands both named entities (&copy;) and numeric ones (&#169; or &#x00A9;).
Is my text sent anywhere?
No — conversion happens instantly in your browser using the DOM's own parser.
Similar Tools
Report a Problem
HTML Entity Encoder / Decoder