Text to Unicode Converter
Convert text to Unicode formats like U+XXXX, CSS, JS, and HTML entities. Fully supports emojis and surrogate pairs.
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.
- Select your output format: Choose how you want the Unicode points displayed (Standard, CSS Escape, JavaScript Escape, HTML Hex, or HTML Decimal).
- Type or paste your text into the left input box.
- 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 ) 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.