Skip to content
HandyBrowserTools

HTML Encode / Decode

Paste text to escape HTML special characters (< > & " ') into entities, or paste HTML-encoded text to decode named and numeric entities back to plain text.

Private by default: processing stays on your device

Example: encode

Input

<a href="/">Tom & Jerry</a>

Output

&lt;a href=&quot;/&quot;&gt;Tom &amp; Jerry&lt;/a&gt;
Share this page X LinkedIn Reddit

These buttons share the page link, not your input.

Frequently asked questions

When do I need to encode HTML?

Whenever untrusted or literal text is placed inside HTML, encoding < > & prevents it from being interpreted as markup and is the first line of defense against XSS.

Which entities can be decoded?

All numeric entities (&#65; and &#x41;) plus common named entities like &amp;, &lt;, &nbsp;, &copy; and &mdash;.

Is my content uploaded?

No, encoding and decoding run entirely in your browser.

URL Encode / Decode

URL-encode or decode text online (percent encoding). Choose between encoding a full URL or a query component, free and 100% client-side.

Base64 Encode / Decode

Free online Base64 encoder and decoder. Unicode-safe, supports URL-safe Base64, and runs 100% in your browser. Nothing is ever uploaded.

Markdown Preview

Free live Markdown preview with a side-by-side editor. GitHub-flavored rendering and instant updates, 100% in your browser, no uploads.