HTML Encode
Escape HTML entities to safely display raw markup as text.
Raw HTML
Encoded Entities
output appears here
Related Tools
Frequently Asked Questions
Which characters get escaped?▾
& < > " and ' — the five characters that have special meaning in HTML markup or attribute values.
When do I need this?▾
Whenever you're displaying user-supplied or arbitrary text inside HTML and want it to render as literal text rather than be interpreted as markup — a basic defense against unintentionally broken (or malicious) markup.
Is my data uploaded anywhere?▾
No — encoding runs entirely in your browser.