HTML Entities Encoder & Decoder
Escape text so it displays safely inside HTML, or turn entity codes back into characters.
Common HTML entities
&
&&<
<<>
>>"
""'
''␣
 ©
©©®
®®™
™™…
……—
——–
––€
€€£
££¥
¥¥¢
¢¢°
°°×
××÷
÷÷←
←←→
→→↑
↑↑↓
↓↓♥
♥♥«
««»
»»‘
‘‘’
’’“
““”
””¶
¶¶§
§§·
··•
••±
±±½
½½Questions people ask
Which characters must be escaped in HTML?
Inside text, escape & as & and < as <. Inside attribute values, also escape the quote you used: " or '. Escaping > as > is optional but common. Failing to escape user input is the root cause of cross-site scripting (XSS).
What is the difference between named and numeric entities?
Named entities such as © are easier to read; numeric ones such as © (decimal) or © (hex) work for every Unicode character. With UTF-8 pages you rarely need either except for the few special characters above.
What is ?
A non-breaking space (U+00A0). It looks like a space but prevents a line break between the words on either side, for example “10 km”.