Encode special characters to HTML entities or decode entities back to plain text. Named and numeric entities, non-ASCII mode, reference table, and swap — all in your browser.
Also searched as: html entity encoder · html entity decoder · html escape online · html special characters encoder
| Character | Entity | Name | Copy |
|---|---|---|---|
| & | & | Ampersand | |
| < | < | Less than | |
| > | > | Greater than | |
| " | " | Double quote | |
| ' | ' | Apostrophe | |
| ␣ | | Non-breaking space | |
| © | © | Copyright | |
| ® | ® | Registered | |
| ™ | ™ | Trademark | |
| € | € | Euro | |
| — | — | Em dash | |
| … | … | Ellipsis |
Step-by-step guide to get the most from this tool
Select Encode to escape characters, or Decode to convert entities back to text.
Paste plain text or HTML entities in the input area.
In encode mode, choose named vs numeric entities and non-ASCII handling.
Copy the output, or use Swap to flip input/output and toggle mode.
What makes this tool stand out
Single tool for both directions.
Optional full Unicode entity encoding.
Click to copy common entities.
Flip input/output in one click.
Encode options in the URL hash.
100% client-side — no server calls.
More free utilities you might find useful
Quick answers to common questions
HTML entities represent special characters using codes like < for < and & for &. They prevent browsers from interpreting markup in plain text.
Encode user-supplied text before inserting it into HTML to prevent XSS attacks and broken markup.
Named entities like & are human-readable. Numeric entities like & or & work for any Unicode code point.
The decoder uses the browser DOM to resolve entities safely — no network requests are made.
Yes. Enable "Encode all non-ASCII characters" to convert emoji, accented letters, and symbols to numeric entities.
No. All encoding and decoding runs entirely in your browser.
Your data is processed entirely in your browser. Nothing is sent to any server.