Text to Unicode Converter

This text to Unicode converter lists the code point of every character, such as U+20AC for €. You can also get JavaScript, CSS, and HTML escapes, or paste code points to turn them back into text.

Updated
Runs in your browser. Your text is not uploaded.
Direction
Output

        

How to use the Text to Unicode Converter

  1. Choose Text → Unicode or Unicode → text.
  2. Pick the output format, such as U+20AC or €.
  3. Copy the result, or read each character in the table below.

How it works

Every character in Unicode has a number, its code point, written as U+ and at least four hex digits. The converter reads text one code point at a time, so an emoji counts as one character even though JavaScript stores it as two UTF-16 units.

€  → U+20AC → \u20AC → € → €
😀 → U+1F600 → \uD83D\uDE00 (UTF-16 pair) → \u{1F600}

Examples

  • € = U+20AC.
  • é = U+00E9 = é.
  • 😀 = U+1F600.
  • U+0048 U+0069 = Hi.

Code points and encodings

A code point is a character's number; an encoding is how that number is stored as bytes. U+20AC is the euro sign in every encoding, but UTF-8 stores it as three bytes (e2 82 ac) and UTF-16 as one 16-bit unit (20ac). For the bytes, use the Unicode to UTF-8 or Text to Hex converters.

Limitations

  • Combined characters (such as é written as e + a combining accent, or family emoji) show as several code points.
  • Character names are not shown.

Frequently asked questions

What is a Unicode code point?

The number Unicode gives a character, written as U+ followed by hex digits. A is U+0041.

How do I write an emoji as an escape in JavaScript?

Use \u{1F600} in modern JavaScript, or the surrogate pair \uD83D\uDE00 in older code and JSON.

How do I write a Unicode character in HTML?

Use &#x followed by the hex code point and a semicolon, such as € for €.

Often used together with the Text to Unicode Converter.