Number Base Converter

Convert between binary, octal, decimal and hex — plus a bitwise calculator.

Processed locally — nothing is uploaded

About Number Base Converter

All four bases update together, and the bitwise side runs AND, OR, XOR, NOT and shifts across two values. BigInt underneath means numbers past 2^53 stay exact instead of quietly rounding.

Convert any integer between binary, octal, decimal and hexadecimal all at once, and run AND, OR, XOR, NOT and bit-shift operations on two values. It is an essential helper for low-level programming, embedded work, networking masks and debugging bit flags.

All four bases stay in sync as you type, so one value can be read in each without converting twice. The bitwise panel earns its place when you are working with permission bits, feature flags or network masks.

Learn how this works

Frequently asked questions

Which bases are supported?

Binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16), all kept in sync as you type in any one of them. These are the bases most commonly used in computing and networking, covering everything from low-level bit manipulation to human-readable decimal numbers and compact hexadecimal color codes. Type in any of the four fields and all the others update instantly, so you can work in whichever base is most natural for your task. This simultaneous conversion is faster than using a command-line calculator or converting one base at a time.

Can it do bitwise operations?

Yes — AND, OR, XOR, NOT and left/right bit shifts on two values, with the result shown across every base. Bitwise operations are fundamental to low-level programming, network masks, graphics, and cryptography, and this tool lets you visualize how they work step-by-step. Enter two numbers in any base, pick an operation, and see the binary representation with the operation highlighted and the result in all four bases. This visual approach makes understanding bitwise logic much easier than working through the math manually.

Does it handle large numbers accurately?

Yes. It uses BigInt, so large integers convert exactly without the rounding errors of normal floating-point numbers. Many calculators and programming languages lose precision with very large numbers due to floating-point representation limits. This tool uses arbitrary-precision integers (JavaScript's BigInt type), so you can convert numbers with hundreds of digits without any rounding. This is critical for cryptography, hashing, and other applications where precision over massive numbers is essential.

More Number Base Converter tools

Related tools