HTML Entity Converter

HTML Special Character Entity Encoding and Decoding

Browser local processingInputs and files are not uploaded to our serverData processing

HTML Entity Converter

<section class="note">Tom & Jerry said "hello"</section>
Instructions

Convert HTML Entities

Use when HTML displays abnormally or when you need to safely display angle brackets and special characters.

1Paste HTML or entity text
2Select encode or decode
3Copy conversion result
After completionGet displayable or readable HTML text.Paste text first

Distinguish displayed text from executable markup

HTML entities let special characters appear as text. Documentation can display a tag instead of having the browser interpret it as an element.

An example to check

Input and settings

<b>Tom & Jerry</b>

Expected result

&lt;b&gt;Tom &amp; Jerry&lt;/b&gt;

Encoding converts angle brackets and & into entities. Decoding restores the source, but inserting that result into HTML still requires context-appropriate handling.

Scope and limitations

  • Entity encoding is not complete XSS protection. HTML text, attributes, JavaScript and URL contexts require different rules.
  • Encoding twice turns &lt; into &amp;lt;. Identify the current representation before repeating transformations.

Does a result differ from this reference? Share steps without private data. Report a problem