HTML entity encoder and decoder
Make text safe to put in HTML, or turn &-style codes back into readable characters.
- 100% free
- No sign-up
- Runs in your browser
How to use HTML entities
- Pick encode or decode
- Choose how much to encode
- Copy the result
Paste text, open a file, or drop one here
Common entities
Select one to copy it.
Next: URL encode / decode · Base64 encode / decode · HTML formatter
Report a problem with this tool
How to use HTML entities
Pick encode or decode
Encode turns special characters into entities; decode turns entities back into characters. Text that already has entities offers to decode.
Choose how much to encode
Escape just & < > and quotes, or every non-ASCII character too, written as names like é or numbers like é.
Copy the result
Copy or download it. The common entities list below copies any reference, such as or —, with one click.
Why use Utils365
Safe escaping
The minimal mode escapes exactly the five characters that can break HTML or attributes, and leaves everything else readable.
Decoded without running HTML
Entities are decoded by a lookup table, never by putting your text into a page, so pasted markup or scripts can’t run.
Names and numbers
All 252 HTML 4 named entities plus ' are decoded, along with every decimal and hex number reference.
Frequently asked questions
What are HTML entities?
Codes that stand for characters in HTML. They start with & and end with ;, such as < for <, & for &, or © for ©. They let you show characters that would otherwise be read as markup.
Which characters must be escaped in HTML?
In text, & and < must be escaped as & and <. Inside attribute values, also escape the quote you used: " for " and ' for '. Escaping > as > is optional but common.
What’s the difference between é and é?
Both show é. é is a numeric reference (233 is its Unicode number) and works in HTML and XML; é is a named reference, easier to read but HTML only. é is the same number in hex.
How do I write a non-breaking space?
Use or  . It looks like a space but stops a line break there, as in 10 kg. Too many in a row are a common cause of layout problems.
Why is ' not always used for apostrophes?
' came from XML and wasn’t part of HTML 4, so some old browsers and email clients don’t know it. ' works everywhere, which is why the encoder uses it.
Which named entities can it decode?
All 252 from HTML 4, covering Latin-1 letters such as ñ, symbols such as € ™ →, maths signs and Greek letters, plus '. HTML5 adds rarer names; unknown ones are kept as they are and listed.
Do I need entities if my page is UTF-8?
Only for & < > and quotes. A UTF-8 page can contain é, € or emoji directly. Encoding all non-ASCII characters helps with old systems or emails that mangle UTF-8.