How to Use Base64 Encoding in Real Projects
Learn practical, production-ready ways to use Base64 encoding: data URLs for images, JWT payloads, API tokens, and email attachments, with real code examples.
Aug 08, 2026
Convert special characters to HTML entities and back. Supports all named and numeric entities.
HTML entity encoding is the process of replacing special characters in HTML with their corresponding entity references. This prevents browsers from interpreting these characters as HTML markup and ensures your content displays correctly.
For example, the < character is encoded as <, and the & character is encoded as &. Without encoding, these characters would be interpreted as HTML tags or entity delimiters instead of literal text.
| Character | Named Entity | Numeric Entity | Description |
|---|---|---|---|
| & | & | & | Ampersand |
| < | < | < | Less than |
| > | > | > | Greater than |
| " | " | " | Double quote |
| ' | ' | ' | Single quote / apostrophe |
| |   | Non-breaking space | |
| © | © | © | Copyright |
| ® | ® | ® | Registered trademark |
| ™ | ™ | ™ | Trademark |
| € | € | € | Euro |
| £ | £ | £ | Pound |
| ¥ | ¥ | ¥ | Yen |
| ¢ | ¢ | ¢ | Cent |
| § | § | § | Section |
| ¶ | ¶ | ¶ | Paragraph |
| — | — | — | Em dash |
| – | – | – | En dash |
| … | … | … | Ellipsis |
| « | « | « | Left angle quote |
| » | » | » | Right angle quote |
| × | × | × | Multiplication |
| ÷ | ÷ | ÷ | Division |
| ± | ± | ± | Plus-minus |
| µ | µ | µ | Micro |
HTML encoding converts characters to &name; or &#NN; format for safe display in web pages. URL encoding uses %XX percent-encoding for safe transmission in URLs. They serve different purposes and use different encoding schemes.
For most use cases, encoding the five essential characters (&, <, >, ", ') is sufficient. This tool encodes all characters that have named HTML entities for maximum compatibility.
Named entities use memorable names like © for ©, while numeric entities use the character's Unicode code point like ©. Browsers render both identically. Named entities are easier to remember for common characters, while numeric entities can represent any Unicode character.
Yes, these terms are used interchangeably. Both refer to replacing special HTML characters with their entity references to prevent them from being interpreted as markup.
Yes! This tool supports all named HTML entities (like ©, ™, €), numeric decimal entities (©), and numeric hex entities (©). Both encoding and decoding work bidirectionally.
Encode or decode URLs and query strings
Encode and decode Base64 data
Convert text to and from hexadecimal
Escape or unescape JSON strings
Escape or unescape XML entities
Convert text to Unicode escapes
Blog
Learn practical, production-ready ways to use Base64 encoding: data URLs for images, JWT payloads, API tokens, and email attachments, with real code examples.
Aug 08, 2026
Learn what an SMS counter is, how GSM 7-bit and UCS-2 encoding work, and why character count matters for SMS delivery and billing.
Jun 17, 2026
Learn the fundamentals of binary encoding, how computers represent data as 0s and 1s, and how to convert between binary and other formats.
Jun 16, 2026