Number Base Converter
Convert numbers between any base from 2 to 36. See binary, octal, decimal, hex, and custom base results with step-by-step conversion.
Quick Answer
Decimal 255 = Binary 11111111 = Octal 377 = Hex FF. Each hex digit maps to exactly 4 binary digits. Enter any number and base to convert.
0b111111110o3772550xFF2010Decimal value: 255
Bits needed: 8
Bytes needed: 1
Is power of 2: No
About This Tool
The Number Base Converter is a versatile tool for developers, students, and anyone working with different numeral systems. It converts any number from one base (radix) to another, supporting all bases from 2 to 36. The tool simultaneously shows the input in binary, octal, decimal, hexadecimal, and a custom base of your choice, with an optional step-by-step breakdown of the conversion process.
Understanding Number Bases
A number base (or radix) defines how many unique digit symbols are used in a positional numeral system. The most familiar is base 10 (decimal), which uses the ten symbols 0 through 9. In any positional system, each digit position represents a successive power of the base. For decimal, the rightmost digit is the ones place (10^0), the next is the tens place (10^1), then hundreds (10^2), and so on. The same principle applies to every base: in binary (base 2), each position represents a power of 2 (1, 2, 4, 8, 16...), and in hexadecimal (base 16), each position represents a power of 16 (1, 16, 256, 4096...).
Binary: The Language of Computers
Binary (base 2) is the foundation of all digital computing. Every processor instruction, every byte of memory, and every pixel on your screen is ultimately represented in binary. The two binary digits (0 and 1) correspond directly to the two electrical states in a digital circuit: off and on. Understanding binary is essential for working with bitwise operations, network protocols, file formats, and low-level programming. Common binary groupings include nibbles (4 bits), bytes (8 bits), words (16/32/64 bits depending on architecture), and kilobytes (1024 bytes).
Hexadecimal: The Developer's Shorthand
Hexadecimal (base 16) uses digits 0-9 and letters A-F to represent values 0-15. Its primary advantage is that each hex digit maps to exactly 4 binary digits, making it a compact way to represent binary data. A byte (8 bits) is always exactly 2 hex digits: 00 to FF (0 to 255 in decimal). This is why hex is used for CSS color codes (#FF5733), memory addresses (0x7FFF0000), Unicode code points (U+00E9), and byte-level data inspection in hex editors and debuggers. Hex is also standard in cryptographic hashes (SHA-256 produces a 64-character hex string) and MAC addresses.
Octal and Other Bases
Octal (base 8) was historically important in early computing when architectures used word sizes that were multiples of 3 bits. Today, its most visible use is in Unix/Linux file permissions: chmod 755 sets read-write-execute (7=111 binary) for the owner, read-execute (5=101 binary) for group and others. Base 36 uses all alphanumeric characters (0-9, A-Z) and is useful for generating compact, human-readable identifiers. Base 64, while beyond our converter's scope, is ubiquitous in encoding binary data for email (MIME), data URLs, and JSON Web Tokens (JWT).
Step-by-Step Conversion Process
Our converter shows the step-by-step process of converting to binary using the successive division method. To convert a decimal number to any target base, you repeatedly divide by the base and collect the remainders. For example, converting decimal 42 to binary: 42/2=21 remainder 0, 21/2=10 remainder 1, 10/2=5 remainder 0, 5/2=2 remainder 1, 2/2=1 remainder 0, 1/2=0 remainder 1. Reading the remainders from bottom to top gives 101010. This educational feature helps students and developers understand the mechanics of base conversion rather than just seeing the result.
Frequently Asked Questions
What is a number base (radix)?
Why is binary important in computing?
Why do programmers use hexadecimal?
How do you convert between bases manually?
What bases beyond 16 are commonly used?
What is the largest base this converter supports?
Was this tool helpful?