Base Converter
Convert numbers between binary, octal, decimal, hex
Whole nonnegative numbers only. Prefix detection follows the selected base, so 0B12 remains hexadecimal in base 16.
Quick values
Processed on this device. Your text is not uploaded.
Converted numbers
Bit information
- Bit length
- —
- Byte length
- —
- Ones
- —
- Zeros
- —
About Base Converter
Our free Base Converter (Number System Converter) instantly converts numbers between binary, octal, decimal, hexadecimal, and many other bases. Programmers read memory addresses and bit masks in hex, students check homework on number systems, and network engineers turn IP address octets and subnet masks into binary.
The converter supports all common bases including binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16), plus additional bases like ternary, quaternary, quinary, senary, duodecimal, base 32, and base 36. Results are displayed simultaneously across all supported bases with formatted output for easy reading.
Beyond simple conversion, the tool provides detailed bit information including bit length, byte length, and the count of ones and zeros in the binary representation. Results appear instantly, and nothing you enter is uploaded.
Key Features
- Convert between binary, octal, decimal, hexadecimal, and 7 additional bases
- Simultaneous display of results across all supported number systems
- Formatted binary output with 4-bit grouping for easy reading
- Formatted hexadecimal output with 2-character grouping
- Bit information panel showing bit length, byte length, ones count, and zeros count
- Quick-value buttons for commonly used numbers (255, 1024, FF, 11111111)
- Automatic prefix detection and removal (0b, 0o, 0x)
- One-click copy to clipboard for any result
- Real-time conversion with debounced input for smooth performance
- Input validation with clear error messages for invalid characters
How to Use the Base Converter
- Select the input base: Choose the number system of the value you want to convert (e.g., Decimal, Binary, Hexadecimal) from the dropdown.
- Enter your number: Type the value into the input field. The tool validates your input against the selected base automatically.
- View all conversions: Results appear instantly in binary, octal, decimal, hexadecimal, and additional bases.
- Check bit information: Review the bit-level details including total bits, bytes, and the distribution of ones and zeros.
- Copy any result: Click the copy icon next to any base result to copy it to your clipboard.
- Try quick values: Use the preset buttons to quickly load common values and see their conversions across all bases.
Use Cases
- Programming & debugging: Convert memory addresses, color codes, and byte values between hex, binary, and decimal.
- Networking: Translate IP addresses, subnet masks, and MAC addresses between different number representations.
- Digital electronics: Analyze register values, bitwise operations, and signal patterns in binary and hexadecimal.
- Computer science education: Learn and practice number system conversions for coursework and exams.
- Web development: Convert CSS color values between hexadecimal and decimal RGB components.
- Cybersecurity: Analyze hex dumps, decode binary payloads, and interpret protocol data.
- Unix/Linux administration: Convert file permission values between octal and binary representations.
Frequently Asked Questions
What number bases are supported?
The tool supports binary (2), ternary (3), quaternary (4), quinary (5), senary (6), octal (8), decimal (10), duodecimal (12), hexadecimal (16), base 32, and base 36.
Can I enter numbers with prefixes like 0x or 0b?
Yes, the converter automatically detects and removes common prefixes (0b for binary, 0o for octal, 0x for hexadecimal) before performing the conversion.
Does the tool support negative numbers?
Currently, the tool supports non-negative integers only. Negative number conversion is not supported at this time.
Why do I see an "Invalid character" error?
This error appears when you enter a digit or character that is not valid for the selected input base. For example, the digit "2" is invalid in binary (base 2), which only uses 0 and 1.
Tips & Best Practices
- Select the correct input base: Always verify that the input base matches the format of the number you are entering to avoid invalid character errors.
- Use quick values to learn: Click the preset buttons to see how common numbers look across different bases and build your intuition.
- Check the bit information: The bit panel is especially useful for programmers who need to understand the binary layout of a value.
- Copy each result: Use the copy buttons next to each result to quickly paste converted values into your code or documents.
- Hexadecimal for compact notation: When working with binary data, convert to hex for a more compact, readable representation.
- Bookmark for quick access: Save this page for instant base conversions whenever you need them during development or study sessions.