Text

HTML Entity Encoder/Decoder

Convert special characters to HTML entities (or back again) safely, entirely in your browser useful for escaping user content.

Did this tool save you some time? A quick testimonial helps a lot.

Share your experience

About this HTML Entity Encoder/Decoder

Convert special characters to HTML entities (or back again) safely, entirely in your browser useful for escaping user content.

Usage and privacy

How to use it

Add your input to the workspace above, review the result, then copy or download it when it's ready. No account or installation is required.

Private by design

HTML Entity Encoder/Decoder runs in your browser, so the information you enter stays on your device instead of being uploaded to a server.

HTML Entity Encoder/Decoder examples

A few worked examples so you know what to expect before you paste in your own input.

Encode HTML

Input

<div class="card">

Output

&lt;div class=&quot;card&quot;&gt;
Encode quotes and apostrophes

Input

Tom & Jerry's "Show"

Output

Tom &amp; Jerry&#39;s &quot;Show&quot;
Decode back to text

Input

&lt;script&gt;alert(1)&lt;/script&gt;

Output

<script>alert(1)</script>

Frequently Asked Questions

Related Tools