What are HTML entities?
Some characters have a meaning in HTML: < starts a tag and & starts an entity. To show them as text, they are
written as entities like < and &. Entities can also write characters by number, like é for é.
How to use it
- Encode escapes text so it's safe to put inside HTML.
& < > " 'are always escaped; turn on Non-ASCII too to escape accents, symbols and emoji as well (named where a well-known name exists, numeric otherwise). - Decode turns every HTML5 entity back into its character. Entities that don't exist are kept as written and listed under the input.
Example
<p>Tom & Jerry's café 👋</p>
<p>Tom & Jerry's café 👋</p>
With Non-ASCII too, café 👋 becomes café 👋.
Named or numeric?
| Style | é | ' | Notes |
|---|---|---|---|
| Named | é | ' | Easier to read. ' has no name in older HTML, so it stays numeric |
| Numeric | é | ' | Works everywhere, including XML |
Security note
Escaping & < > " ' makes text safe inside HTML text and quoted attributes. It is not enough inside <script>,
inline event handlers (onclick="…"), CSS or URLs (href="javascript:…"): each of those needs its own escaping.
Use your framework's built-in escaping wherever you can.
FAQ
Is it safe to decode HTML here?
Yes. Decoding only turns entities into characters and the result is always shown as plain text, so pasted
<script> or <img onerror> never runs.
Is my text uploaded?
No. Everything happens in your browser. See the privacy page.