HTML Entity Encoder
Encode & decode HTML entities
How to Use
Enter your text
Type or paste text containing special characters.
Choose mode
Select Encode to convert to entities, or Decode to convert back.
View result
See characters like < converted to <
Copy output
Click copy to use in your HTML safely.
Frequently Asked Questions
What are HTML entities?
HTML entities are codes that represent special characters. For example, < represents <, & represents &. They prevent characters from being interpreted as HTML.
When should I encode HTML entities?
When displaying user input on web pages, when including special characters in HTML, and when storing HTML-like content in databases to prevent XSS attacks.
What is the difference between named and numeric entities?
Named entities use words (© for ©), numeric use numbers (©). Named are more readable, numeric work for any character.
Is my text data private?
Yes, all encoding and decoding happens locally in your browser. No data is sent to any server.