DevLocal only
HTML Entity Encoder/Decoder
Encode special characters to HTML entities and decode entities back. Named and numeric modes.
htmlentityencodedecodeamp
⌘⇧CCopy output
Your data stays in your browser — nothing is uploaded.
<p class="hello">Hello © World — 2024</p>
Quick Reference
| Char | Named | Numeric |
|---|---|---|
| & | & | & |
| < | < | < |
| > | > | > |
| " | " | " |
| ' | ' | ' |
| ⎵ | |   |
| © | © | © |
| ® | ® | ® |
| ™ | ™ | ™ |
| € | € | € |
| £ | £ | £ |
| — | — | — |
| – | – | – |
| • | • | • |
| … | … | … |
| → | → | → |
| ← | ← | ← |
| ° | ° | ° |
💡
What is HTML Entity Encoder/Decoder?
HTML Entity Encoder/Decoder converts special characters (like <, >, &, ©, €) to their HTML entity equivalents and back. Supports both named entities (&) and numeric entities (&) with a quick reference table of common entities.
🚀
How it Helps
- ✓Safely encode special characters for use in HTML documents.
- ✓Decode HTML entities back to readable text for editing.
- ✓Reference common HTML entities with the built-in lookup table.
📖
Usage Guide
- 1Choose Encode or Decode mode using the toggle at the top.
- 2For encoding, select Named (&) or Numeric (&) entity format.
- 3Paste your text and the converted output appears instantly.
Frequently Asked Questions
Named entities use descriptive names (like & for &), while numeric entities use character codes (&). Named entities are more readable; numeric entities work universally.
It encodes characters beyond ASCII (code > 127) plus the five HTML-special characters: &, <, >, ", and '. Regular ASCII text passes through unchanged.
Yes! It's especially useful for encoding special characters in HTML emails where character encoding support varies.
