Skip to main content
DevTools24

이진수/텍스트 변환기

텍스트를 이진 표현으로 또는 그 반대로 변환합니다. 이모지를 포함한 UTF-8 인코딩을 지원합니다.

How it works

  • • Each character is converted to its UTF-8 byte representation
  • • Each byte (8 bits) is shown as a sequence of 0s and 1s
  • • Spaces separate each byte for readability
  • • Emoji and special characters use multiple bytes (UTF-8)

Binary Encoding - 기술 세부 정보

Computers store text as binary data. Each character is converted to bytes using an encoding like UTF-8, and each byte is represented as 8 bits (0s and 1s). UTF-8 uses 1-4 bytes per character, with ASCII characters using just 1 byte.

명령줄 대안

# Convert text to binary in bash
echo -n 'Hello' | xxd -b | cut -d' ' -f2-7

# Convert binary to text
echo '01001000 01100101 01101100 01101100 01101111' | perl -lpe '$_=pack"B*",tr/ //dr'