< > &
This tool converts characters like <, >, and & into their HTML entity equivalents (<, >, &) so text can be safely embedded inside raw HTML without breaking the markup or being interpreted as a tag.
Safely displaying code snippets or angle brackets inside a webpage.
Preventing user-submitted text from being interpreted as HTML markup.
Preparing text to be embedded in a static HTML template.
A raw < is interpreted as the start of an HTML tag; encoding it as < tells the browser to display the character itself instead of treating it as markup.
ToolBench runs this tool entirely in your browser. Your file or text is processed on your own device using JavaScript — nothing is uploaded to a server, nothing is stored, and there's no sign-up wall between you and the result. That's true of every one of the 500+ tools on this site, from PDF utilities to unit converters.