Skip to main content

Number Base Converter

Number Base Converter | Rustcode

Number Base Converter

INPUT 0 characters
OUTPUT 0 characters

Conversion Options

Formatting Options

Precision Options

How to Use

1. Select Input Base: Choose the base of your input number (Binary, Octal, Decimal, or Hexadecimal).

2. Enter Number: Input a number in the selected base (e.g., 1010.101 for Binary, FF.A3 for Hex).

3. Set Options: Adjust formatting and precision options in the control panel.

4. Convert: Click "Convert Number" to see results in all bases.

5. Copy Output: Click the copy icon next to a specific base to copy that result.

6. Keyboard Shortcut: Press Ctrl+Enter (Cmd+Enter on Mac) to convert.

• Supported Bases: Binary (2), Octal (8), Decimal (10), Hexadecimal (16).

• Fractional Numbers: Supports decimal points for fractional parts.

• Binary Grouping: Group binary output by nibbles (4 bits), bytes (8 bits), or none.

• Octal Prefix: Add "0o" prefix to octal output for clarity.

• Precision Control: Adjust decimal places for fractional parts (up to 20).

Q: What number bases are supported?
A: Binary (Base 2), Octal (Base 8), Decimal (Base 10), and Hexadecimal (Base 16).

Q: Can it handle negative numbers?
A: Yes, negative numbers are supported by adding a minus sign (e.g., -101 in binary).

Q: How precise are the conversions?
A: You can set up to 20 decimal places for fractional parts, with a default of 8.

Q: Can I convert large numbers?
A: Yes, but JavaScript's number precision may limit very large numbers.

Q: Is my input secure?
A: Yes, all processing happens locally in your browser.