Skip to content

Unicode To Text

Turn \u escapes into characters. \u0048\u0065\u006c\u006c\u006f is Hello. Characters that are already text stay as typed.

Result

Enter text

How to Use

  1. 1 Enter up to 5000 characters.
  2. 2 Choose Decode the text.
  3. 3 \u0048\u0065\u006c\u006c\u006f is Hello.

Example Output

  • \u0048\u0065\u006c\u006c\u006f is Hello.

About This Tool

The page reads \u followed by four hex digits, and \u{hex}. Other characters stay.

Using Unicode to Text

Unicode to Text turns \u escapes into characters. The text field starts as \u0048\u0065\u006c\u006c\u006f. Choose Decode the text. The label above the headline reads Text. The headline is Hello. The characters line is 5. The result text is Hello. The page reads \u and four hex digits, and it reads \u{hex}. Other characters stay. \u0048 is H, \u0065 is e, \u006c is l, and \u006f is o, so the five escapes are Hello.

The steps under the result say to find each \u escape, replace it with the character for that code, and leave other characters in place. Decode the same field again and the headline stays Hello. The characters line stays 5. The braced form uses the same codes with braces. \u{48}\u{65}\u{6c}\u{6c}\u{6f} is Hello as well. A character that is already text stays as typed. Hello, with no escapes, stays Hello, and the characters line is 5.

A mix keeps the ordinary characters and decodes the escapes. Say \u0048 becomes Say H. The S, the a, the y, and the space stay. Only the escape becomes H. An escape that does not have four hex digits, and is not \u{hex}, stays as typed. \u12 has only two hex digits and no braces, so it is not replaced. The page does not reverse the characters, change their case, or apply another style. It replaces the escapes it recognizes.

The field allows from 1 to 5000 characters. An empty field says Enter from 1 to 5000 characters. A field that trims to nothing uses that message too. Text longer than 5000 characters uses the same message. A code in the braced form that sits past 10FFFF says Enter a Unicode code from 0 to 10FFFF. The sample codes are inside that range. \u0048 is 48 in hex, which is the character H.

Copy result copies the decoded text. For the starting field it copies Hello. It does not copy the escapes in place of Hello. Reset returns the field to \u0048\u0065\u006c\u006c\u006f and the headline to Enter text. Copy Hello before you reset. The same escapes always rebuild Hello. The characters line for that word is 5, one character for each escape in the sample.

Hex digits inside an escape may be upper or lower. \u006C is l, the same character as \u006c, because the code is the same. The letter u that introduces the escape stays lowercase. \u0048 is H. Five escapes with the hex letters written in either hex case still spell Hello when the codes are 48, 65, 6c, 6c, and 6f. The characters line is 5. The page does not also uppercase the finished word. Hello keeps the capital H that belongs to \u0048 and the lowercase letters that belong to the other four codes.

A backslash that is not part of a matched escape stays in the result, along with the characters after it. That is the same rule as any other ordinary character. The sample field has no leftover backslash, because each \u is followed by four hex digits. Add a word after the escapes and that word stays after Hello. \u0048\u0065\u006c\u006c\u006f there becomes Hello there. The characters line counts Hello, the space, and there. The page does not store the text. Decode the sample again, with no extra word, and the headline returns to Hello. The characters line returns to 5. That pair, Hello and 5, is the sample result to keep. The escapes that produce it are \u0048\u0065\u006c\u006c\u006f. The braced form of the same codes produces the same pair. Other characters stay, and the page does not reverse the finished word.

What the Decoded Text Is

The decoded text is the field after each recognized \u escape becomes a character. For \u0048\u0065\u006c\u006c\u006f, the headline is Hello. The label above it reads Text. The characters line is 5. The result text is Hello. The page reads \u and four hex digits, and it reads \u{hex}. Other characters stay. The five sample escapes are H, e, l, l, and o. Nothing in that field is left as an escape, because each one matches the four-digit form.

Hello typed as ordinary letters is already text, so it stays Hello. The characters line is still 5. The headline matches the sample output, but the input was different. Read the field if you need to know whether you decoded escapes or typed the word. The page does not store the text. The result is the decode of the current field. The characters line counts the decoded text, not the escapes you typed. The sample field is much longer than 5 characters because each escape is six characters, a backslash, a u, and four hex digits. After decoding, those six characters are one letter. Five escapes become five letters. The characters line reads 5. Quote that 5 with the word Hello, not with the length of the escape string.

How the Five Escapes Become Hello

