Looking for Binary, Octal, Decimal, and Hex only? Try the focused Binary Converter, which also includes an ASCII text encoder.
Arbitrary Radix Converter Real-Time
10
Base 2Base 36
2
Base 2Base 36
Result in Base 2
Enter a number above to convert
Quick Reference Matrix
Binary (Base-2)
-
Octal (Base-8)
-
Decimal (Base-10)
-
Hex (Base-16)
-
Common Bases Guide

Different numeral bases appear throughout computing, science, history, and everyday life. Here is a reference to what each significant base is used for.

Base-2 (Binary)

The foundation of all digital computing. Maps directly to transistor on/off states. Used in bitwise operations, boolean logic, and machine code.

Base-8 (Octal)

Used in early Unix file permission masks (e.g., chmod 755). Each octal digit represents exactly three binary bits, making it a compact binary shorthand.

Base-10 (Decimal)

The universal human counting system, likely derived from ten fingers. Used in everyday arithmetic, currency, measurement, and scientific notation.

Base-12 (Duodecimal)

Appears in dozens, inches per foot, months per year, and hours on a clock face. Twelve has more divisors than ten, making fractions simpler.

Base-16 (Hexadecimal)

Standard shorthand for binary in computing. One hex digit represents four bits exactly. Used in memory addresses, color codes (#FF5733), and debugging.

Base-20 (Vigesimal)

Used by the ancient Maya for their complex calendar system. Also appears in the French counting system (quatre-vingts = "four-twenties" = 80).

Base-32

Used in Crockford Base32 and RFC 4648 encoding for checksums, TOTP tokens (two-factor authentication), and compact hash representations.

Base-36

The largest base expressible with the standard alphanumeric set (0-9, A-Z). Used for URL shorteners, unique ID generation, and compact numeric encoding.

Base-60 (Sexagesimal)

Used by ancient Babylonians. Persists today in time (60 seconds, 60 minutes) and angles (360 degrees = 6 x 60). Sixty has twelve divisors, enabling clean fractions.

Base-64

Not a positional number system, but an encoding scheme. Represents binary data as printable ASCII text. Used in email attachments, data URIs, and JWT tokens.

Key Terms Explained
Radix
The base of a numeral system - the count of unique symbols used. Base-10 has a radix of 10; binary has a radix of 2.
Base-N
Any numeral system using N distinct symbols per digit position. "N" is the radix. This calculator supports N from 2 to 36.
Binary
Base-2: uses only 0 and 1. Every value in a computer is ultimately stored as a sequence of binary digits called bits.
Hexadecimal
Base-16: uses digits 0-9 and letters A-F (representing 10-15). One hex digit encodes exactly four binary bits.
Octal
Base-8: uses digits 0-7. Common in Unix-style file permissions and as a three-bit binary shorthand.
Alphanumeric
The combined set of digits 0-9 and letters A-Z, giving 36 unique characters - the ceiling for positional base notation without custom symbols.
Numeral System
A writing system for expressing numbers. The decimal (Base-10) system is most common, but binary, octal, and hexadecimal are all used in computing.
Positional Notation
A numeral representation where each digit's value depends on its position. The rightmost digit represents the ones place, the next represents the base, and so on.
Bit
Short for "binary digit." The smallest unit of digital information, with a value of either 0 or 1. Eight bits form one byte.
Byte
A group of 8 bits. A byte can hold 256 distinct values (0-255 in decimal, 00-FF in hex). It is the standard unit of digital storage.

The Complete Guide to Base-N Number Systems

Whether you are debugging a hexadecimal memory address, studying historical numeral systems, or building a cryptographic tool that needs compact number representations, understanding arbitrary base conversion is a core computer science skill. This guide explains the math, the history, and the practical use cases.

How to Use This Calculator

Type any number into the "Number Value" field. Select the base that number is currently written in using the "Starting Base" slider (default is Base-10, which is standard decimal). Then choose your "Target Base" using the second slider. The result appears instantly in the green output box below. The Quick Reference Matrix below that always shows the same value converted into Binary, Octal, Decimal, and Hex simultaneously.

For very large numbers, this calculator uses JavaScript BigInt internally, so it avoids the floating-point precision loss that affects standard parseInt() for values beyond 2^53. You can safely convert large hashes and identifiers without corrupting digits.

Click "Show Algorithm Breakdown" to see the full mathematical expansion of the conversion - each digit multiplied by its positional weight (the base raised to the digit's index), then summed.

The Mathematics of Positional Notation

Every positional number system works the same way: the value of a number is the sum of each digit multiplied by the radix raised to that digit's position index (starting at 0 from the right). For a number with digits d(n), d(n-1), ..., d(1), d(0) in base B, the decimal value is:

Value = d(n)*B^n + d(n-1)*B^(n-1) + ... + d(1)*B^1 + d(0)*B^0

For example, the hexadecimal number 1A3 in Base-16 equals (1 x 256) + (10 x 16) + (3 x 1) = 256 + 160 + 3 = 419 in decimal. The letters A-Z represent digit values 10-35 in bases higher than 10.

Converting TO a Target Base

To convert a decimal integer to any target base B, repeatedly divide the number by B and record each remainder. The remainders, read from last to first (bottom to top), form the digits of the result in base B. This calculator performs that process using BigInt arithmetic so the precision is exact at any length.

Why Base-36 is the Maximum for Standard Text

The alphanumeric character set gives us exactly 36 symbols: the digits 0-9 (ten symbols) plus the letters A-Z (twenty-six symbols). Base-36 uses all of them. Any base higher than 36 would require inventing new symbols (or using multi-character tokens), which breaks the simple one-digit-one-character mapping that makes positional notation readable. Base-64 encoding, for example, is not a true positional number system - it uses a separate symbol table and is used for encoding binary data as text, not for arithmetic.

Frequently Asked Questions

A radix (or base) is the number of unique digits a numeral system uses to represent values. Base-10 uses ten digits (0-9), Base-2 uses two (0 and 1), and Base-16 uses sixteen (0-9 plus A-F). The position of each digit encodes a power of the radix, which is how positional notation works.
Computers use Base-2 because physical transistors have exactly two states: on or off. Binary maps perfectly to this reality. Hexadecimal is used alongside it because one hex digit represents exactly four binary digits (bits), making it a compact, human-readable shorthand for binary values. A full byte (8 bits) fits neatly into exactly two hex characters - for example, 11111111 in binary is FF in hex.
Standard positional notation uses the alphanumeric character set: digits 0-9 provide ten symbols and letters A-Z provide twenty-six more, totaling 36 unique symbols. Base-36 is therefore the largest base that can be expressed using only standard keyboard characters without inventing new symbols. Any larger base would require a custom symbol table, which is why Base-64 is an encoding scheme rather than a true positional numeral system.
In any base B, a number's value is the sum of each digit multiplied by B raised to that digit's position index (counting from 0 on the right). The binary number 1011 equals 1x2^3 + 0x2^2 + 1x2^1 + 1x2^0 = 8+0+2+1 = 11 in decimal. The same formula applies at every radix - just swap in the new base value for B.
Base-60 (sexagesimal) underpins timekeeping (60 seconds per minute, 60 minutes per hour) and angular measurement (360 degrees), inherited from ancient Babylonian mathematics. Base-12 (duodecimal) appears in dozens, inches per foot, and months per year - twelve is divisible by 1, 2, 3, 4, and 6, making fractions cleaner. Base-20 (vigesimal) was the foundation of Mayan mathematics and their advanced calendar system. Base-36 is used in URL shorteners and unique ID generators to create compact, all-lowercase alphanumeric strings.