๐Ÿ”’ Privacy Safe:All processing is done 100% locally in your browser, nothing is uploaded to the server.

HTML Entity Codec

HTML entity encode/decode with named and numeric entities, essential for XSS-safe escaping.

  • Entity encode
  • Entity decode
  • Named/numeric entities
  • Quote escaping
...

How to use HTML Entity Codec

  1. Paste code๏ผšPaste an HTML snippet or entity string
  2. Convert๏ผšClick encode or decode
  3. Copy & use๏ผšCopy the result into your page or docs

FAQ

What is HTML encoding for?
Encoding turns <>&"' into entities like &lt;&gt;&amp;, stopping browsers from parsing them as tags โ€” a basic XSS defense.
Which entity formats are supported?
Named (&amp;), decimal (&#38;) and hex (&#x26;) entities are all decoded โ€” just paste and restore.
Are quotes escaped?
Yes, quotes are escaped by default, safe to embed user input into HTML attributes and JS strings.