Curated picks
HTML entity encode & decode
Align escaped output with what your stack expects before you paste into HTML or JSX.
Try it
HTML entity encode & decode
Encode plain text to basic HTML entities (&, <, …) or decode entity references back to characters. Useful for snippets, CMS previews, and templates.
Entities vs URL encoding
HTML entities represent characters like < and & so they can appear in HTML source without being parsed as markup. URL percent-encoding is different — use the URL tool for query strings.
Safety
Escaping user input before insertion reduces accidental HTML injection, but it is not a substitute for framework defaults, Content Security Policy, and server-side validation for untrusted content.
Privacy
Conversion runs in your tab; we do not receive your text.