HTML Entities Encoder & Decoder

Instantly convert special characters to HTML entities and back. Protect your code from accidental rendering or decode escaped content.

Common HTML Entities

Character Entity Name Entity Number Description
< &lt; &#60; Less than
> &gt; &#62; Greater than
& &amp; &#38; Ampersand
" &quot; &#34; Double quotation mark
' &apos; &#39; Single quotation mark
© &copy; &#169; Copyright
® &reg; &#174; Registered trademark
&euro; &#8364; Euro
  &nbsp; &#160; Non-breaking space

Frequently asked questions

What are HTML entities?

HTML entities are strings of characters used to display reserved characters (like < and >) or invisible characters (like non-breaking spaces) in HTML. They start with an ampersand (&) and end with a semicolon (;).

Why encode HTML entities?

Encoding is necessary to prevent the browser from interpreting special characters as HTML tags. For example, if you want to display the literal text '<h1>', you must encode it as '&lt;h1&gt;' so it doesn't render as a header.

What is decoding?

Decoding is the reverse process: it takes HTML entities like '&amp;' and converts them back into their literal character counterparts ('&').

Are my snippets safe?

Yes. This tool runs entirely in your browser. Your input is processed locally and is never sent to any server.