HTML entity encoder and decoder
Turn special characters into HTML entities and back, for static HTML and email templates.
Runs in your browser. Nothing you enter is uploaded.
About this tool
This tool turns special characters into HTML entities and decodes entities back to plain text. The basic encode handles &, <, >, double and single quotes, and turns a non-breaking space into . The second option also writes every non-ASCII character as a numeric entity such as ç for ç.
- Which entities can it decode?
- Decoding uses the browser’s own HTML parser, so named entities like … and numeric ones like ’ or ’ all work. Tags in the input stay as text and never become HTML elements.
- When should I encode non-ASCII characters too?
- When the HTML may be read with the wrong character encoding, as can happen in some email templates. Numeric entities show ş or é correctly whatever the declared charset.