🍋 Text Tools
HTML Entity Encoder/Decoder
Encode special characters as HTML entities or decode them.
chars
words
sentences
lines
Options
Results
Result
About HTML Entity Encoder/Decoder
Encode special characters like <, >, &, and quotes into their HTML entity equivalents, or decode HTML entities back to characters.
How It Works
Encoding replaces characters that have special meaning in HTML (&, <, >, ", ') with their named entity equivalents (&, <, etc.). Decoding uses the browser's DOM parser to resolve all HTML entities, including numeric entities like —.
Step by Step
- 1 Choose Encode or Decode
- 2 Paste your text or HTML
- 3 Click Convert
- 4 Copy the result
Tips
- Essential for safely displaying user input in HTML.
- Decoding handles both named (&) and numeric (&) entities.
Frequently Asked Questions
Which characters are encoded?
The five characters with special meaning in HTML: & < > " and '.