HTML Encoder

Escapes &, <, >, ", and ' to their HTML entity equivalents. Runs entirely in your browser — nothing is sent to a server.

Ad placeholder: Resp_Horizantal_1 (horizontal)
Ad placeholder: Resp_Square_1 (square)

Escapes &, <, >, ", and ' to their HTML entity equivalents. Runs entirely in your browser — nothing is sent to a server.

Use cases

  • Safely displaying user-submitted text inside HTML
  • Preparing a code snippet to be shown inside a <pre> block

Examples

A tag with an attribute and an apostrophe

<div class="a">Tom & Jerry's</div>
&lt;div class=&quot;a&quot;&gt;Tom &amp; Jerry&#39;s&lt;/div&gt;

FAQ

Is my data sent to a server?

No — this tool runs entirely in your browser.