HTML Entity Encode/Decode

HTML Entity Encode/Decode

Convert HTML special characters to entities and back

Client-sideNamed EntitiesReal-time
Output will appear here...

What are HTML Entities?

HTML entities are special codes used to display reserved characters in HTML. Characters like <, >, &, and " have special meaning in HTML and must be encoded as entities to be displayed literally on a web page. For example, the less-than sign (<) is written as &lt; in HTML source code.

How to Use this Tool
  1. Select Mode: Choose "Encode" to convert special characters to HTML entities, or "Decode" to convert entities back to characters.
  2. Enter Your Text: Type or paste your content into the input area. The conversion happens in real-time.
  3. Copy the Result: Click the copy button to grab the output for your use.
Examples
  1. Encoding: <p>Hello & World</p> becomes &lt;p&gt;Hello &amp; World&lt;/p&gt;
  2. Decoding: &lt;p&gt;Hello &amp; World&lt;/p&gt; becomes <p>Hello & World</p>
Common HTML Entities
CharacterEntityDescription
&&amp;Ampersand
<&lt;Less than
>&gt;Greater than
"&quot;Double quote
'&#39;Single quote
/&#x2F;Forward slash
Important Note:

All processing happens entirely in your browser. No data is sent to any server, making this tool safe for handling sensitive HTML content.


Explore More