HTML Entities Encoder / Decoder

Escape characters into safe HTML entities, decode them back, or browse a cheat sheet of common codes.

Raw HTML Text
Encoded Output

Common Entities Cheat Sheet

Quick reference for the most commonly used HTML character codes.

PreviewNamed EntityNumeric CodeDescriptionCopy
<
&lt;&#60;Less-than sign
>
&gt;&#62;Greater-than sign
&
&amp;&#38;Ampersand
"
&quot;&#34;Double quote
'
&apos;&#39;Single quote
 
&nbsp;&#160;Non-breaking space
©
&copy;&#169;Copyright sign
®
&reg;&#174;Registered sign
&trade;&#8482;Trademark sign
&euro;&#8364;Euro sign
£
&pound;&#163;Pound sign
¥
&yen;&#165;Yen sign
°
&deg;&#176;Degree sign
±
&plusmn;&#177;Plus-minus sign
×
&times;&#215;Multiplication sign
÷
&divide;&#247;Division sign
&ndash;&#8211;En dash
&mdash;&#8212;Em dash
&lsquo;&#8216;Left single quote
&rsquo;&#8217;Right single quote
&ldquo;&#8220;Left double quote
&rdquo;&#8221;Right double quote
&hellip;&#8230;Horizontal ellipsis
&rarr;&#8594;Right arrow
&larr;&#8592;Left arrow

HTML Entities Encoder, Decoder & Cheat Sheet

Properly escaping HTML is critical for preventing Cross-Site Scripting (XSS) attacks. Our free online HTML Entities Encoder & Decoder allows you to instantly escape reserved characters (like < and >) into safe text. It also includes a searchable cheat sheet for common typography symbols, math operators, and currency signs.

Security First: When you allow users to input text (like a comment or profile bio), you must encode that text before displaying it back on a web page to prevent malicious scripts from executing.

Core Features

  • Bidirectional EncodingEasily convert raw HTML strings (like <script>) into escaped entity strings (like &lt;script&gt;), or decode entities back into raw text.
  • Comprehensive Cheat SheetDon't remember the code for a copyright symbol (&copy;) or an em-dash (&mdash;)? Use our built-in reference table to find the exact name or decimal code you need.
  • Local ProcessingLike all our tools, processing is done securely within your local browser environment.

Common Reserved Characters

CharacterEntity NameDescription
<&lt;Less than (Starts an HTML tag)
>&gt;Greater than (Ends an HTML tag)
&&amp;Ampersand (Starts an HTML entity)
"&quot;Double quote (Wraps attribute values)

Frequently Asked Questions

What are HTML Entities?
In HTML, certain characters have special meaning. For example, the less-than sign (<) is used to start HTML tags. If you want a browser to display the actual character < instead of trying to parse it as code, you must replace it with its corresponding entity reference (&lt;).
Why use entity names vs entity numbers?
An entity name (like &copy; for the copyright symbol) is generally easier for a developer to remember and read in source code. An entity number (like &#169;) works exactly the same way and often has slightly better browser compatibility for extremely obscure symbols, but for common characters, names are preferred.