HTML entities encoder / decoder

Encoded/Decoded Output

HTML Entities Encode / Decode Tool

Paste the HTML entities in the input box and click decode / encode button to get the decoded / encoded output in the above output box. This will convert reserved HTML characters into their equivalent HTML entities. Click copy button to copy the output.

What are HTML Entities?

Entities are used to apply reserved characters or to communicate characters that cannot easily be entered with the keyboard. The HTML Symbol Entities include mathematical symbols, Greek characters, various arrows, technical symbols and shapes. In HTML and XML there will be special characters that are to be reserved for use in an html page / 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 "&" will become &

Sample Input code

<!DOCTYPE html><html><head><title>Page Title</title></head><body><h1>This is a Heading</h1><p>This is a paragraph.</p></body></html>

Sample output

&lt;!DOCTYPE html&gt;&lt;html&gt;&lt;head&gt;&lt;title&gt;Page Title&lt;/title&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;This is a Heading&lt;/h1&gt;&lt;p&gt;This is a paragraph.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;