Back to tools

Number Base Converter

Convert numbers between binary, octal, decimal, and hexadecimal instantly.

BIN
OCT
255
DEC
0xFF
HEX

Decimal

255

Bits needed

8

Is power of 2

No

Is even

No

DECHEXOCTBIN
0000000
1110001
2220010
3330011
4440100
5550101
6660110
7770111
88101000
99111001
10A121010
11B131011
12C141100
13D151101
14E161110
15F171111

About This Tool

Number Base Converter translates integers between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Enter a value in any base and all others update simultaneously.

Binary is the native language of computers - every integer is stored as a sequence of 0s and 1s. Hexadecimal is compact shorthand for binary used in memory addresses, color codes, and bytecode. Octal is used in Unix file permissions.

Supports numbers up to the JavaScript safe integer limit (2^53 - 1). All conversions use parseInt() with explicit base and toString() with radix. Calculations run entirely in the browser.