100% FREE — NO SIGNUP

Number Base Converter

Convert between binary, decimal, hex, octal, and any base from 2 to 36. Instant results with bit visualization.

Input

Results

Binary (Base 2)
Click to copy
Octal (Base 8)
Click to copy
Decimal (Base 10)
Click to copy
Hexadecimal (Base 16)
Click to copy
Base 32
Click to copy
Base 36
Click to copy

Bit Visualization (32-bit)

Additional Info

Number Base Conversion

Number base conversion (also called radix conversion) is the process of changing the representation of a number from one positional numeral system to another. Computers use binary (base 2), humans use decimal (base 10), and programmers frequently work with hexadecimal (base 16) and octal (base 8).

Common Number Bases

BaseNameDigits UsedCommon Use
2Binary0, 1Computer hardware, bit manipulation
8Octal0–7Unix file permissions (chmod)
10Decimal0–9Everyday arithmetic
16Hexadecimal0–9, A–FColors, memory addresses, MAC addresses
32Base320–9, A–VEncoding, TOTP secrets
36Base360–9, A–ZURL shorteners, compact IDs

Conversion Examples

DecimalBinaryOctalHex
0000
10101012A
42101010522A
12711111111777F
25511111111377FF
1024100000000002000400
655351111111111111111177777FFFF

How Conversion Works

Prefix Conventions in Programming

Explore 40+ Free Dev Tools

JSON formatter, regex tester, hash generator, chmod calculator, and more — all free, all in your browser.

Browse All Tools →

Related Tools

Color Converter Timestamp Converter Hash Generator Base64 Encoder Text to Binary

Frequently Asked Questions

How do I convert decimal to binary?

Enter your decimal number in the converter — binary output appears instantly. For example, decimal 255 = binary 11111111. The tool also shows hex and octal simultaneously so you can compare all representations at once.

How do I convert hexadecimal to decimal?

Enter your hex value (with or without 0x prefix) and the tool converts it to decimal, binary, and octal instantly. For example, FF hex = 255 decimal. Useful for color codes, memory addresses, and bitwise operations.

What are the common number bases in programming?

Binary (base 2) — bit manipulation. Octal (base 8) — Unix file permissions. Decimal (base 10) — everyday numbers. Hexadecimal (base 16) — colors, memory addresses, and byte values.

How do I convert binary to hexadecimal?

Group binary digits in sets of 4 from the right, then convert each group to hex. 11111111 → 1111 1111 → FF. The converter does this automatically for any value you type.

What is hexadecimal used for in web development?

Hex represents CSS colors (#FF5733), HTML color codes, and byte values. Each hex color pair corresponds to a red, green, or blue channel from 00 (0) to FF (255).