Developer Tools
HTML Entity Encoder / Decoder
Encode and decode HTML entities. Four encoding modes plus a searchable reference table of 100+ common entities.
Encoding Mode
0 characters
0 characters
| Char | Named | Decimal | Hex | Description |
|---|---|---|---|---|
| & | [HTML]Ampersand | |||
| < | [HTML]Less-than sign | |||
| > | [HTML]Greater-than sign | |||
| " | [HTML]Quotation mark | |||
| ' | [HTML]Apostrophe | |||
| [HTML]Non-breaking space | ||||
| | [HTML]Soft hyphen | |||
| © | [Typography]Copyright sign | |||
| ® | [Typography]Registered sign | |||
| ™ | [Typography]Trade mark sign | |||
| ° | [Typography]Degree sign | |||
| ± | [Typography]Plus-minus sign | |||
| · | [Typography]Middle dot | |||
| ¶ | [Typography]Pilcrow / paragraph | |||
| § | [Typography]Section sign | |||
| † | [Typography]Dagger | |||
| ‡ | [Typography]Double dagger | |||
| • | [Typography]Bullet | |||
| … | [Typography]Horizontal ellipsis | |||
| — | [Typography]Em dash | |||
| – | [Typography]En dash | |||
| ‘ | [Typography]Left single quote | |||
| ’ | [Typography]Right single quote | |||
| “ | [Typography]Left double quote | |||
| ” | [Typography]Right double quote | |||
| « | [Typography]Left angle quotation | |||
| » | [Typography]Right angle quotation | |||
| ‹ | [Typography]Single left angle quote | |||
| › | [Typography]Single right angle quote | |||
| ¢ | [Currency]Cent sign | |||
| £ | [Currency]Pound sign | |||
| ¥ | [Currency]Yen sign | |||
| € | [Currency]Euro sign | |||
| ¤ | [Currency]Currency sign | |||
| × | [Math]Multiplication sign | |||
| ÷ | [Math]Division sign | |||
| ½ | [Math]One half | |||
| ¼ | [Math]One quarter | |||
| ¾ | [Math]Three quarters | |||
| ∞ | [Math]Infinity | |||
| ∑ | [Math]Summation | |||
| √ | [Math]Square root | |||
| ∫ | [Math]Integral | |||
| ≈ | [Math]Almost equal to | |||
| ≠ | [Math]Not equal to | |||
| ≤ | [Math]Less than or equal | |||
| ≥ | [Math]Greater than or equal | |||
| ∝ | [Math]Proportional to | |||
| ∂ | [Math]Partial differential | |||
| ∈ | [Math]Element of | |||
| ∉ | [Math]Not an element of | |||
| ∩ | [Math]Intersection | |||
| ∪ | [Math]Union | |||
| ← | [Arrows]Left arrow | |||
| ↑ | [Arrows]Up arrow | |||
| → | [Arrows]Right arrow | |||
| ↓ | [Arrows]Down arrow | |||
| ↔ | [Arrows]Left right arrow | |||
| ↕ | [Arrows]Up down arrow | |||
| ⇐ | [Arrows]Left double arrow | |||
| ⇒ | [Arrows]Right double arrow | |||
| ⇔ | [Arrows]Left right double arrow | |||
| α | [Greek]Greek small alpha | |||
| β | [Greek]Greek small beta | |||
| γ | [Greek]Greek small gamma | |||
| δ | [Greek]Greek small delta | |||
| ε | [Greek]Greek small epsilon | |||
| ζ | [Greek]Greek small zeta | |||
| η | [Greek]Greek small eta | |||
| θ | [Greek]Greek small theta | |||
| λ | [Greek]Greek small lambda | |||
| μ | [Greek]Greek small mu | |||
| π | [Greek]Greek small pi | |||
| ρ | [Greek]Greek small rho | |||
| σ | [Greek]Greek small sigma | |||
| τ | [Greek]Greek small tau | |||
| φ | [Greek]Greek small phi | |||
| χ | [Greek]Greek small chi | |||
| ψ | [Greek]Greek small psi | |||
| ω | [Greek]Greek small omega | |||
| Α | [Greek]Greek capital alpha | |||
| Β | [Greek]Greek capital beta | |||
| Γ | [Greek]Greek capital gamma | |||
| Δ | [Greek]Greek capital delta | |||
| Π | [Greek]Greek capital pi | |||
| Σ | [Greek]Greek capital sigma | |||
| Ω | [Greek]Greek capital omega | |||
| ♠ | [Symbols]Black spade suit | |||
| ♣ | [Symbols]Black club suit | |||
| ♥ | [Symbols]Black heart suit | |||
| ♦ | [Symbols]Black diamond suit | |||
| ♩ | — | [Music]Quarter note | ||
| ♪ | [Music]Eighth note | |||
| ♫ | — | [Music]Beamed eighth notes | ||
| ♬ | — | [Music]Beamed sixteenth notes | ||
| ♭ | — | [Music]Music flat sign | ||
| ♮ | — | [Music]Music natural sign | ||
| ♯ | — | [Music]Music sharp sign | ||
| 😀 | — | [Emoji]Grinning face | ||
| 😂 | — | [Emoji]Face with tears of joy | ||
| ❤️ | — | [Emoji]Red heart | ||
| 👍 | — | [Emoji]Thumbs up | ||
| 🎉 | — | [Emoji]Party popper | ||
| ⭐ | — | [Emoji]Star | ||
| 🔥 | — | [Emoji]Fire | ||
| ✅ | — | [Emoji]Check mark button | ||
| ❌ | — | [Emoji]Cross mark | ||
| 🚀 | — | [Emoji]Rocket |
Click any Named / Decimal / Hex cell to copy it to your clipboard.
All encoding and decoding happens entirely in your browser. Nothing is sent to any server.
☕ Love this tool? Support the developer.
100% free — no ads, no limits. Your support keeps every tool free.
Secure payment via Stripe · No account needed
About HTML Entity Encoder / Decoder
OptiPix HTML Entity Encoder / Decoder converts text to and from HTML entity notation entirely in your browser. In Encode mode choose from four strategies: Minimal (only escapes the five characters that break HTML: & < > " '), All Named entities (© — α …), All Decimal (©), or All Hex (©). In Decode mode the tool handles named references (&), decimal numeric references (&), and hex numeric references (&) — even mixed in the same string. Invalid or unrecognised sequences are left untouched. A searchable reference table of over 100 common entities covers basic HTML characters, copyright and trademark symbols, punctuation and typography, currency signs, math symbols, arrows, Greek letters, card suits, music symbols, and common emoji. Click any Named, Decimal, or Hex cell in the table to copy it to your clipboard instantly. Everything runs in your browser — no data is ever transmitted to a server.
How It Works
Encoding iterates over every character in the input and replaces it with the appropriate entity reference based on the selected mode. Decoding uses three regular-expression passes: one for named references (matched against a lookup table of 250+ named entities), one for decimal numeric references (converted with String.fromCodePoint), and one for hexadecimal numeric references. All processing runs synchronously in the browser.
Use Cases
- •Escape user-supplied text before inserting it into HTML to prevent XSS
- •Convert pasted rich text to safe HTML for a CMS or email template
- •Look up the correct entity for a copyright, trademark, or arrow symbol
- •Decode HTML-encoded API responses to readable text
- •Find the decimal or hex code point for any special character
Frequently Asked Questions
What is an HTML entity?
What encoding modes are available?
Can it decode named, decimal, and hex entities mixed together?
How do I use the reference table?
Is my data sent to any server?
Related Tools
URL Encoder / Decoder
Encode and decode URLs with percent-encoding. Parse URLs into components.
Base64 Text Encoder / Decoder
Encode text to Base64 and decode Base64 back to text. URL-safe mode available.
Text to Binary / Hex / Octal
Convert text to binary, hexadecimal, octal, and decimal — and back.
Markdown Editor
Write and preview Markdown with a live split-pane editor. Export as .md or .html.