HTML Encoder and Decoder


HTML Encoder and Decoder online tool lets you encode or decoder HTML online and contains following interesting features.

  • You can encode or decode HTML string.
  • You can optionally choose use of indentation, shown on right sidebar.
  • If indentaion is used then you can specify indent level between 1 to 12, default if 4.
  • Encoded or Decoded HTML will be copied to clipboard automatically, no need of additional click.
  • If you want to learn about the HTML then check our HTML Tutorial.

Output Copied to Clipboard.

You may also like these online tools

What is HTML Encoding?

HTML contains tags (for example <title> and <p> enclosed in <> brackets) which are to be understood by the web browser to decide how to render the web content. HTML tags are not meant not to be displayed to the user.

HTML encoding replaces these <> angle brackets and certain other characters with some combination of characters so that these characters can be displayed to the end user.

This is highly useful in case you want to show HTML code on a web page, say HTML Tutorial.

Following are some examples of HTML encoding

HTML Character Encoded HTML Character
< &lt;
> &gt;
& &amp;

What is HTML Decoding?

Encoded HTML contains charaters which are replaced by the HTML encoding for example < converted to &lt; character combinations so that replaced characters can be displayed by the web browser.

HTML character decoding reverses this encoding process and converts back encoded HTML characters to their original form.

Example: &lt; to <

Following are some examples of HTML Decoding

Encoded HTML Character Decoded HTML Character
&lt; <
&gt; >
&amp; &

Use Indent
Indent Level