Number Base Converter
Convert between binary, octal, decimal, hexadecimal, and any custom base (2-36). Bit visualization and two's complement display. 100% client-side — no data leaves your browser.
Two's Complement (Signed Integers)
Two's complement representation for common bit widths. For negative numbers, shows the signed binary representation.
About Number Base Conversion
Number base conversion (also called radix conversion) is the process of converting a number from one positional numeral system to another. Computers fundamentally operate in binary (base 2), but humans typically work with decimal (base 10), and programmers frequently use hexadecimal (base 16) and octal (base 8) for convenience.
Binary (Base 2)
Binary uses only two digits: 0 and 1. It is the native language of digital computers, where each binary digit (bit) represents an on/off state in a transistor. Binary is used in low-level programming, bitwise operations, network subnetting, and hardware design.
Octal (Base 8)
Octal uses digits 0-7. It was historically popular in computing because each octal digit maps to exactly three binary digits. Octal is still used in Unix file permissions (e.g., chmod 755) and some programming contexts.
Hexadecimal (Base 16)
Hexadecimal uses digits 0-9 and letters A-F. Each hex digit maps to exactly four binary digits (one nibble), making it a compact way to represent binary data. Hex is ubiquitous in memory addresses, color codes (#FF5733), MAC addresses, and debugging.
Two's Complement
Two's complement is the standard method for representing signed integers in binary. The most significant bit serves as the sign bit: 0 for positive, 1 for negative. For an N-bit number, the range is -2^(N-1) to 2^(N-1)-1. For example, an 8-bit signed integer ranges from -128 to 127.
Large Number Support
This tool uses JavaScript's BigInt for arbitrary-precision integer arithmetic, allowing you to convert numbers far beyond the 32-bit or 64-bit range without losing precision.
100% Client-Side Processing
All conversions happen entirely in your browser. No data is transmitted to any server. Your numbers never leave your device.