Find the Unicode code point behind any character
Every letter in every language, every symbol and every emoji has its own Unicode code point: A is U+0041, the Bengali letter অ is U+0985 and the smiling face is U+1F600. Paste your text and the tool writes each one out in the form you need.
Eight output forms and a detail table
Choose plain U+ code points, JavaScript and JSON escapes (with proper surrogate pairs for emoji), ES6 braces, HTML hex or decimal entities, CSS escapes, or plain hex and decimal lists. You can convert every character or only the ones outside plain English, so the readable parts stay readable. The table shows, for each character, its code point, UTF-8 bytes, UTF-16 units, general category and script, which is exactly what you need when debugging text that looks wrong.
How to use Text to Unicode Converter
- Type or paste your text into the box.
- Choose the output form: U+ code points, JavaScript, HTML, CSS or a plain list of numbers.
- Choose whether to convert every character or only those outside ASCII, and pick the separator.
- Solve the security check and press Convert to Unicode.
- Copy or download the result and use the table to check the details of each character.
About Text to Unicode Converter
Unicode gives every character a number called its code point, written as U+ followed by at least four hex digits. Code points above U+FFFF, such as emoji, are stored in UTF-16 as two units called a surrogate pair, and JavaScript\u escapes need both units, so the tool writes an emoji as two \u groups in that form and as one code point in the \u{...} form. HTML entities come in hex (A) and decimal (A) forms. CSS escapes are written with six hex digits so that a letter after the escape is never read as part of it. Plain hex and decimal lists are the bare numbers. Normalise combines (NFC) or splits (NFD) letters that can be written as one or as several code points, which matters for accented letters and some Bengali text. The table gives each character's UTF-8 bytes, UTF-16 units, general category (letter, mark, number, punctuation, symbol, separator, control or format) and script.
Purpose of Text to Unicode Converter Tool
Use it to write non-English text into source code as escapes, to produce HTML entities for a template, to debug characters that show as boxes or question marks, to see which invisible characters hide in copied text, to check whether two similar-looking characters are really the same, and to learn how Unicode, UTF-8 and UTF-16 relate.
Limitations of Text to Unicode Converter
- The tool shows the code points of the text exactly as typed. It does not look up character names, which would need a large data table.
- Script and category come from your browser and may differ slightly between browser versions as Unicode grows.
- Some emoji are several code points joined together, so one visible symbol can produce several results. That is correct and the table shows each part.
- Text over 500,000 characters is refused to keep the page fast. The table shows the first 150 characters.
Privacy and data
Text to Unicode Converter runs entirely in your browser. What you type or select is processed on your own device and is never sent to or stored on our server. See our Privacy Policy for details.
Frequently asked questions
How do I convert text to Unicode code points?
Paste the text, choose U+ code points as the form, solve the security check and press Convert to Unicode. Each character is shown as U+ followed by its hex number.
Why does an emoji become two \u codes in JavaScript form?
The \u0000 form holds only four hex digits, so characters above U+FFFF are written as a surrogate pair of two units. Choose the \u{...} form to get one code for the emoji.
Is the text to Unicode converter free and safe to use?
Yes. The text to Unicode converter is free to use and runs in your browser, so your text is not uploaded, stored or logged.
What does U+0041 mean?
U+ followed by hex digits is a Unicode code point. U+0041 is the capital letter A.
How do I get HTML entities or CSS codes for a character?
Choose HTML entities or CSS escapes as the form, then convert. Each character is shown in that format, ready for your code.
Rate Text to Unicode Converter
No ratings yet. Be the first to rate this tool.
Report a bug or give feedback
Popular tools
Morse Code to Text
Decode Morse code made of dots and dashes into readable text, with flexible separators and error marking.
Text ToolsWebpage URL to Text
Turn a web page address, pasted page source or an HTML file into clean readable text without ads and menus.
Text ToolsASCII to Text Converter
Decode decimal, hex or octal ASCII codes into text, with auto-detection, a code table, control-character names and clear errors for bad codes.
Text ToolsBinary to Text Converter
Decode binary into text as UTF-8, 7-bit ASCII or 16-bit UTF-16, with or without spaces, and find exactly what is wrong when it will not decode.
Text ToolsBMI Calculator
Work out your BMI, category and healthy weight range in metric or imperial units.
Health ToolsBullet List Generator
Turn lines, commas or sentences into a bullet, numbered or checklist, with nested levels, as text, Markdown or HTML.
Text Tools