Bit Width
DEC
HEX 0x
OCT 0o
BIN 0b
7
6
5
4
3
2
1
0
ASCII'A'|U+0041

Number Base Converter is a free online tool for converting numbers between binary, octal, decimal, and hexadecimal. Supports 8/16/32/64-bit two's complement and a visual bit editor. Runs entirely in your browser.

What is Number Base Conversion?

This tool converts numbers between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16) in real time. It also supports 8/16/32/64-bit two's complement representation with a visual bit editor. Related: Color converter for hex color codes, Storage unit converter for byte calculations.

Two's Complement

Two's complement is the standard way to represent signed integers in binary. The most significant bit (MSB) acts as the sign bit: 0 for positive, 1 for negative. To get the negative value, invert all bits and add 1. For example, in 8-bit mode, -1 is represented as 11111111 (0xFF).

Can I edit individual bits?

Yes. The bit editor shows the binary representation and lets you toggle individual bits, instantly updating all other base conversions.

Related Tools

Base Reference (0-15)
DECHEXOCTBIN
000000000
101010001
202020010
303030011
404040100
505050101
606060110
707070111
808101000
909111001
100A121010
110B131011
120C141100
130D151101
140E161110
150F171111