免費在線數基轉換器
二進制、八進制、十進制和十六進制之間即時切換。輸入任何基數的值,然後查看所有常見表示立即更新 - 對於低階程式設計、網路和偵錯非常有用。
在底層使用 BigInt,因此大的二進制和十六進制值保持準確。一切都在您的瀏覽器本地運行。
Frequently Asked Questions
What number bases are supported?
Convert between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Enter a value in any base and all representations update instantly.
Can it handle large numbers?
Yes. Dokall uses BigInt internally, so very large binary and hexadecimal values (beyond JavaScript's Number.MAX_SAFE_INTEGER) stay accurate. Useful for crypto keys, bitmask operations, and 64-bit integers.
How do I convert decimal to hex?
Enter a decimal number in the decimal field. The hexadecimal field updates automatically. For example, 255 becomes FF, 4096 becomes 1000.
What are common uses for base conversion?
Developers use base conversion for bitwise operations, color codes (hex), memory addresses, network subnet calculations, and debugging low-level data. Students use it for computer science coursework.
Does it support negative numbers?
Yes. Negative values are converted using two's complement representation in binary. Enter a negative decimal and see the corresponding binary, octal, and hex values.