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'