HTML Entity Encoder / Decoder
Encode and decode HTML entities online. Convert special characters to named, decimal, or hex entities. Free, client-side, no data uploaded.
Common HTML Entities Reference
<>&"' ©®™€£¥°—–…←→×÷HTML entity encoding explained
HTML entities replace characters that are reserved in HTML or not available on standard keyboards. The five mandatory encodings are: < for <, > for >, & for &, " for double quotes inside attributes, and ' for single quotes. Using raw < or & in HTML content can break the parser or create security vulnerabilities (XSS).
Encoding modes
- Named entities use human-readable names like © and ™. Not all characters have named entities.
- Decimal entities use the Unicode code point number, like © for the copyright sign. Works for any character.
- Hex entities use the hexadecimal code point, like ©. Preferred in XML and newer HTML specs.
Frequently Asked Questions
Is my data sent to a server? No. All encoding and decoding happens entirely in your browser. Nothing is uploaded.
Which encoding mode should I use? Named entities are the most readable for common characters. Use decimal or hex when you need to encode characters that do not have named entities, or when working with XML/XHTML.