HTML Entity Encoder
Escape special characters as HTML entities.
Your data is processed in your browser and is not uploaded to our servers.
About the HTML Entity Encoder
HTML Entity Encoder converts characters such as <, >, & and quotes into safe HTML entities so text can be displayed in web pages without being interpreted as code. Optionally encode all non-ASCII characters.
How to use the HTML Entity Encoder
- Paste the text or code.
- Choose whether to encode all non-ASCII characters.
- Copy the encoded output.
Frequently asked questions
Why encode HTML?
To display code examples and to prevent user text from breaking the page or creating security problems.
Should I encode Arabic text?
Normally no. With UTF-8 pages, Arabic displays correctly without encoding.