HTML Encode / Decode
Encode & decode HTML entities
π 100% client-side β your data never leaves this pageInput
Encoded
Encoded output
Previewlive render
About this tool
Convert special HTML characters such as angle brackets, ampersands and quotes into their HTML entity equivalents for safe display in web pages, or decode HTML entities back to readable characters.
Frequently Asked Questions
Why do I need to encode HTML?
If you display user-submitted text directly in HTML, characters like < and > will be interpreted as tags, breaking your layout or creating XSS security vulnerabilities. Encoding converts them to safe entities.
What are the most common HTML entities?
The most important are: & for &, < for <, > for >, " for double quotes, and ' for single quotes.