HTML Decoder Online - Decode HTML Character References
Decode any character references in your string replacing with the correct HTML symbols.
The HTML Decoder is designed to decode HTML character references within a given string and replace them with their corresponding HTML symbols. HTML character references are used to represent special characters, such as symbols, non-English characters, or characters with special meanings in HTML, in a way that can be interpreted and displayed correctly by web browsers. These character references consist of an ampersand (&) followed by a character code or a character name, and then a semicolon (;). For example, the HTML character reference "<" represents the less-than symbol (<), and "&" represents the ampersand symbol (&).
Example 1:
String Input:
HTML Output:
In this example, the HTML Decoder takes a string containing HTML character references and decodes them. The input string represents an HTML heading element <h1> with the text "Welcome to my website!" encoded as < and >. After decoding, the HTML tags are rendered correctly, resulting in the output where the heading is displayed as intended.
Example 2:
String Input:
HTML Output:
In this example, the input string includes two character references (emojis). The HTML Decoder decodes both character references, resulting in the corresponding emojis being displayed in the output string.