🔢

Base Converter

Convert between bases 2-62, supporting BigInt and floating point.

Input

转换设置

Quick Select:

Result

About This Tool

A professional base conversion tool designed for developers. It supports standard Binary, Octal, Decimal, and Hex, as well as any custom base between 2 and 62. Notably, it handles extremely large integers using BigInt to overcome JavaScript number precision limits. It also supports floating-point conversion with customizable decimal precision.

Features

  • 🔄 Arbitrary Bases: Convert between any base from 2 to 62
  • ✨ Auto Detection: Smart detection of 0b, 0o, and 0x prefixes
  • 💎 High Precision: Supports BigInt for extremely large integers
  • 🔢 Floating Point: Convert numbers with decimals with custom precision (6-15 digits)
  • 📊 Common Bases: One-click comparison for Binary, Octal, Decimal, and Hex
  • 🧹 Formatted Output: Supports separators for better readability (e.g., 1,000 or 1111 0000)
  • 🔄 Quick Swap: One-click swap source and target bases
  • 📱 Quick Select: Quick switch buttons for common bases (2/8/10/16)
  • 🛡️ Privacy First: All calculations are done locally in your browser