HTML entity encoder and decoder

All conversion happens in your browser. util.work does not see your text.

Raw

HTML-entity encoded

What this HTML entity tool does

This page encodes the reserved HTML characters (&, <, >, ", ') as entities and decodes named or numeric entities back to their original characters.

When to encode entities

Encode user-supplied text before injecting it into HTML to avoid breaking the markup or introducing XSS. Modern templating engines do this automatically, but raw concatenation still shows up in scripts and emails.