Text to Binary
Turn text into binary, octal, decimal or hexadecimal UTF-8 bytes, or decode bytes back to text.
Unicode scalar values: · UTF-8 bytes: · Digits: · Characters:
Method
Encode and decode exact UTF-8 bytes, not UTF-16 code units or grapheme clusters. A is 41 in hexadecimal; é is C3 A9; 😀 is F0 9F 98 80. Whitespace, NUL, BOM and combining sequences are preserved without normalization. Without spaces, widths are binary 8, octal 3, decimal 3 and hex 2: AB becomes decimal 065066. Decimal 65 alone is accepted; 6566 is invalid. Invalid bytes, unpaired surrogates and malformed UTF-8 reject the whole result. Limits: encode 65536 UTF-16 units and bytes; decode 589824 input units, 524288 digits and 65536 bytes/output units.
Copied
Copy failed. Select the result and copy it manually.
About Text to Binary
Turn text into binary, octal, decimal or hexadecimal UTF-8 bytes, or decode bytes back to text.
é → C3 A9; 😀 → F0 9F 98 80; AB → 065066
Model · UTF-8
Use Cases
How to use
Enter text to convert
View binary representation
Or paste binary to decode
Copy the result
Pro Tips
- Limits: encode 65536 UTF-16 units and bytes; decode 589824 input units, 524288 digits and 65536 bytes/output units.
Frequently Asked Questions
Encode and decode exact UTF-8 bytes, not UTF-16 code units or grapheme clusters. A is 41 in hexadecimal; é is C3 A9; 😀 is F0 9F 98 80. Whitespace, NUL, BOM and combining sequences are preserved without normalization.
Without spaces, widths are binary 8, octal 3, decimal 3 and hex 2: AB becomes decimal 065066. Decimal 65 alone is accepted; 6566 is invalid. Invalid bytes, unpaired surrogates and malformed UTF-8 reject the whole result. Limits: encode 65536 UTF-16 units and bytes; decode 589824 input units, 524288 digits and 65536 bytes/output units.