MT ToolHub logoToolHub
๐Ÿ”ฃ

HTML Entity Encode / Decode

Encode text to HTML entities or decode them back.

Loading toolโ€ฆ

How to use the HTML Entity Encode / Decode

  1. 1Click Encode or Decode to choose a mode.
  2. 2Paste or type your text into the input box.
  3. 3Copy the converted result from the output box.

About the HTML Entity Encode / Decode

Free online HTML entity encoder and decoder. Convert special characters like &, <, >, " and ' to HTML entities or decode entities back to plain text instantly in your browser.

Part of our Developer Tools collection. Browse all tools.

Frequently asked questions

Which characters get encoded?
Encoding converts the five HTML-sensitive characters & < > " and ' into their entity equivalents &amp; &lt; &gt; &quot; and &#39; so they display as literal text instead of being parsed as markup.
Does decoding handle named and numeric entities?
Yes. Decoding uses the browser's native HTML parser, so it correctly resolves named entities like &amp; and &copy; as well as numeric entities like &#39; and &#x27;.

More Developer Tools

Popular tools