is inserted into HTML unencoded, the script executes. Encoding prevents this."}}, {"@type": "Question", "name": "What is the difference between named and numeric entities?", "acceptedAnswer": {"@type": "Answer", "text": "Named entities like & are human-readable. Numeric like & use the Unicode code point. Both display identically in browsers."}}, {"@type": "Question", "name": "Does encoding affect how text looks to users?", "acceptedAnswer": {"@type": "Answer", "text": "No. < displays as < in the browser. Encoding is transparent to the user."}}, {"@type": "Question", "name": "Can encoding protect email addresses from spam bots?", "acceptedAnswer": {"@type": "Answer", "text": "Encoding All converts emails to numeric entities. Basic bots cannot parse this, but sophisticated scrapers can decode entities."}}, {"@type": "Question", "name": "What characters must always be encoded?", "acceptedAnswer": {"@type": "Answer", "text": "& (becomes &), < (becomes <), > (becomes >), \" (becomes ") and ' (becomes ') must always be encoded in HTML contexts."}}]}
Encode and decode HTML entities online free. Convert <, >, &, " and special characters to HTML entities and back. Encode all characters as numeric entities. No signup.
Built for real developer workflows. No fluff, just the tools you need.
Converts <, >, &, " and ' to their safe entity equivalents. Essential for embedding user content safely.
Converts HTML entities back to their original characters. Handles all named and numeric entities.
Converts every character to NNN; numeric entities — useful for obfuscating email addresses.
Encoding user input before inserting it into HTML is a fundamental defence against Cross-Site Scripting attacks.
Encoding and decoding runs in JavaScript with no server contact.
Your HTML templates never leave your browser.
Get results in seconds — no account, no file upload required.
Paste the content you want to encode or decode.
Encode converts special chars to entities. Decode reverses the process. Encode All uses numeric entities for every character.
Click Copy to copy the output.
Every tool at itsseven is free, private and browser-based.