Unicode Text Converter

Charactersโ€”
UTF-8 bytesโ€”
First code pointโ€”

How Unicode Text Converter is calculated: Each character becomes its Unicode code point (U+XXXX) or its \uXXXX escape; decoding reads each code point back to a character. โ€œHiโ€ = U+0048 U+0069.

What is a unicode text converter?

A unicode text converter turns ordinary text into Unicode code points โ€” the numbers that identify every character in every language โ€” and turns code points back into text. Type โ€œHiโ€ and you get U+0048 U+0069. Switch to escapes mode and you get \u0048\u0069, the form programmers paste into code. Paste the code points back in, switch to decode mode, and โ€œHiโ€ returns. The default text on this page is โ€œHiโ€, so you can see the format before you type anything.

Unicode is the reason your phone can show English, Hindi, Arabic, Chinese, and emoji in the same message. Before Unicode, every language had its own competing encodings, and text broke the moment it crossed from one system to another. Unicode gave every character โ€” more than 150,000 of them โ€” one permanent number, called a code point, written as U+ followed by hex digits.

This tool covers both directions and both common notations. Code point mode writes U+0048 with a space between characters, which is the form you see in documentation and character tables. Escape mode writes \u0048 with no spaces, which is the form that goes straight into JavaScript, Java, Python, and JSON strings. Everything runs in your browser โ€” nothing is uploaded, nothing is stored, and there is no account to create. For the older 128-character set, an ASCII converter shows the same characters as decimal numbers.

A code point is not the same as a byte. In UTF-8, the most common encoding, an English letter takes 1 byte, most European and Indian letters take 2 or 3 bytes, and an emoji takes 4 bytes. The counter above the output shows the character count, the UTF-8 byte count, and the first code point, so you can see the difference between characters and bytes for any text you type.

How text becomes code points: one number per character

The method is simple and exact. Every character has a Unicode code point, a number that never changes. The letter H is 72, written U+0048. The letter i is 105, written U+0069. The Devanagari letter เค… is 2309, written U+0905. The emoji ๐Ÿ˜€ is 128512, written U+1F600. The formula is: code point = the Unicode number of each character, written as U+ followed by hex digits.

Escapes are the same numbers in a different wrapper. Where code point mode writes U+0048, escape mode writes \u0048 โ€” the backslash-u form that programming languages understand inside strings. Characters above U+FFFF, like most emoji, use the longer \u{1F600} form in escapes, because four hex digits cannot hold a number that big.

Decoding is the same process in reverse. The tool reads each token โ€” U+0048, \u0048, 0x48, or a bare 48 โ€” turns it into a number, and looks up the character with that code point. Tokens that are not valid hex numbers are skipped, so one bad token does not corrupt the rest of the message. A hex text converter does a similar job in plain hex, two digits per character, with no U+ prefix.

Code points vs escape sequences: which mode to use

Code point mode is the one most people want when they are looking a character up. You have a character and you need its number โ€” for a bug report, a font question, or a homework answer. Type or paste the text, and the U+ numbers appear with spaces between them. The default โ€œHiโ€ is the fastest way to see the format: U+0048 U+0069.

Escape mode is for programmers. You have text and you need to paste it into source code where the raw characters might break something โ€” a JSON file, a Java string, a regular expression. The \u0048 form goes straight into code and means exactly the same character. This is also the mode for emoji in code, where \u{1F600} is safer than pasting the raw emoji into a file whose encoding you do not trust.

Decode mode is for the opposite job: you have code points and you need the characters behind them. Paste U+0048 U+0069, switch the mode, and the tool returns โ€œHiโ€. This is the mode to use when a character table, a bug report, or a font file hands you numbers and asks what they spell. It also works as a check on your own encoding โ€” convert a word, copy the code points, decode them, and the original word should come back exactly.

A worked example: โ€œHiโ€ in Unicode

Take the default text, โ€œHiโ€. It has 2 characters and 2 UTF-8 bytes, and its first code point is U+0048. In code point mode the output is U+0048 U+0069. In escape mode the output is \u0048\u0069. Letter by letter: H is 72, which is U+0048; i is 105, which is U+0069.

Try a single letter. โ€œAโ€ has 1 character, 1 byte, and its first code point is U+0041. A lowercase a is 97, which is U+0061 โ€” the difference between upper and lower case is always 32, which is U+0020 in hex terms, the same number as a space. A space is 32, which is U+0020. The digit 0 is 48, which is U+0030.

Now try something beyond English. The Hindi letter เค… is U+0905 and takes 3 bytes in UTF-8, even though it is a single character โ€” that is the characters-versus-bytes difference in action. The emoji ๐Ÿ˜€ is U+1F600 and takes 4 bytes. Decode U+0048 U+0069 back and you get โ€œHiโ€ โ€” 2 characters, 2 bytes, first code point U+0048. The round trip is exact, which is the simplest way to check that a conversion is correct.

