Number Base Converter

Convert between binary, octal, decimal, hexadecimal and any base from 2 to 36 — instantly, in your browser.

255₁₀ = 11111111₂ = 377₈ = FF₁₆. Enter a value below, pick its base, and get every other base at once.

Binary (2)0b11111111
Octal (8)0o377
Decimal (10)255
Hexadecimal (16)0xff
Custom base73

Reference table 0–15

DecimalBinaryOctalHex
0000000
1000111
2001022
3001133
4010044
5010155
6011066
7011177
81000108
91001119
10101012A
11101113B
12110014C
13110115D
14111016E
15111117F

Frequently asked questions

How do I convert binary to decimal?

Multiply each digit by 2 raised to its position (right to left, starting at 0). For example 1011₂ = 1×8 + 0×4 + 1×2 + 1×1 = 11₁₀.

How do I convert decimal to binary?

Divide by 2 repeatedly and record the remainders; read them bottom-up. For example 11 → 11/2=5 r1, 5/2=2 r1, 2/2=1 r0, 1/2=0 r1 → 1011₂.

Why do programmers use hexadecimal?

One hex digit represents exactly 4 bits, so a byte is always two digits (00–FF). That makes hex the compact notation for addresses, colours (#FF5733) and binary data.

What do the 0x, 0b and 0o prefixes mean?

0x marks hexadecimal (0xFF = 255), 0b binary (0b1111 = 15), 0o octal (0o17 = 15). The tool recognises them automatically for the matching input base.

What is the largest supported base?

Base 36 — it uses the digits 0–9 and letters A–Z. It is popular for short URL identifiers because it packs the most information into readable characters.

Subnet Calculator →Base64 →Roman Numerals →Unix Timestamp →