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 |
|---|---|---|---|
| < | < | < | Less than |
| > | > | > | Greater than |
| & | & | & | Ampersand |
| " | " | " | Double quotation mark |
| ' | ' | ' | Single quotation mark |
| © | © | © | Copyright |
| ® | ® | ® | Registered trademark |
| € | € | € | Euro |
|   | 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 '<h1>' so it doesn't render as a header.
What is decoding?
Decoding is the reverse process: it takes HTML entities like '&' 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.