RevealTheme logo

محوّل ثنائي إلى سداسي عشري

حوّل الأرقام الثنائية إلى سداسية عشرية. النظام السداسي العشري أكثر إيجازًا بأربع مرات من الثنائي للقيمة نفسها.

كيفية استخدام هذه الأداة

  1. 1

    Type or paste your binary digits into the input box. Whitespace between groups is fine and gets stripped automatically.

  2. 2

    Read the uppercase hexadecimal result in the box below, which updates instantly as you type.

  3. 3

    Copy the hex value out for use in your code, config, or documentation.

ما هو محوّل ثنائي إلى سداسي عشري؟

يستخدم النظام الثنائي الأساس 2 (الرقمان 0 و1)؛ ويستخدم السداسي العشري الأساس 16 (الأرقام 0-9 والأحرف A-F). يقابل كل رقم سداسي عشري بالضبط 4 أرقام ثنائية، لذا فإن السداسي العشري طريقة أكثر إيجازًا بكثير لكتابة الأرقام الثنائية الكبيرة. هذا التحويل أساسي للبرمجة، وتصحيح أخطاء مقاطع الذاكرة (memory dumps)، وقراءة لغة الآلة.

حالات الاستخدام الشائعة

  • Shorten a long binary literal from a datasheet or register map into compact hex for your firmware code.

  • Translate a binary permission or flag mask into the hex form your config file or API expects.

  • Check a binary value by hand against the hex shown in a debugger or memory viewer.

  • Convert binary output from a logic exercise or homework problem into hex to verify your answer.

  • Turn a binary representation of an RGB channel into the hex pair used in CSS color codes.

  • Prepare hex constants for embedded registers when your reference material only lists the bit pattern in binary.

الأسئلة الشائعة

لماذا يُفضَّل السداسي العشري على الثنائي؟
السداسي العشري أقصر بأربع مرات للقيمة نفسها، وأسهل في القراءة على الأشخاص، ومع ذلك يُقابل الثنائي بشكل سلس.

أدوات ذات صلة