HTML Entity Encoder
To encode HTML entities, paste text: < > & " and ' are converted to < > & " and ' so the text displays literally instead of being treated as HTML. An option also converts every non-ASCII character to a named or numeric entity.
- Free
- No signup
- Runs in your browser
How to use HTML Entity Encoder
- 1Type or paste your input into the HTML Entity Encoder.
- 2Choose any options you need.
- 3See the result update instantly.
- 4Copy the result or download it.
HTML Entity Encoder: questions people ask
Does this prevent XSS?
Escaping these five characters is the core of HTML-context output encoding, but attributes, URLs and scripts need context-specific escaping too. Use your framework's built-in escaping.
Do I need to encode accented letters?
Not if your page is UTF-8. Encoding them is only needed for old systems that are not.
Is my data uploaded when I use the HTML Entity Encoder?
No. The HTML Entity Encoder runs entirely in your web browser, so your text and numbers stay on your device and work even on a slow connection.
Does the HTML Entity Encoder work on iPhone, Android and Mac?
Yes. The HTML Entity Encoder runs in any modern browser (Safari, Chrome, Edge or Firefox) on iPhone, iPad, Android phones, Mac, Windows and Chromebook. There is no app to install.
Is the HTML Entity Encoder free?
Yes. The HTML Entity Encoder is free with no signup, no watermark and no daily limit.