HTML Entity Encoder & Decoder
Convert special characters to HTML entities or decode entities back to characters. Includes a common entity reference table.
| Character | Entity | 코드 | 설명 |
|---|
What Are HTML Entities?
HTML entities are special codes used to represent reserved characters in HTML. For example, < represents < and & represents &. Without encoding, these characters would be interpreted as HTML tags or syntax, potentially breaking your page layout or causing security issues like XSS attacks.
How to Encode or Decode HTML Entities
- Choose Mode — Select Encode to convert characters to entities, or Decode to convert entities back
- Type or Paste — Enter your text and see the converted result in real-time
- Reference Table — Click the reference section to see common entities and click any row to insert it
- Copy — Click Copy to grab the result
Why Use This HTML Entity Tool?
- Real-Time — Results update instantly as you type
- Reference Table — 24 common entities with character, named entity, numeric code, and description
- Click to Insert — Click any entity in the reference table to add it to your input
- Swap Button — Quickly reverse encode/decode direction with output as new input
- XSS Prevention — Properly encode user input to prevent cross-site scripting attacks
FreeToolbox vs Other HTML Entity Tools
| Feature | FreeToolbox | mothereff.in | html-entities.com |
|---|---|---|---|
| Real-time | Yes | Yes | No |
| Reference Table | Yes (24 entities) | No | Yes |
| Click-to-Insert | Yes | No | No |
| Swap I/O | Yes | No | No |
| Ads | Minimal | None | Heavy |
FAQ
Which characters get encoded?
The encoder converts the five key HTML special characters: & (ampersand), < (less than), > (greater than), " (double quote), and ' (single quote).
What about non-ASCII characters like emoji?
Non-ASCII characters like accented letters or emoji are left as-is since modern HTML (UTF-8) handles them natively. Only the five reserved HTML characters are encoded.
Can I use the reference table to insert entities?
Yes. Click any row in the reference table and the corresponding character (in encode mode) or entity (in decode mode) will be appended to your input.
Why is HTML encoding important for security?
Encoding user-supplied text prevents Cross-Site Scripting (XSS) attacks. Without encoding, an attacker could inject