HTML Encoder

Escape HTML special characters into safe entities. Converts & < > " ' automatically.

Input
Output
Share Link
Settings

Related Tools

Frequently Asked Questions

Why do I need to encode HTML?
HTML encoding prevents cross-site scripting (XSS) attacks. If you display user-supplied text inside HTML, unescaped < > & characters can break your markup or allow injection of malicious scripts.
What characters are encoded?
This tool encodes the five essential HTML characters: & → &amp;, < → &lt;, > → &gt;, " → &quot;, ' → &#39;.

About HTML Encoder

HTML encoding (escaping) is essential for safely displaying user input inside HTML pages. This tool escapes the five characters that have special meaning in HTML markup.