Convert UTF8 to Code Points screenshot

Convert UTF8 to Code Points

Extract the Unicode code points behind pasted text, one U+XXXX value per character, with byte counts.

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

What this page computes

Paste text and the page prints the Unicode code points behind it, one U+XXXX value per character, separated by spaces. The string is walked by code point rather than by UTF-16 unit, so an emoji prints as a single U+1F600 instead of the two surrogate halves a charCodeAt loop would show. The second line counts UTF-16 code units, code points and UTF-8 bytes for the paste you gave.

Where it stops

A string holding an unpaired surrogate is refused, with the index named, because that value is not a character and has no code point to print. The page reports values; it does not normalise them, so a precomposed é and an e followed by a combining accent stay two different answers, and it does not tell you which normal form a document is in.

The walk happens in this tab on the text in the box. Nothing is uploaded, no text is stored, and the same paste always prints the same list of values.

Paste `Hello` and the page prints `U+0048 U+0065 U+006C U+006C U+006F`, walking the string by code point rather than by UTF-16 unit so an emoji reads as one value.

An unpaired surrogate is refused with its index, because that value is not a character and has no code point to report.

How to use it

Paste the text and press Run. The values are printed in input order, space separated, so a short string can be read left to right against the original.

The arithmetic

The string is walked with a code point iterator: a high surrogate followed by a low one becomes a single value above U+FFFF, and anything else is reported as itself. The counts then follow from the walk — one code point per character, one to four UTF-8 bytes each.

Where it stops

A lone surrogate is refused, since a JavaScript string can hold one and no character exists for it. The page does not normalise, does not sort and does not translate; it only reports the values that are already there.

What to Expect

Best for

  • Paste `Hello` and the page prints `U+0048 U+0065 U+006C U+006C U+006F`, walking the string by code point rather than by UTF-16 unit so an emoji reads as one value.
  • 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

Hello

Sample output

U+0048 U+0065 U+006C U+006C U+006F 5 UTF-16 code units → 5 code points, 5 UTF-8 bytes

Frequently asked questions

How do I use it?

Paste the text and press Run. Each character is printed as a U+XXXX value, and the second line counts UTF-16 code units, code points and UTF-8 bytes for the paste.

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?

Text holding an unpaired surrogate is refused by index, because no code point exists for it. The page reports values and must not be read as a normalisation report: a precomposed character and a base plus combining accent stay different answers.

Developer program

Build custom tools for your store

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