HTML Entity Encode & Decode

How HTML Entity Encoding Works

HTML entity encoding replaces special characters with their entity representations.

  1. 1

    Identify special characters

    Characters like <, >, &, " and ' are identified in the input.

  2. 2

    Replace with entity references

    Each special character is replaced with its corresponding HTML entity (e.g., < becomes &lt;).

FAQ

What are HTML entities?
HTML entities are special codes used to represent characters that have special meaning in HTML, such as <, >, &, and ". They are written as &name; or &#number;.

Related Tools