HTML Entity Encoder / Decoder
Encode special characters to HTML entities or decode entities back to text
Processed on your device β never uploaded
Text Input
Encoded Output
Frequently Asked Questions
What are HTML entities?
HTML entities are special codes like & for & and < for < that represent reserved characters in HTML so they display correctly in web pages.
When should I encode HTML entities?
Encode HTML entities when displaying user-generated content on web pages to prevent XSS attacks and ensure special characters like <, >, and & render properly.
What is the difference between named and numeric HTML entities?
Named entities use readable codes like &amp; while numeric entities use character codes like &#38;. Both produce the same result but named entities are more readable.
Can I decode HTML entities back to plain text?
Yes, switch to Decode mode and paste your HTML entities to convert them back to their original characters, supporting named, decimal, and hex entity formats.