進位制轉換器
在任一欄位輸入,BIN / OCT / DEC / HEX 四種進位即時同步。
數值輸入
輸入任一進位即時同步
常用預設值
位元視覺化
Bit Strip
位元條
數值資訊
Byte 分解
MSB → LSB關於進位制
電腦底層只認識二進位(0 和 1),但人類閱讀大數字時十六進位(0–F)或十進位更方便。八進位在 UNIX 檔案權限中常見(chmod 755)。四種進位之間可以互轉,本工具使用 JavaScript BigInt,不受 2⁵³ 精度限制。
二進位每個位元(bit)代表一個 2 的冪次:最右邊是 2⁰=1,往左依序是 2¹=2、2²=4……。十六進位每個字元等於 4 個位元(一個 nibble),因此兩個十六進位字元正好代表一個 byte(8 bit)。
常用特殊值:255(0xFF)= 8 位元全 1 遮罩;65535(0xFFFF)= 16 位元遮罩;4294967295(0xFFFFFFFF)= 32 位元遮罩。這些 2^n−1 形式的值位元全為 1,常用於 AND 遮罩運算。
快速導覽
使用情境、常見問題與相關工具
把需要的說明放在工具下方,讓第一次使用與之後回來複用都更順。
英文搜尋: number base converter、binary hex decimal、BIN OCT DEC HEX converter、bit visualizer、BigInt
使用方式
先完成一次順手的操作
- 在 BIN / OCT / DEC / HEX 任一欄位輸入數字。
- 其他三個欄位即時同步,右側位元條顯示每個位元。
- 點選快速預設值直接載入,點 ⎘ 複製任一格式。
常見情境
這個工具實際適合拿來做什麼
- 位元遮罩操作確認 0xFF、0xFFFF 等遮罩值在各進位制的表示。
- 記憶體位址把十六進位記憶體位址轉換為二進位來理解位元排列。
常見問題
先把常見疑問說清楚
- 支援負數嗎?
- 目前僅支援非負整數(0 以上)。
- BigInt 有什麼優勢?
- 突破 JavaScript Number 的 2⁵³ 精度限制,可處理任意大整數。
Quick guide
Use cases, answers, and nearby tools
Compact below-tool notes that help first-run users and repeated visitors move faster without changing the main interface.
Chinese search: 進位制轉換、二進位十六進位、BIN OCT DEC HEX、位元計算、BigInt
How to use
Run a clean first pass
- Enter a number in any of the BIN / OCT / DEC / HEX fields.
- The other three sync instantly; the bit strip lights up each bit.
- Tap a preset chip or click ⎘ to copy any format.
Examples
Real jobs this page helps with
- Bitmask operationsVerify mask values like 0xFF or 0xFFFF across all bases at a glance.
- Memory addressesConvert hex addresses to binary to understand bit layout.
FAQ
What people usually want to know
- Does it support negative numbers?
- Not currently — only non-negative integers (≥ 0).
- Why BigInt?
- It removes JavaScript's 2⁵³ precision limit so arbitrarily large integers work correctly.