在二進位、八進位、十進位和十六進位之間轉換數字。編輯任意欄位,其他欄位會即時更新。大數值精確無誤,不會四捨五入。
如何使用 進位制轉換
在四個欄位中的任意一個輸入數字。
輸入時其他進位制會即時更新。
切換大寫十六進位,並一鍵複製任意值。
This number base converter switches whole numbers between binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16). Every field is editable, so you can type into any base and read the equivalent in the others instantly.
A number base is just how many distinct digits a system uses before it rolls over to the next position. Decimal uses ten (0 to 9), binary uses two (0 and 1), and hexadecimal uses sixteen, adding a to f for the values ten to fifteen, which is why a single hex digit neatly represents four binary bits.
Conversions use arbitrary-precision integers (BigInt), so even very long values stay exact, without the rounding errors that affect ordinary floating-point numbers once they get large.
Bases come up all over low-level work: hexadecimal for colors, bytes and memory addresses, binary for flags and network masks, and octal for Unix file permissions. Reading the same value across bases makes debugging and bit-twiddling much easier.
A leading minus sign is supported for negatives, spaces are ignored so you can group digits for readability, and an option shows hexadecimal in upper or lower case.
It converts integers only; fractional base conversion is a separate problem and is intentionally left out so the results stay exact. Everything runs in your browser.
常見問題
二進位(2 進位)、八進位(8 進位)、十進位(10 進位)和十六進位(16 進位)。你可以編輯其中任意一個,其餘會隨之更新。
處理。它使用任意精度整數(BigInt),因此即使非常長的值也能精確轉換,不會出現普通浮點數那樣的捨入誤差。
可以,支援前導減號。空格會被忽略,因此你可以分組數字以便閱讀。
不支援,它轉換整數。分數進位制轉換是另一個問題,為保證結果精確而特意省略。
嵌入此工具
將此工具加入你自己的網站。複製下方的程式碼片段,它會自動保持最新。
<iframe src="https://monu.tools/embed/zh-Hant/number-base-converter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>相關工具