This browser-based utility converts Unicode text to a string literal. Anything that you paste or enter in the text area on the left automatically gets converted to a string literal on the right. It supports the most popular Unicode encodings (such as UTF-8, UTF-16, UCS-2, UTF-32, and UCS-4) and it works with emoji characters. You can use code points or bytes in the literal sequences as well as customize their format. You can also change the literal delimiter and create a proper string by wrapping it in double quotes. Created by encoding gurus from team Browserling.
This browser-based utility converts Unicode text to a string literal. Anything that you paste or enter in the text area on the left automatically gets converted to a string literal on the right. It supports the most popular Unicode encodings (such as UTF-8, UTF-16, UCS-2, UTF-32, and UCS-4) and it works with emoji characters. You can use code points or bytes in the literal sequences as well as customize their format. You can also change the literal delimiter and create a proper string by wrapping it in double quotes. Created by encoding gurus from team Browserling.
This utility converts Unicode glyphs to literal strings that you can use in various programming languages and configuration files. It takes the input Unicode data, converts it to binary bytes and code positions, and outputs them as a sequence of escape codes. You can use eight different formats for code positions, such as Java escape codes (\uHHHH), Ruby escape codes (\u{HHHH}), HTML, XML, and XHTML escape codes (&#D; and &#xHH;), and others. If none of these formats are suitable for you, you can define your own format. To do this, select the "custom" code point format and enter your own format. To print binary code positions, use %B notation, octal code positions – %O, decimal – %D, hexadecimal – %H, or hexadecimal surrogate pairs – %U. To write ordinary letters B, O, D, H, U, add a backslash in front of them. For example, \B will write B and \\ will write a slash. There are sixteen different formats for working with bytes, including Perl escape codes (\x{HH}), SQL escape codes (#HH#), and C escape codes (\xHH). You can also set a custom escape format for bytes using the same notation as for code points (except %U). Additionally, for byte escape codes, you can choose the Unicode encoding of your data. We support UTF-8 (default), UCS-2, UTF-16-LE, UTF-16-BE, UCS-4, UTF-32-LE, and UTF32-BE encodings and optionally you can add a Byte Order Mark (BOM). You can also print escape codes in uppercase and change the delimiter that gets placed between escape codes. To make the string literal immediately usable, you can also wrap the output in double quotation marks.
This utility converts Unicode glyphs to literal strings that you can use in various programming languages and configuration files. It takes the input Unicode data, converts it to binary bytes and code positions, and outputs them as a sequence of escape codes. You can use eight different formats for code positions, such as Java escape codes (\uHHHH), Ruby escape codes (\u{HHHH}), HTML, XML, and XHTML escape codes (&#D; and &#xHH;), and others. If none of these formats are suitable for you, you can define your own format. To do this, select the "custom" code point format and enter your own format. To print binary code positions, use %B notation, octal code positions – %O, decimal – %D, hexadecimal – %H, or hexadecimal surrogate pairs – %U. To write ordinary letters B, O, D, H, U, add a backslash in front of them. For example, \B will write B and \\ will write a slash. There are sixteen different formats for working with bytes, including Perl escape codes (\x{HH}), SQL escape codes (#HH#), and C escape codes (\xHH). You can also set a custom escape format for bytes using the same notation as for code points (except %U). Additionally, for byte escape codes, you can choose the Unicode encoding of your data. We support UTF-8 (default), UCS-2, UTF-16-LE, UTF-16-BE, UCS-4, UTF-32-LE, and UTF32-BE encodings and optionally you can add a Byte Order Mark (BOM). You can also print escape codes in uppercase and change the delimiter that gets placed between escape codes. To make the string literal immediately usable, you can also wrap the output in double quotation marks.
In this example, we convert a quote from Albert Einstein to a Java string literal. We use the u-prefix format, which converts each Unicode character to a hexadecimal code point pair and adds the prefix \u in front. We wrap the string literal in double quotes and you can paste it directly in your JavaScript code and it will work.
This example encodes snail art created from various Unicode characters to a literal hex string. It applies UTF8 curly-hex-byte format used in Perl code to every character. This format puts hex bytes in curly brackets and adds a backslash and the hex prefix "x" before each byte. The bytes are printed in uppercase and they are separated by the space symbol.
In this example, we create our own custom string literal using a custom byte format. We select the "custom" format from the byte format list and enter the format value "#$%H". The first two characters "#$" are the escape prefix and the last two "%H" correspond to a non-padded hexadecimal byte value. We set the escape code separator symbol to a comma to clearly show each byte and wrap the entire sequence in quotes. The input medicine emoticons are encoded as UTF-16 Little Endian bytes with a BOM indicator (the first two bytes).
You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
View and edit Unicode in a browser-based editor.
Spell out the names of Unicode characters in the input text.
URL-unescape Unicode text.
Convert base-2 data to Unicode encoding.
Convert base-8 data to Unicode encoding.
Convert base-10 data to Unicode encoding.
Convert base-16 data to Unicode encoding.
Convert Unicode text to any radix.
Convert any radix data to Unicode.
Convert Unicode text to ISO-8859-1 encoding.
Convert ISO-859-1 encoded data to Unicode.
Convert Unicode text to ISO-8859-2 encoding.
Convert ISO-8859-2 encoded data to Unicode.
Convert Unicode text to Ecoji encoding.
Convert Ecoji encoded data to Unicode.
Convert raw bytes to Unicode.
Check the Unicode version of the given Unicode characters.
Check if the given Unicode has valid encoding.
Encode Unicode text to Punycode encoding.
Decode Punycode encoding to Unicode.
Convert base64 data to Unicode text.
Convert Unicode to a valid data URL.
Convert a valid data URL to Unicode text.
Decode HTML entities to Unicode data.
Decode UTF8 encoding to Unicode.
Decode UTF16 encoding to Unicode.
Decode UTF32 encoding to Unicode.
Convert all Unicode characters to uppercase.
Convert all Unicode characters to lowercase.
Generate a list of all country flag icons.
Generate a list of all Unicode arrows.
Generate a list of all Unicode animals.
Generate a list of all Unicode flowers and plants.
Generate a list of all Unicode block elements.
Generate a list of all Egyptian hieroglyphs.
Generate a list of all currency symbols.
Use Unicode colors to generate a rainbow.
Create a smiley face from Unicode symbols.
Generate a list of random emojis.
Randomize case of all Unicode characters.
Convert all Unicode characters to lowercase.
Encode Unicode to JSON.
Decode JSON to Unicode.
Randomly rearrange the order of input graphemes.
Generate Alt codes for Unicode characters.
Generate Unicode glyphs from Alt codes.
Print statistics about Unicode data and code points.
Extract a part from Unicode data.
Generate waves with Unicode symbols.
Generate graphs using Unicode symbols.
Wrap a message in a Unicode box.
Subscribe to our updates. We'll let you know when we release new tools, features, and organize online workshops.
Enter your email here
We're Browserling — a friendly and fun cross-browser testing company powered by alien technology. At Browserling we love to make people's lives easier, so we created this collection of online Unicode tools. Our tools are focused on gettings things done and they have the simplest possible user interface. As soon as you load your Unicode data in the input of any of our tools, you'll instantly get the result in the output. Behind the scenes, our tools are actually powered by our web developer tools that we created over the last couple of years. Check them out!