InTab

HTML Entities

Escape and unescape HTML entities.

Encoders: Escape, encode and decode text. It runs in your browser, so nothing you enter is uploaded.

What it does

The HTML Entities tool escapes text so it can be shown safely inside HTML, and unescapes entities back to plain characters. You can escape only the five special characters or also turn non-ASCII characters into named or numeric entities.

How to use it

  1. Type or paste into Text / HTML to escape, or paste into Escaped HTML to unescape.
  2. Choose what to escape:
    • Only & < > " ': the characters that have a meaning in HTML.
    • Basic + non-ASCII as named: also © → &copy;, € → &euro; and so on.
    • Basic + non-ASCII as numeric: non-ASCII as &#NNNN;.

Example

Input Escaped
<a href="x">Tom & Jerry</a> &lt;a href=&quot;x&quot;&gt;Tom &amp; Jerry&lt;/a&gt;
© 2026 – 10 € (named) &copy; 2026 &ndash; 10 &euro;

Good to know

  • Escaping is how you show code examples on a web page, and how to stop text typed by users from being run as HTML.
  • With UTF-8 pages, non-ASCII characters do not need escaping; the basic five are enough.
  • Unescaping understands named, decimal and hex entities.

FAQ

What is the difference between &#39; and &apos;? Both are an apostrophe. &#39; works in every version of HTML; &apos; was not part of HTML 4.

Is escaping enough to prevent XSS? It is the right step for text placed between tags. Values placed in URLs, scripts or styles need their own encoding, which your framework's templating normally handles.

More Encoders tools

  • Unicode Escape: Encode and decode JSON or XML text to Unicode escapes (\uXXXX, &#x…;).
  • Base64: Encode and decode Base64 text and files (URL-safe supported).
  • Image to Base64: Turn an image into a Base64 data URL, raw Base64, CSS, HTML or Markdown.
  • Base64 to Image: Paste Base64 or a data URL to see the image and download it.
  • URL Encoder: Percent-encode and decode URLs; parse URL parts and query parameters.
  • JWT Encoder / Decoder: Decode, verify and sign JSON Web Tokens: HS, RS, PS, ES and EdDSA, with key generation.