Developer Tools
HTML Entity Encoder & Decoder
Escape text for safe embedding in HTML, and decode named or numeric entities (&, ', ©) back into plain text.
Escaping converts < > & and quotes — the fundamental XSS defense. Decoding supports named and numeric entities.
Encode the Five, Decode Everything Else
In HTML text content, only five characters strictly require entities: & < > " and ' (the last two matter inside attributes). Everything else — accented letters, emoji, currency — belongs as literal UTF-8 in modern pages; encoding é as é is legacy habit that bloats source and hurts searchability. The trap that costs time: double-encoding, where & becomes &amp; after a second pass through a template — if you see & rendered literally in a page, look for two escaping layers.
How the Tool Works
- Paste text or markup and pick Escape to convert <, >, &, quotes into their entity equivalents.
- Pick Decode to convert entities — named (&) and numeric (< or <) — back into characters.
- Escaped output is safe to paste into HTML templates, attribute values, or CMS rich-text sources.
- Copy or download the result; nothing is transmitted anywhere.
Example Input & Output
Common Questions
Is escaping the same as encoding for URLs?
No. HTML entities are for embedding text inside HTML documents. URL percent-encoding is a different scheme — use the URL Encoder for query strings.
Which entities does decoding support?
All standard named entities plus decimal and hexadecimal numeric references, the same set browsers support.
Related Developer Tools
URL Encoder & Decoder
Convert special characters to percent-encoded hex sequences (%20) and decode URI strings.
HTML Formatter & Minifier
Beautify or minify HTML markup with before/after payload reduction metrics and client-side privacy.
Text to ASCII Codes Converter
Show the ASCII/Unicode code point of every character in decimal, hexadecimal, or binary — and convert code lists back into text.