HTML Entity Encoder/Decoder

Convert special characters to their corresponding HTML entities and vice versa. Essential for displaying code snippets on the web.

Ad Space (Top Banner)
Actions
Options

Common HTML Entities Cheat Sheet

Character Entity Name Entity Number Description
" " " Quotation Mark
' ' ' Apostrophe
& & & Ampersand
< &lt; &#60; Less Than
> &gt; &#62; Greater Than
© &copy; &#169; Copyright
® &reg; &#174; Registered
&trade; &#8482; Trademark
&nbsp; &#160; Non-breaking Space
&larr; &#8592; Left Arrow
&rarr; &#8594; Right Arrow
Ad Space (Bottom Banner)

Why encode HTML entities?

Browsers interpret characters like < and > as HTML tags. If you want to display a code snippet on your website (e.g., <div>), you must "escape" these characters so the browser renders them as text, not code.

How it works

This tool converts reserved characters into their HTML Entity equivalents.