HTML Entity Encoder / Decoder
Convert between plain text and HTML entities. Supports named and numeric (decimal/hex) references, all processed in your browser.
Common HTML Special Characters
Click an entity to copy it.
| Char | Named | Decimal | Hex | Description |
|---|---|---|---|---|
| & | Ampersand | |||
| < | Less-than | |||
| > | Greater-than | |||
| " | Double quote | |||
| ' | Apostrophe | |||
| Non-breaking space | ||||
| © | Copyright | |||
| ® | Registered trademark | |||
| ™ | Trademark | |||
| € | Euro | |||
| ¥ | Yen / Yuan | |||
| £ | Pound | |||
| ¢ | Cent | |||
| § | Section sign | |||
| ° | Degree | |||
| ± | Plus-minus | |||
| × | Multiplication | |||
| ÷ | Division | |||
| … | Ellipsis | |||
| — | Em dash | |||
| – | En dash | |||
| • | Bullet | |||
| « | Left guillemet | |||
| » | Right guillemet | |||
| → | Right arrow | |||
| ← | Left arrow |
How to Use
Choose a Mode
Select the "Encode" or "Decode" tab. In encode mode you can also set the reference type and scope.
Enter Text
Paste your text into the input field and the result is converted in real time.
Copy the Result
Click "Copy" to grab the converted output with one click and paste it anywhere.
About HTML Entity Conversion
HTML entity conversion replaces characters that have special meaning in HTML — such as &, <, >, and " — with references like "&amp;" or "&lt;", and converts them back again. Escaping these characters prevents broken markup and XSS (cross-site scripting), and lets you display text safely without corruption. This tool runs entirely in your browser, so your input is never sent to any server.
Features
- Real-time ConversionEncode or decode instantly as you type. No waiting for results.
- Named & Numeric ReferencesFreely switch between named (&), decimal (&), and hex (&) references.
- Reference Table IncludedBrowse a table of common special-character entities and copy any with a click.
- Fully PrivateAll processing happens in your browser. Text is never sent to servers.
Use Cases
- Display source code as-is in blogs and CMSs
- Safely show symbols like & < > " inside HTML
- Escape user input as an XSS countermeasure
- Restore garbled entities (e.g. あ) back to characters
- Clean up special characters in email signatures and templates
FAQ
What is an HTML entity?
What is the difference between named and numeric references?
Why is escaping necessary?
Is my text sent to a server?
Can I convert Japanese or emoji?
Does it work on smartphones?
Feedback
Missing a feature, or getting a result that looks wrong? Let us know — we improve our tools based on your feedback.