Monu Tools

HTML Entity Encoder / Decoder

Encode text to HTML entities or decode entities back to text, UTF-8 safe and client-side.

How to use the HTML Encoder

  1. 01

    Paste your text or HTML.

  2. 02

    Choose Encode (escape the HTML specials), Encode all (also escape non-ASCII) or Decode.

  3. 03

    Copy the result.

Frequently asked questions

What is the difference between Encode and Encode all?

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.

Which entities can it decode?

Named entities like &amp; and &copy;, decimal entities like &#233;, and hexadecimal entities like &#x20AC;. Unknown sequences are left unchanged.

Does it prevent XSS?

Encoding the HTML specials is the core defence against injecting markup. Always encode untrusted text before placing it in HTML.

About this tool

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

We use essential cookies to run the site. With your consent we also load Google AdSense, which sets advertising cookies. See our privacy policy.