onlineunicodetools logo

Unicode to utf-16 converter

World's simplest unicode tool

This online utility encodes Unicode data to UTF-16 encoding. Anything that you paste or enter in the input area automatically gets converted to UTF-16 and is printed in the output area. It supports all Unicode symbols and it works with emoji characters. You can switch between Big Endian and Little Endian byte order formats and use any base from 2 to 36 for the output UTF-16 units. You can also change the separator between the units, add a base-indicating prefix, and pad them to full words. Created by encoding gurus from team Browserling.
announcement check out our new project!
We just created something new for all science fans – SCIURLS – a neat science news aggragator. Check it out!
fullscreen fullscreen_exit
UTF-16 Radix
Use this numeral system to output UTF-16 encoded bytes.
Enter custom radix here. (Valid values from 2 to 36.)
UTF-16 Byte Order
Use the Big Endian byte order format. (Most significant byte first.)
Use the Little Endian byte order format. (Least significant byte first.)
Prefix output with the byte order mark.
Output Format
Separate UTF-16 units by this character.
Add a prefix to bytes in binary ("0b"), octal ("o"), and hex ("0x") bases.
Pad code units with zeros until they have a full 16-bit length.
Unicode to utf-16 converter tool What is a unicode to utf-16 converter?
This browser-based utility converts your Unicode text to UTF-16 encoding. UTF (Unicode Transformation Format) is a mapping from every Unicode code point to a unique two- or four-byte sequence. UTF-16 uses a single 16-bit code unit to encode the first 65,000 most common characters (up to code position U+FFFF, which covers the entire basic multilingual plane) or a pair of 16-bit code units (called a surrogate pair) to encode all remaining code points in the supplementary multilingual plane and other 15 Unicode planes (code points starting at U+10000 and ending at U+10FFFF). The surrogates are composed of two parts – the high surrogate in range U+D800 - U+DBFF (1,024 code points) and the low surrogate in range U+DC00 - U+DFFF (also 1,024 code points). With this tool, you can output the encoded bytes in any radix from 2 to 36. Use the radix dropdown to quickly select one of the most commonly used radixes, such as binary, octal, decimal, and hex bases, or select the custom radix option to use any other radix. You can switch between the Big Endian (BE) and Little Endian (LE) byte order formats. The BE form puts the most significant byte first and is the dominant ordering for processor and memory architectures. The LE form puts the least significant byte first and is the dominant ordering in networking protocols. UTF-16 supports the byte order mark (BOM) prefix that signals its endianness. BOM for UTF-16BE is 0xfeff and for UTF-16LE it's 0xfffe. You can choose if you want to include BOM in the output. You can also adjust the output by setting a separator character between all 16-bit units. You can improve the byte format by adding the radix prefix in front of binary units ("0b"), octal units ("o"), and hex units ("0x"). Also, you can pad units with zeros to get a full-word length. For binary units, the word length is 16 characters, for octal units, it's 6 characters, and for hex, it's 4 characters.
Unicode to utf-16 converter examples Click to use
Aristotle's Quote
In this example, we encode Aristotle's quote to the UTF16 Big Endian encoding in hexadecimal (base-16) numeral system. We map each Unicode sans-serif italic letter to a pair of 16-bit code units (surrogates). We also pad the output words with zeros and split them apart with a space character.
π˜•π˜’π˜΅π˜Άπ˜³π˜¦ π˜₯𝘰𝘦𝘴 𝘯𝘰𝘡𝘩π˜ͺ𝘯𝘨 𝘢𝘴𝘦𝘭𝘦𝘴𝘴𝘭𝘺. 𝘈𝘳π˜ͺ𝘴𝘡𝘰𝘡𝘭𝘦
d835 de15 d835 de22 d835 de35 d835 de36 d835 de33 d835 de26 0020 d835 de25 d835 de30 d835 de26 d835 de34 0020 d835 de2f d835 de30 d835 de35 d835 de29 d835 de2a d835 de2f d835 de28 0020 d835 de36 d835 de34 d835 de26 d835 de2d d835 de26 d835 de34 d835 de34 d835 de2d d835 de3a 002e 0020 d835 de08 d835 de33 d835 de2a d835 de34 d835 de35 d835 de30 d835 de35 d835 de2d d835 de26
Required options
These options will be used automatically if you select this example.
Use this numeral system to output UTF-16 encoded bytes.
Use the Big Endian byte order format. (Most significant byte first.)
Prefix output with the byte order mark.
Separate UTF-16 units by this character.
Add a prefix to bytes in binary ("0b"), octal ("o"), and hex ("0x") bases.
Pad code units with zeros until they have a full 16-bit length.
A Cute Unicode Face
This example converts a cute Unicode face to UTF16-encoded octal bytes in the Little Endian (LE) order. The octal bytes are also padded to their full lengths. Padding in LE order happens at the end of bytes because in LE the little end comes first, so zeros are added at the end. Each padded unit in the octal radix has a length of 6 digits (a unit is two bytes and each byte is 3 octal digits). It also uses the prefix "o", as well as prepends the byte order mark (BOM) so that there was no confusion about the output base and byte order, and it separates byte pairs with a semicolon symbol.
Ω©(οΌŠβ—•β€Ώβ—•οΌŠ)ΫΆ
o644060; o240000; o537700; o152445; o374400; o152445; o537700; o244000; o173006
Required options
These options will be used automatically if you select this example.
Use this numeral system to output UTF-16 encoded bytes.
Use the Little Endian byte order format. (Least significant byte first.)
Prefix output with the byte order mark.
Separate UTF-16 units by this character.
Add a prefix to bytes in binary ("0b"), octal ("o"), and hex ("0x") bases.
Pad code units with zeros until they have a full 16-bit length.
Plant Emojis
In this example, we convert a list of plant emoji to the UTF-16 encoding. We use a custom base and set its value to the prime number 31. We also use the Big Endian byte order format for the output. In this byte order, the units and surrogate pairs are formatted so that the most significant bytes come first. We further customize the unit format by placing underscore characters between them.
🌱 Seedling 🌲 Evergreen Tree 🌳 Deciduous Tree 🌴 Palm Tree 🌡 Cactus 🌾 Sheaf of Rice
1qil_1se4_11_2l_38_38_37_3f_3c_3h_3a_a_1qil_1se5_11_27_3p_38_3l_3a_3l_38_38_3h_11_2m_3l_38_38_a_1qil_1se6_11_26_38_36_3c_37_3o_3i_3o_3m_11_2m_3l_38_38_a_1qil_1se7_11_2i_34_3f_3g_11_2m_3l_38_38_a_1qil_1se8_11_25_34_36_3n_3o_3m_a_1qil_1seh_11_2l_3b_38_34_39_11_3i_39_11_2k_3c_36_38
Required options
These options will be used automatically if you select this example.
Use this numeral system to output UTF-16 encoded bytes.
Enter custom radix here. (Valid values from 2 to 36.)
Use the Big Endian byte order format. (Most significant byte first.)
Prefix output with the byte order mark.
Separate UTF-16 units by this character.
Add a prefix to bytes in binary ("0b"), octal ("o"), and hex ("0x") bases.
Pad code units with zeros until they have a full 16-bit length.
Pro tips Master online unicode tools
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!
https://onlineunicodetools.com/convert-unicode-to-utf16?input=%F0%9D%98%95%F0%9D%98%A2%F0%9D%98%B5%F0%9D%98%B6%F0%9D%98%B3%F0%9D%98%A6%20%F0%9D%98%A5%F0%9D%98%B0%F0%9D%98%A6%F0%9D%98%B4%20%F0%9D%98%AF%F0%9D%98%B0%F0%9D%98%B5%F0%9D%98%A9%F0%9D%98%AA%F0%9D%98%AF%F0%9D%98%A8%20%F0%9D%98%B6%F0%9D%98%B4%F0%9D%98%A6%F0%9D%98%AD%F0%9D%98%A6%F0%9D%98%B4%F0%9D%98%B4%F0%9D%98%AD%F0%9D%98%BA.%20%F0%9D%98%88%F0%9D%98%B3%F0%9D%98%AA%F0%9D%98%B4%F0%9D%98%B5%F0%9D%98%B0%F0%9D%98%B5%F0%9D%98%AD%F0%9D%98%A6&utf16be=true&separator=%20&base=hexadecimal&padding=true&prefix=false&bom=false
All unicode tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Quickly find code positions of all Unicode values.
Quickly decode code positions to Unicode values.
Quickly encode Unicode values to UTF-8 encoding.
Quickly encode Unicode values to UTF-16 encoding.
Quickly encode Unicode values to UTF-32 encoding.
Quickly create a picture from Unicode symbols.
Quickly generate random Unicode text in a given range.
Quickly generate all Unicode values from the given code point interval.
Quickly filter Unicode symbols that are within the given code point interval.
Quickly split Unicode data into graphemes.
Quickly find the length of Unicode text.
Quickly increase or decrease Unicode code point values.
Quickly reverse the order of symbols in Unicode text.
Quickly rotate Unicode characters to the left and right.
Quickly create multiple copies of Unicode text.
Quickly extract all characters from Unicode text.
Quickly split Unicode data into pieces.
Quickly split Unicode text into chunks of constant length.
Quickly merge Unicode snippets together.
Quickly shorten Unicode text to the given length.
Quickly left-pad Unicode text with any character.
Quickly right-pad Unicode text with any character.
Quickly align Unicode data to the center.
Quickly align Unicode data to the right.
Quickly convert ordinary numbers to Unicode numbers in various fonts.
Quickly convert ordinary letters to Unicode letters in various fonts.
Quickly convert ordinary text to fancy Unicode text.
Quickly circularly rearrange Unicode symbols.
Quickly encode Unicode data to HTML entities.
Quickly encode Unicode values to base64.
Quickly encode Unicode values to a data URI.
Quickly convert Unicode data to base-2 (binary).
Quickly convert Unicode data to base-8 (octal).
Quickly convert Unicode data to base-10 (decimal).
Quickly convert Unicode data to base-16 (hexadecimal).
Coming soon These unicode tools are on the way
Name Unicode Symbols
Spell out the names of Unicode characters in the input text.
URL-encode Unicode
URL-escape Unicode text.
URL-decode Unicode
URL-unescape Unicode text.
Convert Binary to Unicode
Convert base-2 data to Unicode encoding.
Convert Octal to Unicode
Convert base-8 data to Unicode encoding.
Convert Decimal to Unicode
Convert base-10 data to Unicode encoding.
Convert Hex to Unicode
Convert base-16 data to Unicode encoding.
Convert Unicode to Any Base
Convert Unicode text to any radix.
Convert Any Base to Unicode
Convert any radix data to Unicode.
Convert Unicode to ASCII
Convert Unicode characters to ASCII characters.
Convert ASCII to Unicode
Convert ASCII characters to Unicode characters.
Convert Unicode to Latin1
Convert Unicode text to Latin1 encoding.
Convert Latin1 to Unicode
Convert Latin1 encoded data to Unicode.
Convert Unicode to Bytes
Convert Unicode characters to raw bytes.
Convert Bytes to Unicode
Convert raw bytes to Unicode.
Sort Unicode
Sort Unicode graphemes, words, and sentences.
Validate Unicode
Check if the given Unicode has valid encoding.
Convert Unicode to Punycode
Encode Unicode text to Punycode encoding.
Convert Punycode to Unicode
Decode Punycode encoding to Unicode.
Decode Base64 to Unicode
Convert base64 data to Unicode text.
Encode Unicode to Data URI
Convert Unicode to a valid data URL.
Decode Data URI to Unicode
Convert a valid data URL to Unicode text.
Convert HTML to Unicode
Decode HTML entities to Unicode data.
Convert UTF8 to Unicode
Decode UTF8 encoding to Unicode.
Convert UTF16 to Unicode
Decode UTF16 encoding to Unicode.
Convert UTF32 to Unicode
Decode UTF32 encoding to Unicode.
Convert Unicode to Uppercase
Convert all Unicode characters to uppercase.
Convert Unicode to Lowercase
Convert all Unicode characters to lowercase.
Convert Unicode to Randomcase
Randomize case of all Unicode characters.
Convert Unicode to Lowercase
Convert all Unicode characters to lowercase.
JSON Stringify Unicode
Encode Unicode to JSON.
JSON Parse Unicode
Decode JSON to Unicode.
Analyze Unicode
Print statistics about Unicode data and code points, etc.
Generate Zalgo Unicode
Let Zalgo destroy your Unicode.