What is HTML Entity Encoding?
HTML entity encoding converts special characters that have reserved structural meanings in HTML (such as `<`, `>`, `&`, `"`, and `'`) into safe entity names or numeric codes (such as `<` and `>`). This prevents web browsers from interpreting user inputs as executable code.
Use our HTML Entity Encoder & Decoder Tool to escape strings safely.
Common HTML Entities
- `<` (Less Than): Encoded as `<`
- `>` (Greater Than): Encoded as `>`
- `&` (Ampersand): Encoded as `&`
- `"` (Double Quote): Encoded as `"`
How to Encode HTML Characters
- Open the HTML Entity Encoder tool.
- Paste your raw HTML string into the input area.
- Click "Encode Entities" to generate safe, escaped HTML code.