Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal in real time, and run bitwise operations (AND, OR, XOR, NOT, and shifts). Common conversions include binary to decimal, decimal to binary, hex to decimal, decimal to hex, and binary to hex. Arbitrary-precision via BigInt, so even very large integers convert exactly — entirely in your browser.
How to use Number Base Converter
- Type a number into any base field — the others update instantly.
- Use 0b, 0o, or 0x prefixes if you like; a leading minus is allowed.
- Open the bitwise calculator to AND/OR/XOR/shift two values and copy the result.
Frequently asked questions
- How do I convert binary to decimal?
- Type your binary digits into the binary field (a 0b prefix is optional) and read the decimal value from the decimal field — every base updates at once.
- How do I convert decimal to hexadecimal?
- Enter the number in the decimal field and read the result from the hex field. You can also paste a 0x value to convert the other way.
- How large a number can it handle?
- It uses JavaScript BigInt, so there is no fixed bit-width limit — conversions stay exact for arbitrarily large integers.
- Does it support negative numbers?
- Yes. Prefix the value with a minus sign in any base; the bitwise panel also works on negative operands using BigInt semantics.