HTML Entity Encoder / Decoder
Encode special characters to HTML entities (<, >, &) and decode HTML entities back to readable text.
HTML to Encode
Encoded Output
Entities to Decode
Decoded Output
📄 Common HTML Entities
${[
['<','<','Less than'],
['>','>','Greater than'],
['&','&','Ampersand'],
['"','"','Double quote'],
[''',"'",'Apostrophe'],
[' ',' ','Non-breaking space'],
['©','©','Copyright'],
['®','®','Registered'],
['™','™','Trademark'],
['—','—','Em dash'],
['–','–','En dash'],
['…','…','Ellipsis'],
].map(([e,c,n]) => ``).join('')}
${escHtml(e)}${c === ' ' ? ' ' : c}${n}