onlineunicodetools logo

Unicode to utf-8 converter

World's simplest unicode tool

This online utility encodes Unicode data to UTF-8 encoding. Anything that you paste or enter in the input area automatically gets converted to UTF-8 and is printed in the output area. It supports all Unicode symbols and it works with emoji characters. You can choose binary, octal, decimal, or hexadecimal output base for UTF-8 bytes or set an arbitrary base. You can also adjust the delimiter between the bytes and add a byte prefix. Created by encoding gurus from team Browserling.
we're on twitter! tweet tweet
Love what we do? You can follow us on Twitter for updates!
fullscreen fullscreen_exit
UTF-8 Base
Convert Unicode symbols to UTF-8 in this base.
Enter the custom base here. (Possible values from 2 to 36.)
Byte Delimiter
Set the byte delimiter character here.
Byte Format
Use prefix "0b" for binary, prefix "o" for octal, and prefix "0x" for hex values.
Add zero padding to small values to make them all the same length.
Unicode to utf-8 converter tool What is a unicode to utf-8 converter?
This browser-based utility converts your Unicode text to UTF-8 encoding. UTF stands for Unicode Transformation Format and it's the most popular Unicode encoding in the world. The number "8" in UTF-8 means that 8-bit numbers (single-byte numbers) are used in the encoding. To convert your input to UTF-8, this tool splits the input data into individual graphemes (letters, numbers, emojis, and special Unicode symbols), then it extracts code points of all graphemes, and then turns them into UTF-8 byte values in the specified base. UTF-8 uses the following rules to encode the data. If the code point value is less than 128, then it's the same value is used as the output byte value. If the code point is greater than 127, then it's turned into a sequence of two, three, or four bytes, where each byte of the sequence is between 128 and 255. You can easily switch between the four most popular bases for the UTF-8 bytes. Namely, you can choose to output UTF-8 as binary, octal, decimal, or hexadecimal numbers. If you need any other base, then you can select the "Custom Base" option and specify the required base value in the field below it. This utility supports bases up to 36. If you need to output UTF-8 in base-64, then use our Unicode to base-64 converter. You can also adjust the delimiter that's used between the bytes in the output data. By default, it's the space character but you can set it to any other symbol. There are two more useful features that we have added. One of them lets you improve the appearance of bytes by padding short values with zeros to achieve a full byte length. Binary values get padded to eight bits, octal values to three symbols, and hex values to two symbols. The other option lets you add a prefix in front of bytes. In binary, the prefix "0b" is added, in octal, the prefix "o" is added, and in hexadecimal, the prefix "0x" is added.
Unicode to utf-8 converter examples Click to use
Napoleon Bonaparte's Quote
This example converts a Napoleon Bonaparte's quote to UTF8 bytes in radix of 8 (octal). The quote is written in bold-italic Unicode letters and the output is UTF8 encoding of these letters. It uses a space character between the octets and adds zeros in front of smaller bytes so that they are all 3 characters long.
𝑰𝒎𝒂𝒈𝒊𝒏𝒂𝒕𝒊𝒐𝒏 𝒓𝒖𝒍𝒆𝒔 𝒕𝒉𝒆 𝒘𝒐𝒓𝒍𝒅.
360 235 221 260 360 235 222 216 360 235 222 202 360 235 222 210 360 235 222 212 360 235 222 217 360 235 222 202 360 235 222 225 360 235 222 212 360 235 222 220 360 235 222 217 040 360 235 222 223 360 235 222 226 360 235 222 215 360 235 222 206 360 235 222 224 040 360 235 222 225 360 235 222 211 360 235 222 206 040 360 235 222 230 360 235 222 220 360 235 222 223 360 235 222 215 360 235 222 205 056
Required options
These options will be used automatically if you select this example.
Convert Unicode symbols to UTF-8 in this base.
Set the byte delimiter character here.
Use prefix "0b" for binary, prefix "o" for octal, and prefix "0x" for hex values.
Add zero padding to small values to make them all the same length.
Special Unicode Symbols
In this example, we convert four interesting Unicode characters to UTF8-encoded binary bytes. We add a prefix "0b" in front of the binary values to make it unambiguous that the base is binary and pad some of them with zeros to achieve the length of 8 characters.
☘ ✯ ☏ ☂
0b11100010, 0b10011000, 0b10011000, 0b00100000, 0b11100010, 0b10011100, 0b10101111, 0b00100000, 0b11100010, 0b10011000, 0b10001111, 0b00100000, 0b11100010, 0b10011000, 0b10000010
Required options
These options will be used automatically if you select this example.
Convert Unicode symbols to UTF-8 in this base.
Set the byte delimiter character here.
Use prefix "0b" for binary, prefix "o" for octal, and prefix "0x" for hex values.
Add zero padding to small values to make them all the same length.
Bakery Emojis in Base-21
In this example, we select a custom base from the output base dropdown and enter the value 21 in the custom base field. We then load a list of Unicode bakery products emoji as the input and UTF-8 encode them. We also use a dash symbol to separate base-21 output bytes.
🍞 Bread 🥐 Croissant 🥖 Baguette Bread 🥨 Pretzel 🥯 Bagel
b9-7c-6f-7b-1b-33-59-4h-4d-4g-a-b9-7c-7i-6i-1b-34-59-56-50-5a-5a-4d-55-5b-a-b9-7c-7i-73-1b-33-4d-4j-5c-4h-5b-5b-4h-1b-33-59-4h-4d-4g-a-b9-7c-7i-80-1b-3h-59-4h-5b-5h-4h-53-a-b9-7c-7i-87-1b-33-4d-4j-4h-53
Required options
These options will be used automatically if you select this example.
Convert Unicode symbols to UTF-8 in this base.
Enter the custom base here. (Possible values from 2 to 36.)
Set the byte delimiter character here.
Use prefix "0b" for binary, prefix "o" for octal, and prefix "0x" for hex values.
Add zero padding to small values to make them all the same 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-utf8?input=%F0%9D%91%B0%F0%9D%92%8E%F0%9D%92%82%F0%9D%92%88%F0%9D%92%8A%F0%9D%92%8F%F0%9D%92%82%F0%9D%92%95%F0%9D%92%8A%F0%9D%92%90%F0%9D%92%8F%20%F0%9D%92%93%F0%9D%92%96%F0%9D%92%8D%F0%9D%92%86%F0%9D%92%94%20%F0%9D%92%95%F0%9D%92%89%F0%9D%92%86%20%F0%9D%92%98%F0%9D%92%90%F0%9D%92%93%F0%9D%92%8D%F0%9D%92%85.&separator=%20&base=octal&padding=true&prefix=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 sort Unicode glyphs in increasing or decreasing order.
Quickly find the length of Unicode text.
Quickly increase Unicode code point values.
Quickly 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 combine input Unicode with diacritical marks.
Quickly circularly rearrange Unicode symbols.
Quickly encode Unicode data to HTML entities.
Quickly URL-escape Unicode symbols.
Quickly encode Unicode values to base64.
Quickly encode Unicode values to a data URI.
Quickly convert Unicode characters to raw bytes.
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).
Quickly convert Unicode symbols to raw ASCII bytes.
Quickly convert ASCII bytes to Unicode symbols.
Quickly create a picture from Unicode emojis.
Release Zalgo on your Unicode text.
Coming soon These unicode tools are on the way
Name Unicode Symbols
Spell out the names of Unicode characters in the input 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 Latin1
Convert Unicode text to Latin1 encoding.
Convert Latin1 to Unicode
Convert Latin1 encoded data to Unicode.
Convert Bytes to Unicode
Convert raw bytes to Unicode.
Remove Combining Characters
Delete diacritical marks from Unicode data
Remove Zalgo from Unicode
Make Unicode Zalgo text readable again.
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.
Shuffle Unicode Symbols
Randomly rearrange the order of input graphemes.
Analyze Unicode
Print statistics about Unicode data and code points, etc.