HTML Entities Escape


HTML Entities Encode/Decode Tool

Paste the string in the text field above to that you would like to encode or decode. This will convert reserved HTML characters into their equivalent HTML entities.

What are HTML Entities?

In HTML and XML there are special characters that are reserved for use in an html document. To be able to have these characters display in your webpage rather than processed by the browser, you have to encode them into their entity equivalents. For example the character > would become >. There are 252 character references and 1,114,050 numeric references. You can see the complete character chart at the bottom of the page.

When do you use HTML Entities?

If you want to display this HTML inside of an HTML file:

<HTML><HEAD><TITLE>Hello World Example</TITLE></HEAD><BODY><H1>Hello</H1><P>World</P></BODY></HTML>

You would have to include the text as follows:

&lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;Hello World Example&lt;/TITLE&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1&gt;Hello&lt;/H1&gt;&lt;P&gt;World&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;

Links

Dan's Deals All Deals