Convert UTF8 to HTML Entities screenshot

Convert UTF8 to HTML Entities

Encode text as HTML entities, named for Latin characters and numeric for everything else.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Instant
No signup

What this page computes

Paste text and the page escapes it for an HTML document. The named form turns &, <, > and the double quote into entities, gives every Latin-1 character that has an HTML name that name — é becomes &eacute;, € becomes &euro; — and falls back to a hexadecimal reference such as &#x4E2D; for anything above that range. The apostrophe is written &#39;, the form every parser reads. The numeric form escapes every character as &#N;.

Where it stops

This is an escaping tool, not a sanitiser: it does not strip tags, check attributes or decide whether the markup is safe to publish. The named table is a fixed list of common Latin characters, so a script with no HTML name is written numerically; that is correct output, not a failure, and the second line counts how many characters stayed as text.

The conversion is string arithmetic in this tab. Nothing is uploaded, nothing is stored, and the same text always produces the same entities.

`Café & crème` becomes `Caf&eacute; &amp; cr&egrave;me` in the named form: `&` `<` `>` and `"` are escaped, Latin-1 characters get their HTML names, and anything above that range is written as a hexadecimal reference.

This escapes text for markup; it does not sanitise it, check attributes or decide whether the result is safe to publish.

How to use it

Paste the text and choose a form. `named` escapes the four markup characters and uses HTML names where one exists; `numeric` writes every character as `&#N;`, which survives any declared charset.

The table

The named table covers the markup characters plus the common Latin-1 letters and symbols: `&eacute;`, `&euro;`, `&mdash;`, `&copy;` and their neighbours. The apostrophe is written `&#39;` because that is the form every parser reads.

Where it stops

A character with no name is not dropped: it becomes `&#xNNNN;`. The page does not escape text for a JavaScript or CSS context and does not strip tags, so the output belongs in an HTML document body and nowhere else.

What to Expect

Best for

  • `Café & crème` becomes `Caf&eacute; &amp; cr&egrave;me` in the named form: `&` `<` `>` and `"` are escaped, Latin-1 characters get their HTML names, and anything above that range is written as a hexadecimal reference.
  • Seeing the result before copying it.

What this tool keeps

  • Your input is converted in the browser and never posted, so the page works offline and retains nothing.

Sample input

Café & crème

Sample output

Caf&eacute; &amp; cr&egrave;me 12 characters → 3 entities + 9 characters left as text

Frequently asked questions

How do I use it?

Paste the text, choose the named or numeric form, then press Run. The encoded line is printed first and a count of entities against characters left as text underneath.

Is anything uploaded?

No. The text is converted in this tab with JavaScript: no request is made, no account is needed, nothing is stored, and the page keeps working offline once loaded.

What are its limits?

The named table is a fixed list of common Latin characters, so a script it does not know must be written numerically, which is correct output rather than a failure. The page escapes characters and must not be treated as an HTML sanitiser.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.