Developer · Free forever
HTML entity converter
Encode and decode HTML entities like & < > ". Safe for emails, blog posts, and code snippets.
Frequently asked questions
When should I encode HTML entities?
Encode user input before inserting it into HTML to prevent cross-site scripting. Also useful for showing code samples inside blog posts.
What characters get encoded?
The five reserved characters are encoded by default: ampersand, less than, greater than, double quote, and single quote.
Is this the same as URL encoding?
No. URL encoding uses percent-escapes for query strings, while HTML encoding uses named or numeric entities for HTML body content.