OpenWebDevTools

search ⌘ + K

HTML Encoder — Escape HTML Special Characters Instantly

Paste your input and get instant output

What Is HTML Encoding?

HTML encoding (or HTML escaping) converts special characters into their corresponding HTML entities so they are displayed as text rather than interpreted as HTML markup. This is critical for:

Common HTML Entity Encodings

Character HTML Entity
& &
< &lt;
> &gt;
" &quot;
' &apos;

HTML Encoding vs. URL Encoding

HTML encoding produces entities like `&amp;` and `&lt;`, used for safe HTML document rendering. URL encoding produces percent-encoded values like `%26` and `%3C`, used for safe URL transmission. Make sure you're using the right encoding for your context.