HTML Entity Encode & Decode
Convert special characters like &, <, > to HTML entities (&, <, >), or decode them back.
Features
How to Use
1. Pick Encode or Decode.
2. Paste your text into the input.
3. The result appears on the right — click Copy.
About this tool
In HTML, characters like <, > and & have special meaning, so showing them as text requires entities such as <, > and &. Encoding user-provided text this way is also one of the basic defences against cross-site scripting when inserting content into a page. This tool converts the five reserved characters — & < > " ' — and every non-ASCII character into entities: Named mode uses readable forms like é and © where they exist, and Numeric mode writes codes like é for everything. Decoding turns any named or numeric entity back into the real character. It is handy for preparing code samples for blog posts, fixing double-encoded text in a CMS, or reading escaped strings from an API response.