🔤HTML Entity Converter

Encode special characters to HTML entity codes, or decode entities back to readable text.

How to Use the HTML Entity Converter

When writing HTML, characters like < > & " ' can break page rendering if used directly. This tool converts them to safe entity codes (&lt; &gt; &amp; &quot; &#39;) or decodes entity codes back to their original characters. Useful for web development, embedding code snippets in blog posts, and building email templates. Paste your text, click Encode or Decode, and copy the result.

Frequently Asked Questions

What is an HTML entity?

An HTML entity is a code used to display reserved characters safely in HTML. For example, < becomes &lt;, > becomes &gt;, and & becomes &amp;.

What is the difference between encoding and decoding?

Encoding converts special characters into entity codes so they display correctly in HTML. Decoding reverses that process, turning entity codes back into readable characters.

Which characters are converted?

Encoding converts < > & " '. Decoding handles all named and numeric HTML entities using the browser's built-in parser.