HTML entity escaper
Escape and unescape HTML entities online: 250+ named entities, decimal and hex numeric references, minimal or full non-ASCII escaping, and an option to keep existing entities.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Named entity lookup
ÆÆU+00C6ÁÁU+00C1ÂÂU+00C2ÀÀU+00C0ΑΑU+0391ÅÅU+00C5ÃÃU+00C3ÄÄU+00C4ΒΒU+0392ÇÇU+00C7ΧΧU+03A7‡‡U+2021ΔΔU+0394ÐÐU+00D0ÉÉU+00C9ÊÊU+00CAÈÈU+00C8ΕΕU+0395ΗΗU+0397ËËU+00CBΓΓU+0393^^U+005EÍÍU+00CDÎÎU+00CEÌÌU+00CCΙΙU+0399ÏÏU+00CFΚΚU+039AΛΛU+039BΜΜU+039C

U+000AÑÑU+00D1ΝΝU+039DŒŒU+0152ÓÓU+00D3ÔÔU+00D4ÒÒU+00D2ΩΩU+03A9ΟΟU+039FØØU+00D8ÕÕU+00D5ÖÖU+00D6ΦΦU+03A6ΠΠU+03A0″″U+2033ΨΨU+03A8ΡΡU+03A1ŠŠU+0160ΣΣU+03A3ÞÞU+00DE	 U+0009ΤΤU+03A4ΘΘU+0398ÚÚU+00DAÛÛU+00DBÙÙU+00D9ΥΥU+03A5ÜÜU+00DCΞΞU+039EÝÝU+00DDWhat this tool does
- Escape & < > and quotes before injecting user input or database text into an HTML page so it cannot break out as markup.
- Decode the , 你 and — references in someone else’s markup to see what characters they actually mean.
- Generate XML, RSS or email templates with every non-ASCII character turned into a numeric reference, safe for systems that only accept ASCII.
- Debug string concatenation: keeping existing entities lets you re-run escaping on text that is already partly escaped without double-encoding it.
Example
Input
<a href="x">Tom & Jerry</a>
Output
<a href="x">Tom & Jerry</a>
The default "special characters" range escapes & < > and both quote characters, leaving everything else — including Chinese text — untouched. Switch the range to "all non-ASCII" to escape those too.
Frequently asked questions
Why is my Chinese text not escaped?
The default special-character range only touches & < > and the quote characters, which are the ones that can break the document structure. Chinese is perfectly safe in a UTF-8 page; choose the "all non-ASCII" range if you want every character as a numeric reference.
How do I stop & from becoming &amp;?
Turn on "keep existing entities". The escaper then recognises &, ©, © and © style references and copies them through untouched. With the option off, & is treated as a plain character — which is exactly what standard escaping does.
What is the difference between named, decimal and hex references?
They render identically, only the spelling differs. Named entities (©) read best but the set is limited; decimal (©) has the widest support; hex (©) is common in XML and older editors. Characters without a named entity automatically fall back to decimal.
What happens if I unescape � or �?
You get an error, because U+0000 and the surrogate range (U+D800–U+DFFF) are not valid Unicode scalar values and cannot become characters. Unrecognised references such as a misspelled &foo; are left exactly as they are.
How many named entities are included?
281 common WHATWG entities covering Latin and Greek letters, maths symbols, arrows, currency and punctuation. The full HTML5 list has over 2000 entries, so obscure ones are missing here — use a numeric reference instead.
Keywords:html entitieshtml 实体escapeunescape转义反转义& html encodehtml decode