HTML Encode / Escape
This HTML encode online tool helps you encode HTML to entities encoding string.
Input
Output
Share Link
Settings
About the HTML Encode / Escape
HTML encoding (escaping) converts characters such as <, >, & and quotes into HTML entities so they display as text instead of being parsed as markup. It is a key defence against cross-site scripting (XSS) when you insert user text into a page.
The tool is free, needs no sign-up and runs entirely in your browser, so your data never leaves your device.
Frequently asked questions
What characters does HTML encode change?
At minimum &, <, >, double quotes and single quotes. Non-ASCII characters can also be turned into numeric entities.
Is HTML encoding the same as URL encoding?
No. HTML encoding produces entities like &, while URL encoding produces percent escapes like %20.