HTML Entity Encoder/Decoder
Bidirectional conversion between text and HTML entities (named/numeric) with smart detection and preview.
Current Mode
Auto Detect On - Encode
Input Content
Output Result
Character Mapping(Only show first 20 characters)
| Original Content | Converted Result |
|---|---|
| No Data | |
Usage Guide
- 1. Enter text or HTML entities, auto-detect mode will intelligently judge based on input content.
- 2. Supports all standard HTML entity encoding and decoding.
- 3. In encode mode, special characters (like < > & " ' etc.) will be converted to entities.
- 4. In decode mode, supports all named entities (like ©) and numeric entities.
- 5. The character mapping table only shows the conversion relationship of the first 20 characters.
- 6. Click the "Copy" button to quickly copy the conversion result.
- 7. Click the "Clear" button to reset all inputs and outputs.
- 8. Click the "Swap" button to quickly swap input and output content.
About This Tool
A powerful HTML entity converter designed for Web developers and security experts. It supports converting special characters (like <, >, &, ", ' etc.) into standard HTML entities to prevent XSS attacks, while also supporting decoding complex named entities (like ©, ®) or numeric entities back to original text. With a built-in smart detection engine, it automatically switches between encode and decode modes and provides a detailed mapping table for the first 20 characters. All processing is done locally for maximum privacy.
Features
- ⚡ Real-time: Instant encoding and decoding results
- 🤖 Smart Detection: Automatically detects if input needs encoding or decoding
- 🔤 Full Support: Handles named, hex, and decimal HTML entities
- 🛡️ Security Aid: Quickly generate escaped characters for XSS prevention
- 📊 Detailed Preview: Clear mapping for the first 20 characters
- 🔒 Privacy: All processing done locally on your device