Free HTML entities encoder

Escape text for safe use in HTML, or turn entities back into characters.

Runs in your browser. Nothing you type is sent to us · free, no sign-up

HTML entities encoder

Loading the tool

Need a hand?

Stuck? Ask an engineer.

Talk to an engineer
Prefer to call?

071 577 0488, any hour, in Sinhala or English.

How to read the result

The tool escapes text so it shows as text in HTML (< becomes &lt;, & becomes &amp;) or turns entities back into characters. Escaping user input before showing it on a page is the basic defence against cross-site scripting (XSS).

Questions people ask

When do I need to escape HTML?

Whenever you put text into a web page that could contain <, >, & or quotes, especially anything a visitor typed.

Is my text sent anywhere?

No. It is converted in your browser.

Is this tool free?

Yes, free with no sign-up, and it runs entirely in your browser.