Advertisement

Base Converter

Convert numbers between binary, octal, decimal, and hexadecimal bases instantly with our free converter tool.

Advertisement

Number Base Systems

Computers store all data as binary (base 2). Other bases — octal and hexadecimal — are shorthand notations that map cleanly to binary, making it easier for programmers to read and write binary values.

Common Bases

Quick Reference

Why do programmers use hexadecimal?

One hex digit represents exactly 4 binary bits (a nibble), so hex is a compact, human-readable way to write binary. A byte (8 bits) is exactly two hex digits — e.g., 0xFF = 255. This maps neatly to memory addresses, color codes, and cryptographic hashes.

How do I convert binary to hex manually?

Group the binary digits into groups of 4 from the right, then convert each group: 1010 1111A FAF. If the leftmost group has fewer than 4 bits, pad with leading zeros.

What are Unix file permission numbers?

Unix permissions like 755 or 644 are octal numbers. Each digit represents read/write/execute for owner, group, and others: 7 = rwx (111 binary), 5 = r-x (101 binary), 4 = r-- (100 binary).