Encode mode: enter text or HTML code on the left, choose entity format (named, decimal &#...;, hex &#x...;, or Unicode \u...) and scope; Decode mode: paste encoded strings to automatically restore them into plain text.
This tool outputs strictly via plain text controls and never evaluates untrusted input via innerHTML, completely eliminating DOM XSS risks; fully supports UTF-16 surrogate pairs and Astral plane Emoji.