🔢 Base / Radix Converter

📐 工作原理與說明
字首識別決定輸入進位制:0x / 0X 按 16 進位制、0b / 0B 按 2 進位制、0o / 0O 按 8 進位制,其餘按 10 進位制解析;解析用 BigInt 完成,超過 2^53 的整數也逐位精確;自定義進位制按輸入基數(預設 36)用 BigInt 取模輸出;輸入超過 4096 字元或格式非法時提示並清空結果

Convert numbers between binary, octal, decimal, hexadecimal and any custom base, with text and ASCII support.

示例:
Conversion results across bases can be exported as a CSV comparison table

💡 ASCII / Unicode 轉換

📚 深度解析:進位制轉換

💡 常見使用場景

  • 2/8/10/16 互轉。
  • 除錯暫存器位掩碼時在 16 進位制與 2 進位制間反覆核對,快速定位哪一位寫錯。
換算
255(10)=FF(16)=11111111(2)。

❓ 常見問題(FAQ)

負進位制?
本工具支援常用正進位制。
支援小數轉換嗎?
主要面向整數與字元編碼;進位制小數受有限精度限制,不建議用於需要高精度的場景。

Formula & Standard References

Item Formula / Note Source / Standard
Place value expansion value = sum of digit times base raised to its position Numeral system theory
Sign notation Negative numbers get a leading minus sign with the absolute value converted digit by digit; no fixed-width two's complement or IEEE 754 floating-point encoding is provided. This implementation
Digit alphabet Digits 2–62 follow 0–9, A–Z, a–z, case-sensitive This implementation
⚠️ 使用說明與注意事項