07 / Encoding / unicode-converter

Unicode Converter

Convert text to Unicode code points and back.

ReadyLocal processing
07 · Workspace

How to use

  1. 01Choose a Direction: Text → Code points or Code points → Text.
  2. 02For Text → Code points, pick an output Format: U+0041, \u0041, A or decimal 65.
  3. 03Type or paste into the Input box; the Output updates instantly.
  4. 04Check the Characters panel, which lists each character next to its U+ code point.
  5. 05Press Copy output to copy the result, or Clear to reset the input.

What is this tool?

The Unicode converter turns text into Unicode code points and turns code points back into text. It writes four common notations and reads U+ notation, \u and \u{} escapes, HTML numeric entities, 0x hex and plain decimal numbers. It is a fast way to identify invisible, look-alike or emoji characters, and it runs entirely in your browser.

Unicode code points explained

Every character in Unicode has a number called a code point, written as U+ followed by at least four hexadecimal digits. The letter A is U+0041 (decimal 65), the check mark ✓ is U+2713 and the rocket emoji 🚀 is U+1F680 (decimal 128640). Code points run from U+0000 to U+10FFFF.

The same code point can be written in several notations depending on where it will be used. In this tool, 🚀 becomes U+1F680, 🚀 as an HTML hex entity, 128640 in decimal, or \uD83D\uDE80 as a JavaScript/JSON escape.

Why emoji become two \u escapes (surrogate pairs)

JavaScript strings, JSON and Java use UTF-16, where each \uXXXX escape holds only 16 bits. Characters above U+FFFF, which includes most emoji, are stored as two 16-bit surrogate units. That is why the \u0041 format writes 🚀 as \uD83D\uDE80 rather than a single escape, and why "🚀".length is 2 in JavaScript.

When converting back to text, the tool accepts both forms: a surrogate pair such as \uD83D\uDE80 and the ES6 code point escape \u{1F680} each produce the same 🚀.

Converting code points back to text

In Code points → Text mode the tool scans the input for recognizable tokens and ignores the separators between them, so you can paste a list like "U+0048 U+0069", a JSON escape sequence, HTML entities or comma-separated decimals. Values above U+10FFFF are rejected with an error that names the invalid token. Because plain numbers are read as decimal code points, remove unrelated digits from the input before converting.

For example, the input "\u0048\u0069 !" converts to "Hi!", and "72, 105" converts to "Hi" as well. The Characters panel then lists each decoded character with its U+ value, which is the easiest way to spot an unexpected U+00A0 non-breaking space or U+200B zero-width space hiding in otherwise normal-looking text.

Common use cases

  • Identifying zero-width spaces, non-breaking spaces or look-alike characters that break string comparisons
  • Generating \u escapes for non-ASCII test strings in JSON fixtures or JavaScript tests
  • Writing HTML hex entities for symbols and emoji
  • Decoding escaped Unicode from logs, API responses or source code
  • Checking which code points an emoji is made of when testing input length limits

FAQ

How do I find the Unicode code point of a character?

Choose Text → Code points and paste the character. The output and the Characters panel show its U+ code point.

How do I convert U+ codes back to text?

Choose Code points → Text and paste values such as U+0048 U+0069. The tool also accepts \u escapes, HTML numeric entities, 0x hex and decimal numbers.

Why is an emoji shown as two \u escapes?

The \u format uses UTF-16, which stores characters above U+FFFF as a surrogate pair of two 16-bit units.

What is the difference between U+0041 and \u0041?

They refer to the same character, A. U+0041 is the standard notation for naming a code point, while \u0041 is an escape sequence used in JavaScript, JSON and Java source.

What is the highest valid Unicode code point?

U+10FFFF. The converter reports an error for any value above it.