Skip to content

HTML Entity Encoder

Escape text for HTML (< & …) or turn entities back into text.

  • 100% free
  • Runs in your browser

Last reviewed by the OnlineToolPro team

Mode

0 characters

What is the HTML Entity Encoder?

Characters like < and & have special meaning in HTML. Encoding turns them into entities (&lt;, &amp;) so they show as text; decoding turns entities back into normal characters.

How it works

How to use the HTML Entity Encoder

3 simple steps. No experience needed.

What can you use it for?

  • Show code examples on a web page.
  • Make user-entered text safe to place in HTML.
  • Read text full of &amp; and &#39; codes.

FAQ

Frequently asked questions

Which characters are encoded?

& < > " and ' by default. You can also encode every accented letter and symbol as a numeric entity.

Other tools you might find useful next.

More Developer Tools

Format, convert and check code and data. 9 free tools.

Browse Developer tools
Other categories:YouTubeTextImagesPDFs