Home/HTML Entity Converter

HTML Entity Converter

Convert special characters to HTML entity codes or back.

How to use the HTML Entity Converter

  1. Paste your text or HTML code into the box.
  2. Convert special characters such as < > & to entities with Encode, and back with Decode.
  3. Copy the result.

Frequently Asked Questions

What is an HTML entity?

They are codes that let special characters be written safely in HTML: &lt; for <, &amp; for &, &nbsp; for a non-breaking space, and so on.

When should I use entities?

When you want to show HTML code as text on a page (for example in a tutorial) and when printing user-supplied text on a page. On UTF-8 pages, accented characters can be written without converting them to entities.

Is my text sent to a server?

No. Everything happens in your browser; the text or code you paste is never sent to any server.