Binary Code Translator

Convert text to binary, hexadecimal, or Base64 encoding. Understand the fundamentals of computer data structuring.

Translation result...

Convert bytes, not a fixed number of bits per letter

This converter encodes text as UTF-8 bytes, then displays those bytes as binary, hexadecimal or Base64. ASCII-compatible characters such as A occupy one byte. A Unicode scalar value can take one to four UTF-8 bytes; an accented letter or emoji need not occupy the same space as A.

Binary and Morse describe different representations. Binary displays bits in bytes here. Morse groups short and long marks with meaningful silent gaps. Neither encoding translates a sentence into another language or makes its contents secret.

Decode a result without losing its boundaries

Choose Data to Text and the matching format. Binary input requires complete eight-bit groups separated by whitespace; 01000001 is A. Hexadecimal accepts pairs of digits, with or without whitespace. Base64 requires a valid padded string; embedded whitespace is ignored.

Invalid input format means a group, padding or UTF-8 sequence is invalid. Check the source instead of adding guessed zeroes. A decimal number or Morse pattern is not an accepted byte representation in this tool. Use Swap to move a valid result back into the input and verify the original text.

Try a multibyte round trip

Enter A, note its one-byte output, then enter é. The second example occupies two bytes: C3 A9. Decode those two bytes together to recover é; decoding C3 alone is incomplete UTF-8. Spaces in the original text also become bytes and must not be confused with the separators used to display binary groups.

UTF-8 examples

UTF-8 examples
TextBinary bytesHexadecimalBase64
A0100000141QQ==
é11000011 10101001C3 A9w6k=
SOS01010011 01001111 0101001153 4F 53U09T