← All text tools

HTML entity encoder / decoder

Escape special characters like < > & as HTML entities, or decode entities back to text.

  • Free
  • No sign-up
  • Works on any device

About HTML entity encoder / decoder

Escape characters such as less-than, greater-than, ampersand and quotes into HTML entities so they display as text instead of being read as markup, or decode entities like &amp; and &copy; back to normal characters. Escaping user input properly is a basic defence against cross-site scripting.

How to use HTML entity encoder / decoder

  1. Type or paste your text in the box above.
  2. The result appears instantly as you type.
  3. Copy the result or download it as a file.

Why use this tool?

Also known as

Frequently asked questions

Why must the ampersand be escaped in HTML?

Because it starts every entity. A raw ampersand can be misread, so write &amp; to show the character itself, especially inside URLs in attributes.

Is HTML entity encoder / decoder free?

Yes. HTML entity encoder / decoder on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Related tools