Some characters, (such as < and >) are used as part of HTML markup. This means that if you want to display these characters on a webpage then you have to encode them first.
This online tool will allow you to encode and decode html text. It is completely client side and runs in the browser.