HTML Entity Converter
Encode and decode HTML entities. Switch between minimal, named, and numeric modes for different use cases.
Last updated:
How to Use
Expand how to useCollapse how to use
- 1
Paste your text
Enter the plain text to encode or the entity string to decode.
- 2
Choose action and mode
Select Encode or Decode. For encoding, choose minimal, named, or numeric mode.
- 3
Review and copy
Check the result, optionally swap input/output for another pass, then copy it.
Mode is applied only when encoding
Escapes only &, <, >, " and '
Input Text
Output
About HTML Entity Converter
HTML Entity Converter encodes and decodes HTML entities entirely in your browser with three encoding modes to match your use case. Minimal mode escapes only the five critical characters (&, <, >, ", ') for XSS prevention. Named mode converts recognizable characters to readable entities like &amp; and &copy;. Numeric mode converts to decimal or hexadecimal entities for maximum compatibility. It also decodes all three entity types — named, decimal, and hexadecimal — back to readable text. Use it to safely escape user-generated content before rendering in HTML templates, fix broken symbols in CMS output, or decode entity-encoded strings from third-party APIs and email systems.
Key Features
- One-click switch between encode and decode
- Minimal mode (escapes only &, <, >, " and ')
- Named mode (converts major characters to entities like & and ©)
- Numeric mode (converts to numeric entities such as ©)
- Decodes named, decimal, and hexadecimal entities
Common Use Cases
- Escape user input before rendering in HTML templates to prevent XSS
- Fix broken special characters in WordPress or Drupal CMS output
- Decode HTML entities from third-party API responses or RSS feeds
- Prepare code examples for technical documentation or blog posts
- Convert symbols for HTML email templates that require entity encoding
Frequently Asked Questions
What is the difference between minimal and named mode?
Minimal mode escapes only the five essential HTML characters (&, <, >, ", '). Named mode also converts many common symbols like © and € into named entities — useful for HTML email or legacy systems.
What does numeric mode convert?
Numeric mode converts &, <, >, " , ' and non-ASCII characters into numeric entities (for example, ©).
Can it decode hexadecimal entities like ©?
Yes. It supports named entities, decimal numeric entities ({), and hexadecimal numeric entities ({).
What happens if the input has invalid entities?
During decode, malformed entities or unsupported named entities are treated as conversion errors.
Is my input sent to a server?
No. All processing is done locally in your browser.
