Skip to content
AlroundTools

HTML entity encoder and decoder

Convert special characters to HTML entities and back.

Runs in your browser – your files are not uploaded

How to use HTML entity encoder and decoder

  1. 1

    Choose “Encode” or “Decode”.

  2. 2

    Paste your text or HTML.

  3. 3

    Copy the result.

About HTML entity encoder and decoder

To display code or special characters safely on a web page, characters like <, >, & and quotes must be written as HTML entities.

This tool encodes text for safe use in HTML and decodes named and numeric entities such as &amp;, &#169; or &#x20AC; back to readable text.

Frequently asked questions

Which characters are always encoded?

The five characters with special meaning in HTML: & < > " and '.

Does encoding protect against XSS?

Encoding text for HTML output is an important part of XSS protection, but it must be applied in the right context of your application.