HTML entity converter

0 uploads — runs entirely in your browser, works offline

Result

Convert HTML entities, privately

Encode text into HTML entities — or decode entities back into plain text — right on this page. It escapes the five special characters (&, <, >, ", ') and decodes named plus numeric references (decimal and hex). Everything runs in your browser: 0 uploads, works offline, so your text never touches a server.

How to use it

  1. Paste or type your text into the box.
  2. Choose Encode to turn special characters into entities, or Decode to turn entities back into characters.
  3. The result updates live as you type.
  4. Copy the output, or clear the box and paste something new.

FAQ

How do I encode HTML special characters?

Paste your text and pick Encode — this page replaces &, <, >, " and ' with their safe entity forms (&amp;, &lt;, &gt;, &quot;, &#39;) so the text renders as literal characters instead of markup. It runs entirely in your browser, with no upload and no sign-up, and works with your Wi-Fi off.

How do I decode HTML entities back into text?

Choose Decode and paste text that contains entities. This page turns the five named entities (plus &apos;) back into characters, and also resolves numeric references — decimal like &#128512; and hexadecimal like &#x1F600; — into the character they represent. Unknown entities such as &nbsp; are left exactly as they are.

Why should I escape &, < and >?

Left raw in HTML, these let a browser read your text as tags or attributes, which breaks the page or opens the door to injection. Encoding them as &amp;, &lt; and &gt; makes the browser show the characters literally, so user-supplied text is displayed safely.

Does encoding then decoding give me my text back?

Yes. Encoding escapes only the five special characters and decoding reverses exactly those, so a round trip returns your original text unchanged — nothing else in the string is altered.

Is my text sent anywhere?

No. Encoding and decoding happen locally and nothing is stored — that's the point. Your text never leaves the page.

Limits

Encodes the five HTML-special characters (&, <, >, ", ') and decodes those named entities plus &apos; and numeric references (decimal and hex). It does not expand the full HTML5 named-entity set — an entity like &nbsp; or &copy; passes through unchanged on decode rather than becoming a space or a ©.

Related

For working with markup alongside this, the JSON formatter and other text tools pair naturally.

Bookmark this page (Ctrl+D, or ⌘D on Mac) or install the app — it works offline the next time you need it.