Encode text to HTML entities or decode entities back to text, UTF-8 safe and client-side.
How to use the HTML Encoder
Paste your text or HTML.
Choose Encode (escape the HTML specials), Encode all (also escape non-ASCII) or Decode.
Copy the result.
Frequently asked questions
Encode escapes only the five characters that must be escaped in HTML (& < > " '). Encode all additionally turns every non-ASCII character into a numeric entity, useful for legacy systems or email.
Named entities like & and ©, decimal entities like é, and hexadecimal entities like €. Unknown sequences are left unchanged.
Encoding the HTML specials is the core defence against injecting markup. Always encode untrusted text before placing it in HTML.
An HTML entity encoder and decoder for escaping special characters so they display as text instead of being parsed as markup.
Encoding always escapes & < > " and ', with an option to encode every non-ASCII character as a numeric entity. Decoding supports named, decimal and hexadecimal entities.
Related tools
Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text, right in your browser.
Convert colors between HEX, RGB and HSL with a live preview.
Convert Unix timestamps to human dates and back — UTC, local, ISO 8601 and relative time. Seconds and milliseconds are auto-detected.
Percent-encode and decode URLs and URL components, UTF-8 safe.
We use essential cookies to run the site. With your consent we also load Google AdSense, which sets advertising cookies. See our privacy policy.