🏠 Home

🔗 HTML Encoder/Decoder

Encode and decode HTML entities for safe web display

HTML Entity Converter

Common HTML Entities

&
&
<
&lt;
>
&gt;
"
&quot;
'
&#39;
space
&nbsp;

Quick Examples

Hello World!
')">
Original: <div class="example">Hello World!</div>
Click to encode this HTML
')">
Original: <script>alert("XSS");</script>
Security example - script tag
Original: <p>Price: $100 & up</p>
Ampersand encoding example
Encoded: &lt;h1&gt;Welcome to our &quot;Amazing&quot; website!&lt;/h1&gt;
Click to decode this HTML
Why encode HTML?
  • Prevent XSS (Cross-Site Scripting) attacks
  • Display HTML code as text on web pages
  • Safely store user input in databases
  • Ensure proper rendering of special characters