HTML Encoder & Entity Decoder

Free HTML encoder and HTML entity decoder online. HTML encode decode special characters to entities and back instantly.

How it works

  1. 1

    Paste HTML code or text

    Copy the text or HTML code to transform and paste it into the input field.

  2. 2

    Choose Encode or Decode

    Select Encode to convert special characters into HTML entities (e.g. &, <) or Decode for the reverse process.

  3. 3

    Copy the result

    The conversion is instant and you can copy the transformed text with one click.

FAQ

What are HTML entities?

HTML entities are codes that represent special characters in HTML, like &amp; for '&', &lt; for '<' and &gt; for '>'. They prevent rendering errors in the browser.

When should I use HTML encoding?

Whenever you insert user-generated text into an HTML page, to prevent XSS attacks and ensure the browser correctly displays all characters.

Does decode restore the original text?

Yes, decode converts HTML entities back to original characters, for example '&amp;' becomes '&'.