Turn character references into readable text
HTML character references represent characters using notation such as &, &, or &. Each of these represents an ampersand. This HTML entity decoder reads named and numeric references and shows the result as plain text. It is useful when a copied snippet, exported field, or API value contains entity notation you need to inspect.
The input and example result are present immediately. JavaScript is needed to decode your own sample, load another example, or use Copy.
How to use the HTML entity decoder
- Paste a sample into Input. References must end with a semicolon on this page.
- Read the Decoded text result. Named references use the browser's HTML character-reference rules; decimal and hexadecimal references are supported too.
- Press Copy to copy the text, or Reset to clear the workbench. Your original input is not overwritten.
The result is never inserted as live markup. A decoded <strong> or <script> sequence is shown literally; it does not become a formatted element or execute code.
Compare three kinds of references
Named entities
Tom & Jerry becomes Tom & Jerry. Other named references include <, >, ", ©, and . Named references can be case-sensitive, so use the spelling expected by HTML.
Decimal numeric references
ABC becomes ABC. Decimal references describe Unicode code points using base-ten numbers. The character produced follows browser HTML parsing rules, including replacement behavior for invalid numeric values.
Hexadecimal numeric references
世界 becomes 世界. A supplementary character can also use one numeric reference: 😀 becomes 😀. These are character references rather than UTF-8 byte sequences.
One pass keeps encoding layers visible
Input &lt; becomes < after one pass. It does not immediately become <. This lets you inspect a second encoded layer before deciding whether to decode again. Unknown reference names remain unchanged and are reported in the status line. A string without references also remains unchanged.
This tool deliberately requires a terminating semicolon. It does not try to reproduce every context-dependent rule for incomplete references in an entire HTML document. It is a text decoder, not a full document renderer or an HTML sanitizer. Copying decoded text into another application may give it a different meaning, so use that application's escaping and validation rules.
Keep spaces and characters in context
A decoded is a non-breaking space, not an ordinary space. Use the invisible character detector to inspect spacing and joiners before changing stored data. Percent escapes such as %26 belong in the URL decoder; backslash escapes and U+ notation belong in Unicode to text. Return to the Unicode converter for additional byte and character views. Processing is local to your browser.