Online tool for escaping HTML characters in text: <, >, &, quotes, and apostrophes.
HTML Escape is a free online tool for converting special characters into HTML entities so text can be displayed more safely inside HTML markup. It is useful for user-generated text, comments, tooltips, code examples, templates, CMS content, and documentation. Processing runs locally in your browser and data is not sent to the server.
Choose a related tool for the next step.
Data passed between tools is kept only in the current browser session.
HTML Escape converts special characters into HTML entities so text can be displayed more safely inside HTML markup. The tool replaces characters such as <, >, &, quotes, and apostrophes with the corresponding HTML entities. This is useful when preparing user-generated text, comments, tooltips, code examples, templates, CMS content, and documentation. Escaping helps prevent text from being interpreted as HTML markup, but it does not replace full sanitization for unsafe HTML.