Encode special characters to HTML entities and decode HTML entities back to plain text.
Runs in your browser
HTML entities are special codes used to represent characters that have meaning in HTML markup (like <, >, and &) or characters not easily typed on a keyboard. Encoding these characters prevents them from being interpreted as HTML tags, which is essential for security (preventing XSS attacks) and for displaying special characters correctly. This tool encodes plain text into safe HTML entities and decodes entities back to readable text.