Convert Code Points to UTF8
Create UTF-8 characters from Unicode code point values, in hex or decimal, and see the byte count.
What this page computes
Type one code point per token, as U+0048, 0x48, #48 or the decimal 72, and the page builds the characters those values name. Each token is parsed in the base its prefix declares, checked against Unicode, and concatenated in the order given. The second line reports how many code points went in and how many UTF-16 code units and UTF-8 bytes came out, so a value outside the BMP is visible as four bytes rather than two.
Where it stops
A value above U+10FFFF is refused because Unicode stops there, and a value in the surrogate block D800–DFFF is refused because those values name no character — they exist only as halves of a pair. A bare token is read as decimal, so 72 is the letter H while 0x72 is the letter r; the prefix decides, not the digits. An empty box is refused rather than printing an empty string, so a mistyped prefix cannot look like success.
The characters are built in this tab from the numbers you typed. Nothing is uploaded, nothing is stored, and reloading the page with the same tokens prints the same text.
Five code points in, five characters out: `U+0048 U+0065 U+006C U+006C U+006F` reads `Hello`, with the UTF-8 byte count underneath. Hex tokens are written `U+0048`, `0x48` or `#48` and a bare token is decimal, so `72` is also H.
Unicode stops at U+10FFFF and the surrogate block D800–DFFF names no character, so both are refused rather than printed as a box.
How to use it
Write one code point per token, with a prefix that says the base: `U+0048` and `0x48` and `#48` are hexadecimal, while `72` is decimal. Press Run and the characters are concatenated in the order you gave them.
The arithmetic
Each token is parsed in its declared base, checked against the Unicode range, and turned into a character. The second line counts the results twice: UTF-16 code units, which is what a JavaScript string holds, and UTF-8 bytes, which is what a file holds.
Where it stops
A value above U+10FFFF, a value in the surrogate block, or a token whose digits do not fit its base is refused with the token quoted. The page builds characters from values; it does not normalise, so a combining sequence prints as separate characters.
What to Expect
Best for
- Five code points in, five characters out: `U+0048 U+0065 U+006C U+006C U+006F` reads `Hello`, with the UTF-8 byte count underneath.
- 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
U+0048 U+0065 U+006C U+006C U+006F
Sample output
Hello 5 code points → 5 UTF-16 code units, 5 UTF-8 bytes
Frequently asked questions
How do I use it?
Type the code points separated by spaces, commas or semicolons, then press Run. The decoded text is printed first and the code point, UTF-16 unit and byte counts underneath it.
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?
Each token must be a real code point: a value above U+10FFFF or inside the surrogate block D800–DFFF is refused by name. A bare token is decimal, so 72 and 0x72 are different characters.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.