Universal Number Base Converter
Convert numbers between any number bases from 2 to 36. Master binary, octal, decimal, hexadecimal, and exotic bases like base-36. Essential for computer science, mathematics, and understanding positional numeral systems.
Universal Number Base Converter
Convert numbers between any bases from 2 to 36
Valid characters: 0123456789
Quick Examples
Common Base Equivalents
Decimal 255
Decimal 16
Powers of 2
Base 36 Max
Understanding Positional Number Systems
Learn the mathematical foundation of number bases
A positional numeral system (or place-value notation) is a method of representing numbers where the position of each digit determines its value. The base (or radix) defines how many unique digits are used. For example, decimal (base-10) uses 10 digits (0-9), while binary (base-2) uses only 2 digits (0-1).
Common Number Bases
Base Conversion Formula
Σ(digit × base^position)
Repeated division by base
201₃ = (2×3²)+(0×3¹)+(1×3⁰) = 18+0+1 = 19₁₀
Historical Development of Number Systems
Explore how different civilizations developed various number bases
Different civilizations throughout history have used various number bases based on practical considerations, cultural factors, and available counting methods. Understanding these historical systems provides insight into why we use certain bases today.
Base 60 (Sexagesimal)
Used by ancient Babylonians and still present in our time system (60 seconds, 60 minutes) and angular measurements (360 degrees).
1 minute = 60 seconds
Circle = 360° (6×60)
Base 20 (Vigesimal)
Used by Maya, Aztecs, and Celtic cultures. Based on counting with fingers and toes (20 total digits).
Maya: Advanced calendar system
Score = 20 (biblical reference)
Base 12 (Duodecimal)
Highly divisible (factors: 1,2,3,4,6,12), used in measurements like dozen, gross, and imperial units.
1 foot = 12 inches
1 gross = 144 (12²)
Modern Applications
Discover where different number bases are used today
Computer Programming
Binary for machine code, hex for memory addresses and color codes, octal for Unix permissions. Base-64 encoding for data transmission and storage in web applications.
Web Development
URL encoding uses base-36 for short links, CSS uses hex colors, base-64 for image encoding, and various bases for hash functions and unique identifier generation.
Mathematics Education
Teaching positional notation, place value concepts, and mathematical foundations. Helps students understand how our decimal system is just one of many possible systems.
Cryptography
Large prime numbers in various bases, hash functions, encryption keys, and digital signatures. Base conversion is essential for cryptographic algorithms and key generation.
Data Storage
Efficient data encoding, file formats, compression algorithms, and database optimizations. Different bases provide varying levels of compression and human readability.
Scientific Computing
Numerical analysis, scientific notation, and specialized number systems for specific domains like astronomy, chemistry, and physics calculations.
Advanced Conversion Techniques
Master efficient methods for base conversion
Direct Power-of-2 Conversion
For bases that are powers of 2 (2, 4, 8, 16, 32), you can convert directly without going through decimal.
Binary ↔ Hexadecimal
Binary ↔ Octal
Horner's Method
Efficient algorithm for converting from any base to decimal, reducing the number of operations required.
Example: 1A3₁₆ to Decimal
Algorithm Steps
Related Number Tools
Explore specialized converters for specific number bases
Frequently Asked Questions
Common questions about number base conversion
What's the highest number base this converter supports?
Our converter supports bases from 2 to 36. Base 36 uses digits 0-9 and letters A-Z, giving 36 unique symbols. This is the practical limit for alphanumeric representation, though mathematically, any base is possible.
Why do computers use binary, octal, and hexadecimal?
Binary (base-2) matches how computers store data (on/off states). Octal (base-8) and hexadecimal (base-16) are convenient because they're powers of 2 (2³=8, 2⁴=16), making conversion to/from binary straightforward. Hex is especially popular because each hex digit represents exactly 4 binary digits.
How do I convert between non-decimal bases directly?
The easiest method is to convert through decimal as an intermediate step: Source Base → Decimal → Target Base. For bases that are powers of each other (like binary↔octal or binary↔hex), you can group digits directly without going through decimal.
What characters are used for digits greater than 9?
For bases higher than 10, letters are used: A=10, B=11, C=12, and so on up to Z=35. This allows base-36 to use all digits 0-9 and letters A-Z. The converter accepts both uppercase and lowercase letters.
Can I convert fractional numbers between bases?
Our current converter focuses on whole numbers (integers). Converting fractional parts between bases requires additional algorithms and can sometimes result in repeating decimals. For most practical applications, integer conversion covers the majority of use cases.
What's the practical limit for number size?
The converter can handle very large numbers, limited by JavaScript's number precision (about 15-16 significant digits). For cryptographic applications requiring larger numbers, specialized libraries with arbitrary precision arithmetic would be needed.