HTML Entity Encoder

Escape <, >, &, and quotes into HTML entities.

Get this result as JSON (developer API)
curl "https://encode.wrapper-agency.com/api/v1/encode?op=html-encode&value=%3Ca%20href%3D%22x%22%3ETom%20%26%20Jerry%3C%2Fa%3E"

Free encode/decode/hash API — no key during beta. Everything is computed locally; nothing you enter is stored.

About HTML Encode

HTML entity encoding replaces the characters that have special meaning in HTML — &, <, >, double-quote, and apostrophe — with their entity equivalents (&amp;, &lt;, &gt;, &quot;, &#39;).

This is the standard way to safely display user-provided text inside an HTML page so the browser renders it as literal text instead of interpreting it as markup.

Encoding these characters is a core defense against accidental layout breakage and HTML injection in templates.

Example

Input<a href="x">Tom & Jerry</a>
Output&lt;a href=&quot;x&quot;&gt;Tom &amp; Jerry&lt;/a&gt;

Use it from code

curl "https://encode.wrapper-agency.com/api/v1/encode?op=html-encode&value=YOUR_TEXT"

Free during beta — no key. See the full API reference.

Related tools