Convert text to Unicode code points — U+0041 style list and \u0041 escape sequences for JavaScript, Java and Python.
| Input | Output |
|---|---|
| A | U+0041 · \u0041 |
| é | U+00E9 · \u00e9 |
| 🙂 | U+1F642 · \u{1F642} (2 UTF-16 units) |
A code point (U+1F642) is the character's number in the Unicode standard — a fact. An escape (\u0041 or \u{1F642}) is how you write that number inside source code; the syntax depends on the language.
JavaScript strings are UTF-16, and code points above U+FFFF need a surrogate pair — two 16-bit units. Iterating with for...of (like this tool) gives true characters; s.length counts the units.
JavaScript/Java: \u0041 or \u{1F642}. Python: \u0041 or \U0001F642. HTML: A or 🙂. All represent the same code point.