What Are HTML Entities?
HTML entities are special codes used to represent characters that have special meaning in HTML or that cannot be easily typed on a keyboard. For example, the less-than sign (<) is written as < in HTML to prevent the browser from interpreting it as a tag.
This tool helps you quickly convert between regular text and HTML entity codes. Whether you're a web developer inserting special characters into your markup, or you need to decode a string full of entity references, this encoder/decoder handles it instantly.
Supported Encoding Formats
Named Entities
&, ©, <Decimal Numeric
&, ©Hexadecimal Numeric
&, ©How to Use
Encoding Text
Select Mode
Make sure Encode mode is selected (active by default)
Choose Format
Select your preferred format: Named, Decimal, or Hex
Input Text
Type or paste your text in the left panel
Get Results
The encoded result appears instantly in the right panel
Copy Output
Click the Copy button to copy the result to your clipboard
Decoding Entities
Switch Mode
Switch to Decode mode using the toggle button
Paste Entities
Paste your HTML entities in the left panel
View Results
The decoded text appears instantly in the right panel
Using the Reference Table
Open Reference
Click Entity Reference to expand the reference panel
Browse or Search
Browse categories or use the search bar to find specific entities
Copy Entity
Click any row to copy the entity name to your clipboard
Features
Three Encoding Formats
Encode your text using the format that best fits your needs. Named entities are the most readable (&), while decimal (&) and hex (&) codes cover every Unicode character.
- Named entities for readability
- Decimal for standard numeric codes
- Hex for compact representation
Real-Time Conversion
Results update automatically as you type — no need to press a convert button. The conversion uses debouncing to stay responsive even with large texts.
- Instant results as you type
- Optimized for large texts
- No manual conversion needed
Swap Function
Quickly reverse your conversion with the swap button. The output becomes the new input and the mode toggles automatically, making round-trip encoding and decoding effortless.
- One-click input/output swap
- Automatic mode switching
- Seamless round-trip conversion
Entity Reference Table
Browse a comprehensive collection of HTML entities organized into six categories: Common, Symbols, Math, Arrows, Currency, and Greek. Use the search bar to find any entity by character, name, code, or description.
- Six organized categories
- Powerful search functionality
- One-click copy to clipboard
Frequently Asked Questions
What is the difference between Named, Decimal, and Hex formats?
Named entities use human-readable codes like © for ©. Decimal uses the character's Unicode number in base 10 (©), and Hex uses base 16 (©).
All three produce the same result in a browser, but named entities are easier to read while numeric formats support any Unicode character.
Human-Readable
- Easy to understand
- Limited character set
- Example:
©
Universal Coverage
- All Unicode characters
- Decimal or Hex format
- Example:
©or©
Why should I encode HTML entities?
Encoding prevents browsers from misinterpreting characters as HTML markup. For example, a < character in your content could break your page layout if not encoded as <.
Encoding also lets you display special characters that aren't available on standard keyboards.
- Prevents HTML parsing errors
- Displays special characters correctly
- Improves security (prevents XSS)
- Ensures cross-browser compatibility
Can I decode mixed entity types?
Yes. The decoder handles named, decimal, and hex entities all at once. For example:
<p>© & ™
This correctly decodes to: <p>© & ™
What happens to characters without a named entity?
When using Named format, characters that have no named entity (such as accented letters like ñ or ü) automatically fall back to decimal numeric encoding.
In Decimal or Hex mode, all non-ASCII and HTML-special characters are encoded numerically.
| Character | Named Entity | Decimal | Hex |
|---|---|---|---|
| © | © |
© |
© |
| ñ | No named entity | ñ |
ñ |
| ü | No named entity | ü |
ü |
Is there a size limit?
There is no hard limit. The tool processes text entirely in your browser, so performance depends on your device. It handles typical code snippets and documents without any issues.
No comments yet. Be the first to comment!