Output appears here...| Char | Named | Decimal | Hex |
|---|---|---|---|
| " | " | ||
| & | & | ||
| ' | ' | ||
| < | < | ||
| > | > | ||
| (space) |   | ||
| ¡ | ¡ | ||
| ¢ | ¢ | ||
| £ | £ | ||
| ¤ | ¤ | ||
| ¥ | ¥ | ||
| ¦ | ¦ | ||
| § | § | ||
| ¨ | ¨ | ||
| © | © | ||
| ª | ª | ||
| « | « | ||
| ¬ | ¬ | ||
| | ­ | ||
| ® | ® | ||
| ¯ | ¯ | ||
| ° | ° | ||
| ± | ± | ||
| ² | ² | ||
| ³ | ³ | ||
| ´ | ´ | ||
| µ | µ | ||
| ¶ | ¶ | ||
| · | · | ||
| ¸ | ¸ | ||
| ¹ | ¹ | ||
| º | º | ||
| » | » | ||
| ¼ | ¼ | ||
| ½ | ½ | ||
| ¾ | ¾ | ||
| ¿ | ¿ | ||
| À | À | ||
| Á | Á | ||
| Â | Â | ||
| Ã | Ã | ||
| Ä | Ä | ||
| Å | Å | ||
| Æ | Æ | ||
| Ç | Ç | ||
| È | È | ||
| É | É | ||
| Ê | Ê | ||
| Ë | Ë | ||
| Ì | Ì | ||
| Í | Í | ||
| Î | Î | ||
| Ï | Ï | ||
| Ð | Ð | ||
| Ñ | Ñ | ||
| Ò | Ò | ||
| Ó | Ó | ||
| Ô | Ô | ||
| Õ | Õ | ||
| Ö | Ö | ||
| × | × | ||
| Ø | Ø | ||
| Ù | Ù | ||
| Ú | Ú | ||
| Û | Û | ||
| Ü | Ü | ||
| Ý | Ý | ||
| Þ | Þ | ||
| ß | ß | ||
| à | à | ||
| á | á | ||
| â | â | ||
| ã | ã | ||
| ä | ä | ||
| å | å | ||
| æ | æ | ||
| ç | ç | ||
| è | è | ||
| é | é | ||
| ê | ê | ||
| ë | ë | ||
| ì | ì | ||
| í | í | ||
| î | î | ||
| ï | ï | ||
| ð | ð | ||
| ñ | ñ | ||
| ò | ò | ||
| ó | ó | ||
| ô | ô | ||
| õ | õ | ||
| ö | ö | ||
| ÷ | ÷ | ||
| ø | ø | ||
| ù | ù | ||
| ú | ú | ||
| û | û | ||
| ü | ü | ||
| ý | ý | ||
| þ | þ | ||
| ÿ | ÿ | ||
| Œ | Œ | ||
| œ | œ | ||
| Š | Š | ||
| š | š | ||
| Ÿ | Ÿ | ||
| ƒ | ƒ | ||
| ˆ | ˆ | ||
| ˜ | ˜ | ||
| Α | Α | ||
| Β | Β | ||
| Γ | Γ | ||
| Δ | Δ | ||
| Θ | Θ | ||
| Λ | Λ | ||
| Π | Π | ||
| Σ | Σ | ||
| Φ | Φ | ||
| Ψ | Ψ | ||
| Ω | Ω | ||
| α | α | ||
| β | β | ||
| γ | γ | ||
| δ | δ | ||
| ε | ε | ||
| θ | θ | ||
| λ | λ | ||
| μ | μ | ||
| π | π | ||
| ρ | ρ | ||
| σ | σ | ||
| τ | τ | ||
| φ | φ | ||
| ψ | ψ | ||
| ω | ω | ||
| (space) |   | ||
| (space) |   | ||
| (space) |   | ||
| (space) | ‌ | ||
| (space) | ‍ | ||
| (space) | ‎ | ||
| (space) | ‏ | ||
| – | – | ||
| — | — | ||
| ‘ | ‘ | ||
| ’ | ’ | ||
| ‚ | ‚ | ||
| “ | “ | ||
| ” | ” | ||
| „ | „ | ||
| † | † | ||
| ‡ | ‡ | ||
| • | • | ||
| … | … | ||
| ‰ | ‰ | ||
| ′ | ′ | ||
| ″ | ″ | ||
| ‹ | ‹ | ||
| › | › | ||
| ‾ | ‾ | ||
| ⁄ | ⁄ | ||
| € | € | ||
| ℘ | ℘ | ||
| ℜ | ℜ | ||
| ™ | ™ | ||
| ℵ | ℵ | ||
| ← | ← | ||
| ↑ | ↑ | ||
| → | → | ||
| ↓ | ↓ | ||
| ↔ | ↔ | ||
| ↵ | ↵ | ||
| ⇐ | ⇐ | ||
| ⇒ | ⇒ | ||
| ⇔ | ⇔ | ||
| ∀ | ∀ | ||
| ∂ | ∂ | ||
| ∃ | ∃ | ||
| ∅ | ∅ | ||
| ∇ | ∇ | ||
| ∈ | ∈ | ||
| ∉ | ∉ | ||
| ∏ | ∏ | ||
| ∑ | ∑ | ||
| − | − | ||
| √ | √ | ||
| ∝ | ∝ | ||
| ∞ | ∞ | ||
| ∠ | ∠ | ||
| ∧ | ∧ | ||
| ∨ | ∨ | ||
| ∩ | ∩ | ||
| ∪ | ∪ | ||
| ∫ | ∫ | ||
| ∴ | ∴ | ||
| ∼ | ∼ | ||
| ≅ | ≅ | ||
| ≈ | ≈ | ||
| ≠ | ≠ | ||
| ≡ | ≡ | ||
| ≤ | ≤ | ||
| ≥ | ≥ | ||
| ⊂ | ⊂ | ||
| ⊃ | ⊃ | ||
| ⊆ | ⊆ | ||
| ⊇ | ⊇ | ||
| ⊕ | ⊕ | ||
| ⊗ | ⊗ | ||
| ⊥ | ⊥ | ||
| ⋅ | ⋅ | ||
| ◊ | ◊ | ||
| ♠ | ♠ | ||
| ♣ | ♣ | ||
| ♥ | ♥ | ||
| ♦ | ♦ |
How to use
Paste text or HTML
Put the text you want to escape, or markup that contains entities, in the Input pane, or click Open file. Try sample loads a link with an ampersand, quotes, a copyright sign and an emoji.
Choose options, then Encode or Decode
Set Encode, Non-ASCII as and Escape quotes, then click Encode. Click Decode to turn entities back into characters, and tick Decode double-encoded text for strings like &amp;. Live mode converts as you type.
Copy, download or look up an entity
Copy the output or download it. To find one entity, type a name, character or number into the reference search and click the named or decimal form to copy it.
Why HTML Encoder / Decoder
- Decodes every HTML5 named entity and fixes double-encoded text.
- Encodes non-ASCII characters as named, decimal or hex entities.
- Searchable reference of 215 common entities with one-click copy.
- Live mode and a Swap button for quick round trips.
Common HTML entities cheat sheet
The first five rows are the characters you must escape in HTML text and attributes. The rest are optional in a UTF-8 page, but entities are handy when your editor, email tool or database mangles special characters.
Named entities are easier to read in source code. Numeric references work for any Unicode character, even ones without a name, such as the rupee sign (₹). Note that ' is valid in HTML5 and XML but not in old HTML 4, which is why this encoder writes ' for a single quote unless you choose '.
| Character | Named entity | Numeric |
|---|---|---|
| & | & | & |
| < | < | < |
| > | > | > |
| " | " | " |
| ' | ' | ' |
| Non-breaking space | |   |
| © | © | © |
| ® | ® | ® |
| ™ | ™ | ™ |
| € | € | € |
| £ | £ | £ |
| × | × | × |
| ° | ° | ° |
| … | … | … |
Encoding modes compared
The Encode and Non-ASCII as settings decide how much of the text turns into entities. Here is what each choice does to the input Café & "tea":
| Setting | Output |
|---|---|
| Special characters, non-ASCII left as is | Café & "tea" |
| Special characters, non-ASCII named | Café & "tea" |
| Special characters, non-ASCII decimal | Café & "tea" |
| Special characters, non-ASCII hex | Café & "tea" |
| Every character (numeric) | Café &... for every character |