十進位轉二進位轉換器
將十進位數轉換為二進位、十六進位和八進位,一次性得出所有進位。
如何使用本工具
- 1
Type or paste a decimal (base-10) whole number into the input box.
- 2
Read the binary, hexadecimal (shown with a 0x prefix), and octal forms in the table that appears below.
- 3
Change the number to convert a different value, or clear the box to hide the results.
- 4
Copy any line of output you need straight from the table into your code or terminal.
什麼是十進位轉二進位轉換器?
每種進位都在不同的場景下各有用途。十進位對人來說易於理解。二進位展示的是實際儲存在記憶體中的位元。十六進位是位元組的精簡表示。八進位則主要用於Unix的檔案權限。在這些進位之間進行轉換是開發者經常要做的事;本工具會一次性完成三種轉換。
常見使用場景
Checking the binary pattern of a value while debugging bitmask or flag-based logic in your code.
Translating a decimal color or byte value into hex when writing CSS, HTML, or low-level data.
Working through computer-science homework on number bases and verifying your hand conversions.
Reading an octal Unix file-permission value such as 755 and seeing its binary bits.
Confirming what bits an embedded-systems register value sets before flashing firmware.
Quickly converting a network or protocol constant between decimal, hex, and octal during analysis.