HTML Entity Encoder / Decoder

Encode special characters to HTML entities (<, >, &) and decode HTML entities back to readable text.

HTML to Encode
Encoded 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]) => `
${escHtml(e)}${c === ' ' ? ' ' : c}${n}
`).join('')}
☕ Buy me a coffee