Skip to content
DevToolKit

Text to Unicode Converter

Convert text to Unicode formats like U+XXXX, CSS, JS, and HTML entities. Fully supports emojis and surrogate pairs.

Output will appear here...
Was this tool helpful?

How to Use

Our free online Text to Unicode converter helps you translate standard text, symbols, and emojis into their exact Unicode code point representations. It supports multiple output formats designed specifically for web developers.

  1. Select your output format: Choose how you want the Unicode points displayed (Standard, CSS Escape, JavaScript Escape, HTML Hex, or HTML Decimal).
  2. Type or paste your text into the left input box.
  3. The right box will instantly display the converted Unicode sequence.

About This Tool

If you have a string of Unicode characters or HTML entities and need to see what they represent, click the Swap Direction button. Paste your Unicode string, and the tool will automatically detect the format (whether it contains U+, \u, or &#x) and decode it back into readable text instantly.

Why Use This Tool

Converting text to Unicode isn't as simple as checking the value of each character. Modern characters, especially emojis like 🚀, are actually made up of multiple smaller data points called "surrogate pairs".

Many basic converters simply loop through a string and output the raw surrogate pairs, which is technically incorrect. Our converter uses modern iteration techniques to identify the true, complete code point for every character, ensuring your emojis are converted perfectly every time.

FAQ

What formats can this tool output?
This tool can convert text to standard U+XXXX format, CSS escaped strings (\\0041), JavaScript escaped strings (\\u0041 or \\u{XXXXX}), HTML hex entities (A), and HTML decimal entities (A).
Does this tool support emojis?
Yes! The converter properly iterates over Javascript surrogate pairs, meaning multi-byte emojis (like 🚀) are correctly identified by their true single Unicode code point.
How do I convert Unicode back to text?
Click the 'Swap Direction' button and paste your Unicode points. The tool will automatically detect the format (whether it's U+, HTML entities, or CSS escapes) and convert it back to readable text.