A useful reference point: the first 128 code points, U+0000 to U+007F, are ASCII โ€” the English letters, digits, and punctuation your keyboard produces. Everything above that is where the rest of the world lives: U+0080 to U+00FF holds accented Latin letters, U+0900 to U+097F holds Devanagari, and U+1F300 to U+1F9FF holds most emoji. If a character you typed shows a code point above U+007F, it is outside ASCII โ€” which matters for SMS, where non-ASCII text costs far more per message.

Who uses a unicode text converter, and why

Developers are the biggest users. Code points show up in debugging, in font work, in regular expressions, and in any code that handles text from more than one language. When a character renders as a box or a question mark, its code point is the first thing a developer checks โ€” U+FFFD means the text was corrupted, and the real code point tells them what it was supposed to be.

Students are the second group. Unicode is taught in school computer science and in first-year university courses, and nearly every course asks students to find the code point of a letter by hand. This tool is the answer key: convert the word, check your answer against it, and find the character where you went wrong.

Writers and designers are the third group: a writer who needs an unusual character โ€” an em dash, a rupee sign, a degree symbol โ€” looks up its code point here, and a designer checking that a font supports Hindi or Arabic converts a sample sentence to see which code points it needs. Emoji users are the fourth group, usually checking why a message changed length โ€” one emoji is one character but four bytes, and that changes message limits.

Unicode converter vs other text encoders

Unicode is one of several ways to write text as numbers, and each has its place. A ASCII converter covers only the first 128 characters โ€” English letters, digits, and punctuation โ€” and is the simplest form to do arithmetic on. A hex text converter writes each character as two hex digits with no prefix, which is the form programmers read in logs and packet captures.

An emoji text generator works in the opposite direction: it decorates plain text with emoji instead of numbering characters. A fancy text generator rewrites text in styled Unicode letters โ€” the same code points this tool numbers, used as decoration rather than data.

The practical rule is simple. Use code points when you need to identify a character exactly. Use escapes when you need to paste text into code safely. Use ASCII when the text is English-only and you want the smallest numbers. Use hex when you need to read bytes quickly. All four are the same idea โ€” text written as numbers โ€” and knowing which one fits the job is most of the skill.

Common mistakes when working with Unicode

The most common mistake is confusing characters with bytes. A Hindi sentence of 10 characters can take 30 bytes, and a message with 5 emoji takes 20 bytes for 5 characters. When a system limits you to a number of bytes rather than characters, counting characters gives the wrong answer โ€” check the UTF-8 byte count, not the character count.

Second: assuming every character is one code point. Most are, but some visible characters are made of two code points โ€” a letter plus a combining mark, or an emoji plus a skin-tone modifier. If your count comes out one higher than you expected, look for a combining character hiding after the letter.

Third: mixing up the notations. U+0048, \u0048, 0x48, and 48 are all the same number in different wrappers, but a tool that expects one wrapper will not accept another. This converter accepts all four on decode, but many other tools do not โ€” match the wrapper to the tool you are pasting into.

Fourth: assuming code points are secret. They are not. A code point is just a number for a character, and anyone can decode U+0048 U+0069 in seconds โ€” this page does it for free. If a message needs to stay secret, code points will not keep it secret; they only make it longer. Real secrecy needs a cipher or a password, not a change of notation.

How to use this unicode text converter

Using this unicode text converter is simple. Type or paste your text into the box โ€” โ€œHiโ€ is already there as the default. Leave the mode on text to code points, and the U+ numbers appear in the output box below, with the character count, UTF-8 byte count, and first code point shown above it. Copy the output with the copy button, or select it by hand.

To get escapes instead, switch the mode to text to escapes โ€” the same characters appear as \u0048\u0069, ready to paste into code. To decode, paste code points into the same box and switch the mode to code points to text. The characters appear in the output box. If some characters are missing, check that every token is a valid hex number with one of the accepted wrappers โ€” that fixes nearly every failed decode.

Everything runs in your browser. No sign-up, no account, no data sent anywhere โ€” your text never leaves your device, and the page works offline once it has loaded. Try it with something real before you need it: type your name, read its code points, decode them back, and watch the round trip land exactly. Once you have done it twice, reading U+ numbers stops feeling like a puzzle and starts feeling like reading.

Frequently Asked Questions

The capital letter A is U+0041, which is 65 in decimal. A lowercase a is U+0061, which is 97. The difference between upper and lower case is always 32. The first 128 code points, U+0000 to U+007F, are ASCII.

They are the same number in different wrappers. U+0048 is the documentation form used in character tables, while \u0048 is the escape form used inside JavaScript, Java, Python, and JSON strings. This tool converts text to both forms and decodes both back to text.

Most emoji take 4 bytes in UTF-8 even though they count as one character. For example, ๐Ÿ˜€ is U+1F600, one character, four bytes. English letters take 1 byte, and most Devanagari letters take 3 bytes.

Yes. Switch the mode to code points to text and paste tokens like U+0048 U+0069, \u0048\u0069, or plain hex numbers separated by spaces. The tool returns โ€œHiโ€. Tokens that are not valid hex numbers are skipped.

More free tools

More calculators and utilities from Sortrun โ€” free, no sign-up.