HTML Entities
Encode special characters as HTML entities, or decode & and ₹ back to text.
Runs on your device. Files are never uploaded.How to use HTML Entities
- Paste text or HTML
- Choose encode or decode
- 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
How to convert Markdown to HTML safely
Turn Markdown into clean HTML with headings, lists, links and code blocks, and see how unsafe HTML and links are handled.
How to encode and decode HTML entities (&, <, ₹)
Make text safe to show inside HTML by encoding special characters, or decode entities back to normal characters, with an option for accents and emoji.
How to minify CSS and how much it really saves
Minify CSS by removing comments and whitespace, learn what is safe, and combine it with compression for faster pages.