RevealTheme logo

十六進位轉二進位轉換工具

將十六進位數轉換為二進位。每個十六進位位元恰好展開為4個二進位位元。

如何使用本工具

  1. 1

    Type or paste a hex value into the input box, for example 1A2B or 0x1A2B.

  2. 2

    An optional leading 0x and any spaces are removed automatically before conversion.

  3. 3

    Read the binary result below the box, shown as 4-bit groups separated by spaces.

  4. 4

    If the box stays empty, check your input contains only the digits 0-9 and letters A-F.

什麼是十六進位轉二進位轉換工具?

十六進位到二進位的轉換是逐位元替換的過程:0 → 0000,F → 1111,以此類推。結果會按半位元組(4位元一組)分組以便於閱讀。這在以底層位元模式讀取記憶體位址、顏色值和機器指令時非常有用。

常見使用場景

  • Decoding a hex color like FF8800 into its red, green, and blue bit patterns when working on a design or shader.

  • Inspecting the binary layout of a memory address or register value printed by a debugger.

  • Teaching or learning how each hex digit corresponds to a 4-bit nibble in a computer-science class.

  • Checking the bit pattern of a hardware flag or bitmask defined in hex in firmware or driver code.

  • Translating a hex opcode or byte from a disassembly into binary to read individual instruction fields.

  • Verifying that a hex constant in a config file expands to the bit pattern you expect before committing it.

相關工具