The page scans for \u followed by four hex digits, and for \u{hex} with one to six hex digits inside the braces. \u0048 is the code 48 in hex, which is H. \u0065 is e. \u006c is l. The next \u006c is l again. \u006f is o. Put together, the headline is Hello. The characters line is 5. The steps under the result follow the search, the replacement, and the characters that stay. Hex digits may be upper or lower. The letter u in the escape is the lowercase u. Other characters stay where they are.

Raw hex bytes are a different reading. The Hex to Text Converter turns hexadecimal bytes into text. 48656c6c6f is Hello. Spaces between bytes are ignored. That page reads the bytes as UTF-8, and the hex must contain an even number of digits after spaces are removed. Use it when the input is hex bytes such as 48656c6c6f. Use this page when the input uses \u escapes. Pasted here, 48656c6c6f stays 48656c6c6f, because those digits are not a \u escape. The escape form \u0048\u0065\u006c\u006c\u006f is what becomes Hello on this page.

What Stays, Besides the Escapes

Other characters stay. Letters, spaces, digits, and punctuation that are not part of a \u escape remain in place. Say \u0048 becomes Say H. The word Say and the space are unchanged. A fragment that looks incomplete stays too. \u12 does not have four hex digits and does not use braces, so the headline keeps those characters. The page reads \u and four hex digits, and \u{hex}. It does not treat every backslash as an escape.

The braced form accepts one to six hex digits. \u{48} is H, the same character as \u0048. \u{48}\u{65}\u{6c}\u{6c}\u{6f} is Hello, and the characters line is 5. A braced code past 10FFFF is rejected with Enter a Unicode code from 0 to 10FFFF. The sample does not need that bound. \u0048 is inside it. The page does not store the text after a successful decode or after a rejection.

The Sample Escapes, Then a Mixed Line

Leave the field as \u0048\u0065\u006c\u006c\u006f. Choose Decode the text. The headline is Hello. The characters line is 5. The result text is Hello. Decode again. The figures match. Change the field to \u{48}\u{65}\u{6c}\u{6c}\u{6f}. The headline is Hello again, because the braced codes are the same characters. Change the field to Say \u0048. The headline is Say H. The ordinary letters stay, and the escape becomes H. Restore the five four-digit escapes. The headline returns to Hello, and the characters line is 5.

Reversing the finished word is a different pass. The Reverse Text Generator reverses the characters in the text you type. Hello becomes olleH. That page does not reverse the meaning of the words. Use it when you want the characters backward. Use this page when you want \u escapes decoded. olleH is not the sample output. Hello is. This page does not reverse Hello after it decodes the escapes.

The Character Bound and a Code Past 10FFFF

The field must contain from 1 to 5000 characters. Empty text says Enter from 1 to 5000 characters. Text that trims to nothing uses that message. Text longer than 5000 characters uses the same message. The characters line stays clear when that message is the headline. The page does not store the text from a failed run.

A braced code must be from 0 to 10FFFF. Past that, the headline reads Enter a Unicode code from 0 to 10FFFF. The four-digit form is four hex digits, so those codes sit inside the range the braced form also allows. \u0048 is accepted, and it is H. Other characters stay, including a backslash that is not followed by a lowercase u and a valid code. The sample field has five valid escapes and no other characters, so the whole result is Hello.

Escapes People Change Before Decoding

A common miss is to paste 48656c6c6f and expect Hello. Those are hex bytes without \u. Other characters stay, so the digits stay digits. The escape form \u0048\u0065\u006c\u006c\u006f is the input that becomes Hello. Another miss is to expect \u12 to become a character. It does not have four hex digits and it does not use braces, so it stays. Another miss is to raise the letter u to uppercase before decoding. The page reads a lowercase u. Another miss is to expect the page to reverse Hello. It does not. The headline is Hello, and the characters line is 5. Another miss is to expect the page to store the text. It does not.

Upper case rewrites the letters, including the u in an escape. The Uppercase Converter turns the text you type into upper case. hello becomes HELLO. That page does not change any other case. Use it when you want upper case. Use this page when you want \u escapes decoded. HELLO is not the sample output of the escapes. The sample output is Hello, with a capital H only because \u0048 is H. The u in each escape needs to stay lowercase for this page to read it.

Hello From Escapes, Then an Empty Field

Enter \u0048\u0065\u006c\u006c\u006f. Decode the text. The headline is Hello and the characters line is 5. Enter \u{48}\u{65}\u{6c}\u{6c}\u{6f}. The headline is Hello again. Enter Say \u0048. The headline is Say H. Enter Hello with no escapes. The headline is Hello, because other characters stay. Restore the five escapes and confirm the characters line is 5.

