Blog
Image Tools
Crop Image
Resize Image
Rotate & Flip
Compress Image
Photo Filters
Meme Generator
GIF Maker
Collage Maker
Watermark Image
Blur Image
Convert
JPG to PNG
PNG to JPG
HEIC to JPG
DNG to JPG
Image Converter
PDF to JPG
JPG to PDF
Merge PDF
Compress PDF
MP4 to MP3
Video to GIF
MOV to MP4
MP3 Converter
Video & Audio
Trim Video
Crop Video
Remove Audio
Text to Speech
Audio Cutter
MP3 Compressor
Design & Editor
Resume Builder
Design Editor
Add Text to Photo
Social Media Resizer
QR Code Generator
Signature Generator
More Tools
Word Counter
Password Generator
Random Picker
Dice Roller
Spinner Wheel
Favicon Generator
Barcode Generator
Browse All Tools

Text to Unicode Converter

Find the Unicode code point of any character, or turn text into escape codes you can paste into source code, web pages and style sheets. Emoji and characters outside the basic range are handled correctly, and plain ASCII can be kept as it is.

100% Free
No Sign-up
Six Formats
Emoji Safe
Private · Nothing Saved Online
Text to Unicode
Your Text
Input Characters—
Output Characters—
Lines In → Out—
Input Words—
Type or paste in the input box, or open a file. The result updates as you type.
Unicode to text
TextType, paste or drop a file
Unicode
Input—
Result—
Status—
Settings forYour input
Format
U+ is the standard way to name a character. The others are escapes for program code, web pages and style sheets.
Options
Useful for code: only accents, symbols and emoji are escaped.
File Name

How to Convert Text to Unicode

Quick answer: type or paste your text, pick a format such as U+ or \u, and copy the codes.

  1. 1

    Type your text

    Or paste it, or open a file.

  2. 2

    Pick a format

    U+, code escapes, HTML or style sheet.

  3. 3

    Keep ASCII if needed

    Only special characters are escaped.

  4. 4

    Copy or download

    Paste the codes where you need them.

What You Get

Instant
As you type
Six Formats
For any destination
Emoji Safe
Correct pairs
Keep ASCII
Escape only specials
Private
Nothing is uploaded
Any Device
Phone or computer

What Is a Unicode Code Point?

Unicode gives every character in every writing system its own number, called a code point. It is usually written as U+ followed by at least four hex digits: A is U+0041, é is U+00E9, the euro sign is U+20AC and the grinning face emoji is U+1F600. Knowing a character's code point lets you look it up, type it, and write it safely in places that do not accept the character itself.

The Six Formats

U+00E9 is the standard name used in documentation and character tables. \u00E9 is the escape used in JavaScript, JSON, Java and C#; characters above U+FFFF, such as emoji, become a pair of escapes, which is how those languages store them. \u{E9} is the modern escape that writes any code point in one piece. é is the HTML form for web pages and XML. \E9 is the style sheet form used in the content property. \U000000E9 is the long form used in Python and C.

Keeping Plain Text

Tick Keep plain letters, digits and symbols to escape only the characters that might cause problems, such as accents, curly quotes, symbols and emoji, while normal text stays readable. This is the usual choice when preparing strings for source code or configuration files saved in older encodings.

Example

"Café ☕" in U+ format becomes U+0043 U+0061 U+0066 U+00E9 U+0020 U+2615. In \u format with Keep plain text ticked, it becomes Caf\u00E9 \u2615, ready to paste into a JSON string. To read escapes back, use Unicode to Text.

Who Uses Unicode Codes?

Developers writing strings that must survive any file encoding, web designers adding icons and symbols with style sheet content, writers and translators checking unusual characters, font designers testing glyphs, and anyone curious about which emoji or symbol they are looking at. Code points are also the key to searching character tables and fixing look-alike characters, such as a Greek Ο that looks like the letter O.

Step by Step

Paste the text or the single character you want to look up. Choose the format that matches where the code will go: U+ for documents, \u for most program code and JSON, &#x…; for web pages, the style sheet form for icon content, or the long form for Python. Copy the result, or download it as a .txt file to keep with your project.

Good to Know

Some characters that look like one symbol are actually several code points, such as flags, skin-tone emoji and letters with separate accent marks; each part is shown on its own. Spaces are code points too (U+0020), so they appear in the output unless you keep plain text. For the stored bytes of the same text, see Text to Hex.

Private, Free and Instant

The converter is free and handles text up to 5 MB. There is no sign-up, no limit and nothing to install. The conversion runs inside your browser, so your text and data are never uploaded, logged or stored. The result updates as you type or paste, and you can open a text file from your device and download the result as a new .txt file. It works on Windows, Mac, Linux, Chromebooks, iPhone and Android, in any modern browser.

Writing Text as Unicode Code Points

Unicode assigns every character a code point, such as U+0041 for A and U+1F600 for a smiling face. Converting text to code points or escapes is useful when you must put non-ASCII characters into source code or JSON.

Formats

  • \uXXXX for characters up to U+FFFF.
  • Surrogate pairs for emoji in JSON.
  • U+XXXX for documentation.

To read escapes, use Unicode to text.

Unicode Escapes in Practice

Developers use escapes to keep source files in plain ASCII while still using accented letters, symbols and emoji. Pairs of surrogates are needed for characters above U+FFFF in JSON, so one emoji may be written as two escape sequences.

For web use, you can also write characters as HTML entities such as é. In CSS, the escape is a backslash followed by the hex code. Check that your file is saved as UTF-8 so characters display correctly.

Frequently Asked Questions

Questions about Unicode code points

How do I find the Unicode of a character?

Type or paste the character. Its U+ code point appears straight away.

What format should I use in program code?

Use \u for JavaScript, JSON, Java and C#, \u{…} for modern JavaScript, and the long \U form for Python.

Why does an emoji give two \u codes?

Those languages store characters above U+FFFF as a pair of codes. Use \u{…} for a single escape.

Can I escape only special characters?

Yes. Tick Keep plain letters, digits and symbols.

Can I convert codes back to text?

Yes, with the Unicode to Text converter.

Is anything uploaded?

No. The conversion happens in your browser on your own device. Nothing is sent or stored.