HTML Entities

Encode special characters as HTML entities, or decode & and ₹ back to text.

Runs on your device. Files are never uploaded.
Report a problem

How to use HTML Entities

  1. Paste text or HTML
  2. Choose encode or decode
  3. Copy the result

About this tool

Make text safe to show inside HTML, or read a page source full of & and <. Optionally encode accented letters and symbols as numeric entities. Runs locally.

Like every tool on YantraStack, it is free with no accounts, limits or watermarks, and it works offline once the page has loaded. See how to verify that nothing is uploaded.

Questions

Is encoding enough to stop XSS?

Encoding text before putting it into HTML helps, but the right method depends on where it goes (HTML, attribute, URL, script). Use your framework’s escaping.

Guides

Related tools

↑ ↓ navigateEnter openEsc close