This tool escapes characters like < > & and quotes into HTML entities, making text safe to embed in markup — in your browser.
How to use it
- Paste raw text or code.
- Special characters become entities.
- Copy the HTML-safe result.
About HTML Entity Encoder
Displaying code or user text inside HTML requires escaping the characters that have special meaning, or the browser will interpret them as markup. This tool converts &, <, >, double and single quotes into their HTML entities so the text renders literally and safely. It runs entirely in your browser.
FAQ
Which characters are encoded?
Ampersand, less-than, greater-than, double quote and single quote — the characters that matter for safe HTML.
Why escape HTML?
To display code or user input literally and to help prevent cross-site scripting.
How do I decode it?
Use the HTML entity decoder tool.