HTML Entity Encode/Decode
Utility Workspace

HTML Entity Encode/Decode

Convert HTML special characters to entities and back

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

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.
Practical Flow

How to Use This Tool

  1. 1
    Select Mode: Choose "Encode" to convert special characters to HTML entities, or "Decode" to convert entities back to characters.
  2. 2
    Enter Your Text: Type or paste your content into the input area. The conversion happens in real-time.
  3. 3
    Copy the Result: Click the copy button to grab the output for your use.
Reference

Example

  • Encoding: <p>Hello & World</p> becomes &lt;p&gt;Hello &amp; World&lt;/p&gt;
  • Decoding: &lt;p&gt;Hello &amp; World&lt;/p&gt; becomes <p>Hello & World</p>
Keep In Mind

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.
More Details

Common HTML Entities

CharacterEntityDescription
&&amp;Ampersand
<&lt;Less than
>&gt;Greater than
"&quot;Double quote
'&#39;Single quote
/&#x2F;Forward slash