HTML Entities
Encode and decode HTML entities. Convert special characters to <, &, é and back.
Input
Drag and drop a file here, or
click to select
Output
About this tool
HTML entities are escape sequences that represent special characters in web documents. Characters like <, >, & or accented letters can break markup or render incorrectly if not encoded properly. This tool encodes any text into safe HTML entities (<, &, é) and also performs the reverse: it decodes named, decimal and hexadecimal entities back to their original characters. All processing happens in your browser: no data is sent to external servers, so it is safe to use with sensitive content.
About this tool
HTML entities are escape sequences that represent special characters in web documents. Characters like <, >, & or accented letters can break markup or render incorrectly if not encoded properly. This tool encodes any text into safe HTML entities (<, &, é) and also performs the reverse: it decodes named, decimal and hexadecimal entities back to their original characters. All processing happens in your browser: no data is sent to external servers, so it is safe to use with sensitive content.
Use cases
- Escape HTML code to display it as visible text in tutorials or documentation
- Prepare text with special characters for inclusion in HTML without breaking markup
- Decode entities produced by legacy systems or APIs
- Convert text with accents and symbols to a safe ASCII form
Frequently asked questions
- What are HTML entities and what are they for?
- HTML entities are sequences that start with & and end with ; representing special characters. They let you display reserved characters like < or & without the browser interpreting them as markup, and represent symbols that may not be available in the document's encoding.
- Which characters does this tool encode?
- When encoding, it always escapes the reserved HTML characters (&, <, >, double and single quotes) and converts any non-ASCII character (accents, emoji, symbols) to its numeric entity &#NNN;, which is safe in any encoding.
- Which entity formats can I decode?
- The decoder recognizes common named entities (&, <, é, ©...), decimal entities (é) and hexadecimal entities (é). Unknown or malformed entities are left unchanged so no information is lost.
- Why doesn't &lt; become < directly?
- Decoding happens in a single pass, just like the browser does: &lt; literally means the string <, so it decodes to < and not to <. If you need to decode twice, run the output through the tool again.
Related tools
Base64 Encoder
Encode text to Base64 format. Useful for transmitting binary data through text-only media.
Base64 Decoder
Decode Base64 formatted text to its original value.
URL Encoder
Encode text for safe use in URLs. Converts special characters to %XX format.
URL Decoder
Decode URL-encoded text. Converts %XX format to original characters.