HTML Entity Encoder
Escape & unescape HTML entities.
&
HTML Entity Encoder
Interactive Tool
Input
Output
Encode or decode HTML entities entirely in your browser:
- Encode - escapes
& < > " 'to& < > " 'so text can be safely embedded in HTML. Tick Non-ASCII to also convert every non-ASCII character (Chinese, emoji, accented letters) to numeric entities like中. - Decode - resolves named entities (
,©,€…) and numeric entities (©,©, emoji) back to characters. Decoding uses aDOMParser, so scripts are never executed. - Live - conversion updates as you type; switch mode or toggle Non-ASCII any time.
- Copy / Clear - copy the output or reset both panes.
Everything runs locally - your data never leaves your device.