HTML Escape Utility

Use this utility to escape HTML strings. HTML encoding converts characters into a format that can be used to display HTML with special characters correctly.

Paste your HTML string in the text box below and click Encode or Decode.


Encoding HTML string uses the following rules:

  • & is encoded as &
  • < is encoded as &lt;
  • > is encoded as &gt;
  • " is encoded as &quot;
  • ' is encoded as &#039;

Some additional special characters you can use in your HTML are ® encoded as &reg; and © encoded as &copy;.

This online utility does not send encoded or decoded HTML strings across the internet. This online utility encodes and decodes in your browser by using JavaScript.