How to Use the HTML Entity Encoder and Decoder: Steps and a Worked Example

By 1 min read

Encode special characters as HTML entities or decode common named and numeric entities. This guide shows what to enter, a worked example, and the limits to keep in mind. The HTML Entity Encoder and Decoder tool is free, needs no account and runs in your browser.

What you need

  • Text or HTML entities, for example <InovoTools & global>
  • Action: choose Encode entities, Decode entities

Step by step

  1. Open the HTML Entity Encoder and Decoder tool.
  2. Fill in Text or HTML entities.
  3. Choose Action.
  4. Read the result, which updates as soon as the inputs change.

Worked example

With these inputs:

  • Text or HTML entities: <InovoTools & global>
  • Action: Encode entities

the tool returns:

&lt;InovoTools &amp; global&gt;

How it works

Replaces common HTML special characters and decodes supported entities. Enter the text or HTML entities and the result appears straight away. Everything runs in your browser, so nothing you type is uploaded.

Things to keep in mind

This is not a complete HTML sanitizer and must not be used as the only defence against XSS.

If this is not quite what you need, try HTML Entity Decoder, Base64 Encoder and Decoder or URL Encoder and Decoder.

More from the blog