Skip to main content
TOP free online tools Your Workbench
English

HTML Entities

Free online html entities. Process data instantly in your browser. No upload, no signup, fully private.

Local browser processing — zero server uploads

How to Use

  1. Paste or type your text into the HTML Entities input area above.
  2. Configure any format or mode options to generate the result in real time.
  3. Click Copy to copy the formatted result to your clipboard, or Reset to clear the workbench.

What is HTML Entities?

HTML Entities converts reserved characters, symbols, and non-ASCII Unicode characters into safe HTML character entities (such as &, <, ©, or 😀) and decodes entity strings back into readable text. Web developers use entity encoding to display raw HTML snippets safely inside web pages and prevent markup injection.

How It Works

In Encode mode, encodeHtmlEntities(input, useNamed) iterates over Unicode code points: if Prefer named entities is checked, characters in the built-in NAMED_ENTITIES map (&, <, >, ", ', typographic, currency, math, and Greek symbols) emit &name;, while characters with code point > 127 emit decimal &#code;. Decode mode resolves named, decimal (&#...;), and hex (&#x...;) entities via decodeHtmlEntities() locally.

Common Use Cases

  • Escaping HTML code samples in documentation — convert <div class="card"> into &lt;div class=&quot;card&quot;&gt;
  • Deciphering scraped or XML-escaped text — decode &amp;, &#x27;, and &#8212; entities back to readable prose
  • Choosing numeric over named entities — uncheck Prefer named entities to emit decimal &#code; codes for non-ASCII characters
  • Preparing XML-safe text — ensure &, <, >, ", and ' (&apos;) encode cleanly without external requests
Technical Details

Functions: encodeHtmlEntities & decodeHtmlEntities in _shared/text-dev.ts. Supports XML core entities (&amp;, &lt;, &gt;, &quot;, &apos;), curated named HTML entities, decimal &#N;, and hex &#xH; via String.fromCodePoint. Runs 100% locally.

FAQ

Is this HTML Entities free?

Yes, completely free. No signup required.

Does this tool upload my data?

No. All processing happens locally in your browser. Your data never leaves your device.