Clear the field and decode. The headline reads Enter from 1 to 5000 characters. Enter 48656c6c6f and decode. The headline stays 48656c6c6f, because that paste has no \u escape. Restore \u0048\u0065\u006c\u006c\u006f. Confirm the headline is Hello. The label above the headline should read Text. The page reads \u and four hex digits, and \u{hex}, and it leaves other characters in place.

Keeping Hello With the Escapes

Copy the decoded text. For the sample it is Hello. Write the escapes \u0048\u0065\u006c\u006c\u006f beside it if you need to decode them again. The characters line 5 matches that word. The page does not store the text. A note that says only Hello can be this decode, the braced form \u{48}\u{65}\u{6c}\u{6c}\u{6f}, or the word typed without escapes. The field is what shows which input you used. Keep the copy with that field. Reset returns the escapes and the headline to Enter text, so copy Hello first.

Lower case is a different record of a word. The Lowercase Converter turns the text you type into lower case. Hello becomes hello. Digits and spaces stay as typed. Use it when you want lower case. Use this page when you want escapes decoded. hello is not what \u0048\u0065\u006c\u006c\u006f produces. That field produces Hello. This page does not lowercase the H after it decodes \u0048.

Characters From the Escapes You Typed

The headline answers what the field says after \u escapes are replaced. \u0048\u0065\u006c\u006c\u006f is Hello. The characters line is 5. The page reads \u and four hex digits, and \u{hex}. \u{48}\u{65}\u{6c}\u{6c}\u{6f} is Hello too. Other characters stay, so Say \u0048 is Say H, and 48656c6c6f stays 48656c6c6f. The page does not store the text. Those outcomes come from the field.

Read the field before you quote the headline. If each \u escape has become its character and every other character is still there, the headline is the text this page promises. Copy that text and keep the escapes with it if you need the input. A headline of Hello without the field can be misread later as a reversed word, as hex bytes, or as a word the page stored. The page decoded the escapes. It did not store them.

Checking Each Code Against Hello

Split the sample on each \u. 0048 is H, 0065 is e, 006c is l, 006c is l, and 006f is o. The headline should be Hello. The characters line should be 5. Repeat the check with \u{48}\u{65}\u{6c}\u{6c}\u{6f}. The headline should be Hello again. Type Say \u0048 and confirm Say H, so the ordinary characters stayed. Type 48656c6c6f and confirm those digits stay. An empty field should read Enter from 1 to 5000 characters. The label above a successful headline reads Text.

A styled rewrite of Hello is a different output. The Fancy Text Generator rewrites letters in a fancy Unicode style. Hello in the script style is โ„‹โ„ฏ๐“๐“โ„ด. That page does not post the text. Use it when you want that style. Use this page when you want \u escapes decoded. โ„‹โ„ฏ๐“๐“โ„ด is not the sample headline. Hello is. This page leaves a character alone when it is not a \u escape, so a script letter you paste here stays that letter.

Frequently Asked Questions

What does \u0048\u0065\u006c\u006c\u006f return?

Hello. The headline is Hello. The characters line is 5. \u0048 is H, \u0065 is e, \u006c is l, and \u006f is o. The same escapes always rebuild Hello. Other characters would have stayed, and this field has none besides the escapes.

Which escapes does the page read?

The page reads \u and four hex digits, and \u{hex}. \u0048\u0065\u006c\u006c\u006f is Hello. \u{48}\u{65}\u{6c}\u{6c}\u{6f} is Hello too. Other characters stay. \u12 does not match, so it stays as typed.

What does Say \u0048 return?

Say H. The letters and the space stay. The escape becomes H. The page does not reverse those characters and does not change their case. It replaces the escape and leaves the rest.

What does 48656c6c6f return on this page?

48656c6c6f. Those digits are not a \u escape, so they stay. Hello from that byte string is the hex-to-text conversion. This page decodes \u0048\u0065\u006c\u006c\u006f into Hello.

What does an empty field do?

The headline reads Enter from 1 to 5000 characters. A field of only spaces uses that message. Text longer than 5000 characters uses the same message. The page does not store the text.

What does a code past 10FFFF do?

A braced code past 10FFFF says Enter a Unicode code from 0 to 10FFFF. The sample escapes are inside the range. \u0048 is H. The four-digit form uses four hex digits, and the sample of five of them is Hello.

Does the page change case or reverse the word?

No. \u0048\u0065\u006c\u006c\u006f is Hello, with the capital H that belongs to that code. The page does not lowercase it and does not reverse it into olleH. Other characters stay as typed.

What does Copy result copy?

It copies the decoded text. For the starting field that copy is Hello. Reset restores \u0048\u0065\u006c\u006c\u006f and the headline to Enter text, so copy Hello first if you want to keep it.