Text to Unicode converter
Convert text to the Unicode code points of its characters, in the notation you need: U+0041, A, A or A. The conversion runs in your browser and nothing is uploaded.
How it works
-
Paste your text
Type or paste the text in the left box, or open a .txt file. No text to hand? Click Example.
-
Instant result
The result appears as you type. Change the options and see straight away what changes.
-
Copy or download
Copy the result with one click, save it as a file or use it as input for a next step.
Example
Hello é😀 becomes U+0048 U+0065 U+006C U+006C U+006F U+0020 U+00E9 U+1F600 in U+ notation. With the \u format the emoji is written as the pair 😀, as JavaScript requires.
Formats
| Format | A | é | 😀 |
|---|---|---|---|
| U+ | U+0041 | U+00E9 | U+1F600 |
| \u | A | é | 😀 |
| &# (HTML decimal) | A | é | 😀 |
| &#x (HTML hex) | A | é | 😀 |
Uses
- Writing a special character in source code without trouble from file encodings.
- Finding out which character hides in a string, such as a look-alike letter or an invisible space.
- Preparing HTML or JSON that must stay plain ASCII.
To convert back, use Unicode to text. The numbers in decimal for ASCII are in text to ASCII, and the named versions for HTML in HTML entities.
Frequently asked questions
What is a code point?
The number Unicode gives to a character, such as U+0041 for A, U+00E9 for é and U+1F600 for 😀. It does not depend on the font or on how the text is stored.
Why does the emoji get two codes in the \u notation?
JavaScript and JSON write characters beyond U+FFFF as a surrogate pair of two 16-bit escapes: 😀 is `😀`. The U+ and HTML formats use the single number, `U+1F600` and `😀`.
Which notation do I need?
`é` for JavaScript, JSON and many other languages, `é` or `é` for HTML, and `U+00E9` for documentation and Unicode tables.
Can I leave ordinary letters as they are?
Yes. Tick *Leave ordinary letters and digits alone* and only the characters outside ASCII are converted, such as `Aé😀`.