HTML Entity Encoder

Encode and decode HTML entities in text

What is an HTML Entity Encoder/Decoder?

An HTML entity encoder/decoder is a free online tool for converting between characters and HTML entities. It encodes special characters as entities for safe display in HTML, or decodes entities back into their original characters. All processing happens in the browser.

How to encode HTML entities

Paste your text into the input field. Select the encode mode. The tool converts characters such as <, >, &, " and ' into HTML entities.

How to decode HTML entities

Paste text containing HTML entities into the input field. Select the decode mode. The tool converts entities such as &lt;, &gt; and &amp; back into their original characters.

Common HTML entities

  • &lt; - Less-than sign (<)
  • &gt; - Greater-than sign (>)
  • &amp; - Ampersand (&)
  • &quot; - Double quote (")
  • &apos; - Single quote (')
  • &nbsp; - Non-breaking space

Frequently Asked Questions

What are HTML entities?+
HTML entities are codes used to display reserved characters or characters that are not easy to type on a keyboard in HTML. For example, < becomes &lt;, > becomes &gt;, and & becomes &amp;.
How do I encode HTML entities?+
Paste your text into the input field. Select the encode mode. The tool converts special characters into HTML entities.
How do I decode HTML entities?+
Paste text containing HTML entities into the input field. Select the decode mode. The tool converts the entities back into their original characters.
Why do I need to encode HTML entities?+
Some characters have special meaning in HTML (like < and > for tags). To display them on a page, they must be encoded as entities, otherwise the browser interprets them as HTML.
What is the difference between named and numeric entities?+
Named entities use names (like &lt;), while numeric entities use character codes (like &#60;). They are equivalent, but named entities are easier to read.
Is HTML entity encoding safe?+
Yes. This tool encodes and decodes HTML entities locally in the browser. No data is sent to any server.

Related Tools

HTML Entity Encoderfree online html entity encoder, html entity decoder, html escaping, html unescaping, html entity conversion, special character encoding, html entity reference, html character escaping. No signup required. Works in your browser.