How to use it
Pick an action
The basic encoding is usually enough to show HTML code on a page. Decoding gives the text as a browser shows it.
Paste
The output appears at once.
Copy
Copy it, or use it as input for the reverse action.
Common HTML entities
| In code | Shows |
|---|---|
& | & |
< | < |
> | > |
" | " |
' | ' |
| non-breaking space |
© | © |
® | ® |
™ | ™ |
… | … |
— | — |
× | × |
‏ | RTL mark |
‎ | LTR mark |
Good to know
Why escape special characters? To show text containing < or & on a page without the browser reading it as a tag, and to block injected code (XSS) when showing what visitors type.
Should I encode accented letters? Not on a UTF-8 page. Encoding é as é makes it bigger and harder to read; it only helps in ASCII-only systems.
Exact decoding. We follow the same HTML Standard rules as browsers, including edge cases like © without a semicolon.
FAQ
What are HTML entities?
Codes starting with & and ending with ; that stand for a character, like < for < or é for é. Browsers use them for characters that mean something in HTML.
What’s the difference between é and é?
Both are é: the first is its decimal number, the second its hexadecimal number. Browsers understand both.
When should I tick “attribute value”?
When the text comes from inside an attribute like href="...". There, some legacy names without a semicolon, like ©=1 in links, are not decoded.
Is my text sent anywhere?
No. Encoding and decoding happen in your browser.
