- Tools /
- Text to binary
Text to binary
Convert text to UTF-8 binary or hexadecimal code and back.
Code format
How text becomes binary code
UTF-8 represents each character with one or more bytes. Each byte is a group of 8 bits. A takes one byte (01000001), Я takes two (11010000 10101111) and 😀 takes four.
How to convert text or code
- Type or paste text into the text field. The code appears in the other field.
- To decode bytes, paste them into the code field. You can separate bytes with spaces or line breaks, or enter them as one string.
- Select hexadecimal to represent each byte with two digits.
The converter processes data in your browser.
Frequently asked questions
Why do Cyrillic letters take more bytes?
In UTF-8, English letters and digits take one byte each and Russian letters take two. Hello takes 5 bytes and Привет takes 12.
What is hexadecimal?
Hexadecimal writes the same bytes with digits 0–9 and letters A–F. The binary byte 01000001 is written as 41 in hexadecimal.
Why won’t my code convert to text?
Check the digits and length. Each byte needs 8 binary or 2 hexadecimal digits. Bytes from Windows-1251 or another encoding may be invalid in UTF-8.
🍪 By using this website, you agree to the processing of cookies and collection of technical data to improve website performance in accordance with our privacy policy.