Unicode to Hex Converter – Free

This Unicode to hex converter shows the code point of each character in a piece of text, written in the standard U+ notation with uppercase hexadecimal digits.

How to use the Unicode to Hex tool

  1. Paste or type the characters to inspect into the Unicode text box.
  2. Select Convert. The Example button converts the letter A followed by a globe emoji.
  3. Read the code points in the Result box. They appear in text order, separated by spaces.
  4. Select Copy to copy the list, or Clear to inspect other text.

Code points and the U+ notation

Unicode gives every character a number called a code point, from U+0000 to U+10FFFF. By convention it is written as U+ followed by the number in hexadecimal, using at least four digits. The capital letter A is U+0041 and the euro sign is U+20AC. Code points above U+FFFF, where most emoji live, need five or six digits.

A code point is not the same thing as a byte. It is the abstract number of the character, independent of how UTF-8, UTF-16 or UTF-32 would store it. This tool prints code points only.

Worked example: Unicode to hex output

The converter walks through the text one code point at a time, converts each number to uppercase hex and pads it with zeros to four digits. JavaScript strings are stored as UTF-16, where a character beyond U+FFFF occupies two units called a surrogate pair. The tool reads such a pair as the single code point it represents, so the globe emoji is reported as U+1F30D and not as two surrogate values.

A🌍    →  U+0041 U+1F30D
naïve  →  U+006E U+0061 U+00EF U+0076 U+0065
a b    →  U+0061 U+0020 U+0062

One visible character, several code points

What looks like one character on screen can be a sequence. The tool does not merge or normalize anything, so it shows the sequence as it is stored.

  • An accented letter may be a single precomposed code point, U+00E9, or a plain e followed by the combining acute accent, U+0065 U+0301.
  • A family emoji is several person emoji joined by U+200D, the zero width joiner.
  • A flag is a pair of regional indicator symbols, such as U+1F1FA U+1F1F8.
  • A thumbs-up with a skin tone is the base emoji plus a modifier, U+1F44D U+1F3FD.

Finding invisible and lookalike characters

Listing code points is the quickest way to explain text that looks right but compares as different. Every character is included in the output, so nothing can hide: a normal space is U+0020, a line break is U+000A, a no-break space is U+00A0, a zero width space is U+200B and a byte order mark is U+FEFF. Lookalike letters also become obvious. Latin a is U+0061, while the Cyrillic letter that looks the same is U+0430.

Once you know the code point you can write it as an escape: \u00E9 in JSON and JavaScript, \u{1F30D} in modern JavaScript, \U0001F30D in Python and 🌍 in HTML.

Frequently asked questions

What does U+ mean in a Unicode code?

U+ is a prefix that marks the following hexadecimal number as a Unicode code point. U+0041 means code point 41 in hex, which is 65 in decimal, the letter A.

Why does my emoji produce more than one code point?

Many emoji are sequences. Skin tone variants, flags, and family or profession emoji combine several code points, often with the joiner U+200D between them. A simple emoji such as the globe is a single code point.

Does this tool show UTF-8 bytes?

No. It shows code points, not encoded bytes. The euro sign is the code point U+20AC, while its UTF-8 encoding is the three bytes E2 82 AC. Use the Text to Binary tool on this site to see the UTF-8 bytes in binary.

Why are some results four digits and others five?

Each code point is padded to at least four hex digits, the customary minimum. Characters above U+FFFF, outside the Basic Multilingual Plane, need five or six digits and are shown at their natural length.

How do I turn the hex code points back into text?

Paste the list into the Hex to Unicode tool. It accepts values with or without the U+ prefix, separated by spaces or commas, and rebuilds the characters.

Are spaces and line breaks in my text included?

Yes. The input is not trimmed, so every space, tab and line break is listed with its own code point.

Related tools