HTML Entity Encoder

Encode ampersands, angle brackets, quotation marks, apostrophes, and non-ASCII characters as uppercase hexadecimal numeric references. Conversion runs in your browser.




Reverse Conversion

HTML Entity Decoder

How This Converter Works

Encodes ampersands, angle brackets, quotes, apostrophes, and non-ASCII Unicode characters as uppercase hexadecimal numeric character references.

Formula or rule

For selected characters, output &#x followed by the uppercase hexadecimal code point and a semicolon; leave other characters unchanged.

Example

Input
A & <é>
Calculation
Escape ampersand, angle brackets, and the non-ASCII character é (U+E9).
Result
A &#x26; &#x3C;&#xE9;&#x3E;