100% Local Browser Processing · Zero Data Leaves Your Device

HTML Entity Encoder & Decoder

Safely escape HTML characters for code snippets and templates, or decode named and numeric HTML entities back into readable text.

Input 0 chars
Output 0 chars
Ready — 100% client-side processing.

Example: Escaping HTML for Documentation

Convert <script>alert('hi')</script> into &lt;script&gt;alert(&#39;hi&#39;)&lt;/script&gt; or decode scraped entities back to UTF-8.

Frequently Asked Questions

Does it decode numeric (&#169;) and hex (&#x27;) entities?

Yes, both named entities and decimal/hexadecimal numeric character references are supported.

Is it safe for untrusted HTML?

Yes, SafeParse processes text purely with string/regex operations without injecting it into the DOM.

Related Browser-Local Tools