All tools · 📐 Format / Inspect

🔡 HTML Entities Encoder

HTML entities like &, <, >, " let you embed reserved characters in HTML safely. This tool encodes plain text into entities, or decodes entity-encoded HTML back to plain text. Useful when preparing user content for safe display.

Loading tool…

Examples

Escape HTML
Input<script>alert(1)</script>
Output&lt;script&gt;alert(1)&lt;/script&gt;
Display special characters
InputAT&T © 2026
OutputAT&amp;T &copy; 2026
Decode entities
InputTom &amp; Jerry
OutputTom & Jerry

Frequently asked questions

When do I need to escape HTML?

Anytime you embed untrusted text inside an HTML document. Failing to escape is the #1 cause of XSS vulnerabilities.

Should I use named or numeric entities?

Named entities (&amp;) are more readable. Numeric (&#38;) work for any Unicode codepoint. Modern HTML accepts both equally.

Will my framework do this for me?

React, Vue, Svelte all auto-escape interpolated values. Manual escaping is mostly for hand-rolled HTML generation or email templates.

About this tool

HTML Entities Encoder runs entirely in your browser using standard Web APIs. No data is sent to any server. The source for this tool is in our public GitHub repository.

Related tools

← All 96 tools

Why this tool

vs typical free web-tool sites

1vwTypical free site
PriceFreeFree
Signup requiredNoOften (for premium features)
Ads inside the toolNoYes (banner + video)
Data sent to serverNo (browser-only)Yes (inputs analyzed for ads)
Total tools96Often <20 or scattered across sites
Bookmarkable URL per toolYesMixed
Loads in under 1sYes (static)Often slow (ad tracking)
MultilingualEN / ES / PT / FR / DEUsually EN only
Open sourceYesNo