HTML Entity Encoder/Decoder
Encode text into HTML entities, or decode HTML entities back into plain text.
Share on Social Media:
Convert special characters into their HTML entity form (e.g. & for &), or decode entities back into plain readable text.
Frequently Asked Questions
When displaying special characters like <, >, &, or quotes inside HTML content without them being interpreted as markup.
< is <, > is >, & is &, " is ", and a non-breaking space is — this tool converts any of these automatically in both directions.
HTML entity encoding of user input before rendering it in HTML is one important defense against XSS, but it's not a complete security solution on its own — proper context-aware output encoding and a Content Security Policy are also recommended.