Home / Tools / Encode and decode
Text to Binary Converter
Convert text to binary, hex, octal or decimal bytes and back.
Runs in your browserFree, no sign-up
Loading tool…
How to use it
- Pick binary, hex, octal or decimal.
- Choose Text → Code or Code → Text.
- Copy the result.
About this tool
Text is encoded as UTF-8 first, so emoji and non-Latin letters work. Each byte is shown in binary (8 digits), hex, octal or decimal. Decoding accepts bytes separated by spaces or commas, or one long string of binary.
Your input is processed on your device. Nothing is sent to a server or stored.
Questions
Why does ✓ give three bytes?
UTF-8 uses 1 to 4 bytes per character. ASCII letters use one byte, most symbols and Indian scripts use three.
Encode and decode
All encode and decodeMore tools like this
Encode and decodeBase64 Encode & DecodeEncode text or files to Base64 and decode Base64 back.Opens filesOpen →Encode and decodeURL Encode & DecodePercent-encode text, decode URLs and split a URL into parts.Opens filesOpen →Encode and decodeHTML Entity EncoderEscape and unescape HTML entities like < and &.Opens filesOpen →Encode and decodeJWT DecoderDecode a JSON Web Token and check when it expires.Open →Encode and decodeHash GeneratorMD5, SHA-1, SHA-256, SHA-384 and SHA-512 of text or files.Opens filesOpen →Encode and decodeNumber Base ConverterConvert between binary, octal, decimal and hexadecimal.Open →Encode and decodeMorse Code TranslatorTranslate text to Morse code and Morse back to text.Open →Encode and decodeCaesar Cipher & ROT13Encode and decode Caesar shifts, ROT13 and ROT47.Open →