SEOTools.info / Tools / HTML Entity Encoder / Decoder
HTML Entity Encoder / Decoder
Encode text to HTML entities (&, <, >…) or decode entities back to plain text.
Next step: URL Encoder / Decoder →
About the HTML Entity Encoder / Decoder
Encodes text into HTML entities (&, <, > …) so it displays literally instead of being parsed as markup — or decodes entities back to characters. Useful when showing code or user input safely.
What this tool checks
- Encodes reserved characters to entities
- Decodes entities back to text
- Runs in your browser
Frequently asked questions
Why encode HTML entities?
So characters like < and & render as text rather than being interpreted as tags — key for showing code and preventing broken markup.
Does this prevent XSS?
Entity-encoding output is one important defence, but real XSS protection needs proper context-aware escaping in your app.
The full SEO toolkit
Backlinks, rankings, Search Console and more — one free login.