HTML Encoder
Escape HTML special characters so markup displays as text.
HTML Encoder converts characters like <, >, &, and quotes into HTML entities. Paste any text or markup and get a safe escaped string you can put inside HTML without breaking the page. Processing stays in your browser.
Frequently Asked Questions
Does my text leave the browser?
No. This tool runs entirely in your browser. Nothing is uploaded to our servers.
Which characters are escaped?
& becomes &, < and > become < and >, and quotes become " or '.
When should I use HTML encoding?
Use it when you need to display raw HTML as text, or to safely embed user content in markup.