QuickFreeTools

Online HTML Encode Text

Encode text for safe use in HTML (e.g. < → &lt;, & → &amp;, " → &quot;). Prevents XSS and display issues.

Frequently Asked Questions

What characters are encoded?
Typically < > & " and optionally ' and non-ASCII. Prevents broken HTML and injection.
When should I use this?
When inserting user input or dynamic text into HTML so that < and & don't break the page or cause XSS.
Does it encode quotes?
Yes. Double and single quotes are encoded so attribute values stay valid.

Related Text Tools