Advertisements

headerup to 320x100 / 728x90

HTML Entities <-> Text Converter

Convert text to HTML entities or decode HTML entities back to text in a single bidirectional tool

Mode:
Input
Loading editor...
Output

Output will appear here...

Advertisements

content bottomup to 300x250

What is HTML Entities <-> Text Converter

Last reviewed:

HTML (HyperText Markup Language) is the core markup language for web pages, defining structure and content that browsers render.

HTML Entities <-> Text Converter is a bidirectional tool that encodes text to HTML-safe entities (&amp;, &lt;, &gt;, &quot;, &#39;, plus &#NNN; for non-ASCII characters) or decodes named, numeric, and hex references back to plain text.

It handles the most common named entities (copy, reg, trade, nbsp, hellip, mdash, ndash, smart quotes, etc.) alongside decimal (&#123;) and hex (&#x7B;) references for the full Unicode range.

Why use it

  • Safely embed user input inside HTML attributes and content.
  • Decode RSS or email bodies with mixed entity types.
  • Round-trip snippets between documentation and rendered pages.
  • Audit CMS output for proper entity encoding.
  • Teach the difference between HTML and XML entity handling.

Features

  • Bidirectional encode / decode
  • Named, numeric, and hex entity support
  • Encodes non-ASCII safely
  • Handles smart quotes, dashes, symbols
  • Client-side HTML Entities <-> Text Converter workflow, no servers involved

How to use HTML Entities <-> Text Converter

  1. Choose direction. Text → Entities or Entities → Text.
  2. Paste content. Drop raw text or HTML with entities.
  3. Run. Copy the converted output back into your page.

Example (before/after)

Raw text

Tom & Jerry "©2026"

Entities

Tom &amp; Jerry &quot;&#169;2026&quot;

Common errors

Unknown named entity

Some rare entities (e.g., &there4;) aren't in our table.

Fix: Use the numeric form &#NNN; for full coverage.

Double encoding

Running encode twice breaks output.

Fix: Decode first, or verify the input wasn't already encoded.

FAQ

Which named entities are decoded?

Common ones: amp, lt, gt, quot, apos, nbsp, copy, reg, trade, hellip, mdash, ndash, lsquo, rsquo, ldquo, rdquo, bull, middot, deg, plusmn, times, divide.

Does it encode all non-ASCII?

Yes — non-ASCII characters are encoded as numeric references in the 'encode' direction.

What about emoji?

Emoji are encoded as numeric references and decoded from numeric/hex references.

Does it output XML-safe entities?

It emits &#39; rather than &apos;. Use the XML tool for strict XML output.

Is my data stored?

No — the converter runs entirely in your browser.