- What is base conversion and why is it needed?
- Base conversion is the process of converting numbers between different number systems. Common bases include: Binary (base 2, 0-1) for low-level computer operations; Octal (base 8, 0-7) for Unix file permissions; Decimal (base 10, 0-9) our everyday number system; Hexadecimal (base 16, 0-9, A-F) for memory addresses and color codes. Base conversion is essential in programming, debugging, network engineering, and system administration.
- What are JavaScript number precision limits, and how does this tool handle them?
- JavaScript uses IEEE 754 double-precision floating-point numbers, with a safe integer range of -2^53 to 2^53 (i.e., -9007199254740991 to 9007199254740991). For numbers beyond this range, this tool automatically uses BigInt for arbitrary-precision arithmetic, ensuring accurate conversion of large numbers. BigInt can handle integers of any size without precision loss.
- How do I convert negative numbers? What is two's complement?
- Negative numbers are represented using two's complement in computers. The conversion process: 1) Take the absolute value in binary; 2) Invert all bits; 3) Add 1. For example, -5 in 8-bit two's complement is 11111011. This tool supports signed integer conversion, automatically handling two's complement conversion to ensure negative numbers are correctly converted between bases.
- How do I use custom bases (base 2-64)?
- This tool supports custom bases from 2 to 64. Standard character mapping: 0-9 for values 0-9, A-Z for values 10-35 (case-insensitive), a-z for values 36-61, and symbols (+, /) for values 62-63. For example, Base-32 uses 0-9 and A-V, while Base-64 uses the full character set. After selecting a custom base, input numbers must conform to that base's character set rules.
- Is this tool free? Is my data safe?
- Yes, this tool is completely free to use with no registration or payment required. All conversions are performed locally in your browser using client-side JavaScript. Your numbers and conversion results are never uploaded to any server, ensuring complete privacy and data security. The tool works offline, allowing you to perform conversions even without an internet connection.