HTML Entity Encoder
Encode special characters to HTML entities.
About this tool
When writing HTML or email templates, special characters like <, >, &, and quotes need to be encoded as HTML entities to render correctly. This tool encodes and decodes those entities instantly, without risk of accidentally breaking your markup.
How to use the HTML Entity Encoder
- Paste text with special characters into the input area
- Click Encode to turn characters into HTML entities
- Click Decode to convert entities back to plain text
- Copy the result and paste into your code or template
Features
- Encode all HTML special characters
- Decode HTML entities back to text
- Supports named and numeric entities
- Useful for email templates and HTML injection prevention
- 100% client-side
Frequently asked questions
Is this HTML encoder free?
Yes. Encode and decode HTML entities online for free without any signup.
What is an HTML entity?
An HTML entity is a text representation of special characters that would otherwise be interpreted as markup (e.g., < for < and > for >).
Does it support numeric entities?
Yes. The tool supports both named entities (e.g., &) and numeric entities (e.g., &).
Is my text sent to a server?
No. All encoding and decoding happens entirely in your browser.