Current toolHTML entity encoder & decoder
Encoding · ENC-03Submit an issue

HTML entity encoder & decoder

Safely encode or decode HTML special characters and named entities.

HTML special characters · Named entities
Input
Output
Usage guide and examples

Set the input and check the result

Choose encode or decode and enter an HTML fragment. Encoding escapes &, <, > and both quote types. For example, <b>&</b> becomes &lt;b&gt;&amp;&lt;/b&gt; to display tag source as text.

Check the input format and options with this example before using your own data. Random values, file sizes and presentation vary with the input and settings.

Example input and settings

<b>&</b>

What to check in the result

&lt;b&gt;&amp;&lt;/b&gt;