HTML Encode

HTML Encode

Encode markup so it can be shown as text in HTML.

Try this example

Encode the sample. The angle brackets and ampersand become HTML entities.

<p>Tea & coffee</p>

Expected result

&lt;p&gt;Tea &amp; coffee&lt;/p&gt;

Choose this when displaying markup as a literal example in HTML text. Other output contexts can require different escaping.

Related walkthrough · Prepare a safe test copy before using an online tool

Cookie
We care about your data and would love to use cookies to improve your experience.

Learn how we use cookies