SmartTechnology solutions for business

HTML Entity Encoder and Decoder

Convert between characters and the entities used inside HTML.

Direction

Encoding always escapes & < > " and '. Decoding reads number codes and common names such as &nbsp; &copy; &hellip;. An unknown name stays as written.

Your result

Type text or HTML and the result appears here.

How to use it

  1. Choose encode or decode.
  2. Paste the text or press Try a sample.
  3. Copy the result.

Examples

  • A tag<b class="x"> &lt;b class=&quot;x&quot;&gt;
  • A common name&copy; 2026 © 2026
  • A number code&#x1F600; 😀
Tool details and privacy

Turn <p> into &lt;p&gt; to show code on a page, or decode &amp;quot; and friends to read the text. You can also turn Arabic letters and emoji into number codes.

Showing HTML code inside a page, or reading text that an editor escaped, needs this conversion.

Options

  • Encoding always escapes & < > " and '.
  • An optional switch turns every non-English character into &#x…;.
  • Decoding reads decimal and hex codes and about forty common names.

Limits

  • An unknown name stays as written.
  • The result is shown as text and never inserted into the page as HTML.

Privacy

What you type stays in your browser. Nothing is uploaded or saved on the server.

Questions

Do I need to encode Arabic?

Usually not; UTF-8 pages show it as is. Turn the switch on only when asked to.

What is the difference between &#39; and &apos;?

Both are an apostrophe; encoding here uses &#39; because it works everywhere.

Is the HTML run?

No.

Is the text uploaded?

No.

Related tools

All tools