Base Calculator & Number Base Converter
Free Online Base Conversion Calculator with Steps
This base calculator converts numbers between any two bases from 2 to 36 and shows every step of the conversion process. Enter a value, pick the source and target number system, and get an instant result with a detailed place-value breakdown you can follow along with on paper or in class.

During my first computer-science course I had to convert 255 from decimal to binary (11111111) and then to hexadecimal (FF) by hand — over and over, for dozens of homework problems. Larger numbers such as 65535 or 16777215 made the process even more error-prone. A reliable number base converter would have saved hours of tedious arithmetic and prevented the mistakes that cost me exam points.
This base conversion calculator handles every positional number system from base 2 (binary) through base 36, making it indispensable for computer-science students, software engineers, and anyone studying number theory. Whether you need a quick decimal-to-binary conversion or want to explore exotic bases such as duodecimal (base 12) or vigesimal (base 20), the tool delivers accurate results with step-by-step explanations. For dedicated arithmetic in specific bases, try our binary calculator, hexadecimal calculator, or octal calculator. If you specifically need decimal to binary conversion, we have a focused tool for that as well.
How to Convert Number Bases with Steps
Using this base calculator with steps is straightforward. Type or paste your number, set the From Base and To Base, and press Convert. The tool shows:
- Input parsing — the number is validated against the source base’s digit set.
- Place-value expansion — each digit is multiplied by the appropriate power of the source base to produce a decimal (base 10) intermediate value.
- Repeated division — the decimal value is divided by the target base; remainders form the digits of the result, read from bottom to top.
- Final answer — the converted number is displayed in the target base alongside all common-base equivalents (binary, octal, decimal, hex).
Example: Convert 42 from Decimal to Binary
Enter 42, set From Base to 10 and To Base to 2.
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
Read remainders bottom → top: 101010. So 42 in decimal = 101010 in binary.
Understanding Number Systems and Number Bases
A number base (also called a radix) determines how many unique digits a number system uses. In everyday life we count in base 10 (decimal) with digits 0–9. Computers operate in base 2 (binary) with just 0 and 1. Programmers frequently use base 16 (hexadecimal, digits 0–F) because every hex digit maps neatly to four binary bits, making memory addresses and color codes far more readable.
This number systems calculator lets you convert between all positional bases from 2 to 36. Bases above 10 extend the digit set with letters: A = 10, B = 11, …, Z = 35. That means base 36 uses the full set of 0–9 plus A–Z.
| Base | Name | Digits Used | Common Use |
|---|---|---|---|
| 2 | Binary | 0–1 | CPU logic, digital circuits |
| 8 | Octal | 0–7 | Unix file permissions |
| 10 | Decimal | 0–9 | Everyday counting |
| 12 | Duodecimal | 0–9, A–B | Time (12 hours), angles |
| 16 | Hexadecimal | 0–9, A–F | Memory addresses, CSS colors |
| 36 | Base-36 | 0–9, A–Z | Short URL encoding |
Base Conversion Algorithm Explained
Every base conversion follows a two-phase algorithm that this base conversion calculator automates for you:
Phase 1 — Source Base to Decimal
Multiply each digit by its place value (a power of the source base) and sum the results. For instance, to convert 1A3 from hexadecimal to decimal:
1×16² + A(10)×16¹ + 3×16° = 256 + 160 + 3 = 419
Phase 2 — Decimal to Target Base
Repeatedly divide by the target base and collect remainders. To convert 419 to octal (base 8):
419 ÷ 8 = 52 r 3
52 ÷ 8 = 6 r 4
6 ÷ 8 = 0 r 6
Read bottom → top: 643
Therefore 1A3 (hex) = 643 (octal). The base calculator above performs both phases automatically and displays every intermediate step so you can verify the work or use it as a study aid.
Key Features of This Number Base Converter
Our base calculator goes beyond simple conversion by offering tools that make learning and working with number bases faster and more reliable.
- Any Base from 2 to 36: Convert between binary, octal, decimal, hexadecimal, and any custom base including base 5, base 12, base 20, or base 36.
- Step-by-Step Solutions: See the full place-value expansion and repeated-division breakdown — ideal for students who need to show their work.
- Multi-Base Reference Table: Every conversion also shows the equivalent in binary, octal, decimal, and hexadecimal so you can compare results at a glance.
- Quick-Convert Presets: One-click buttons for the six most common conversions (Dec→Bin, Dec→Hex, Dec→Oct, Bin→Dec, Hex→Dec, Bin→Hex).
- Fractional Number Support: Convert numbers with decimal points — set precision up to 32 fractional digits and choose between rounding or truncation.
- Prefix-Aware Input: Enter
0xFF,0b1010, or0o77and the converter detects the base automatically. - Arbitrary-Precision Integers: Uses BigInt arithmetic so conversions remain exact even for very large numbers — no floating-point rounding errors.
Common Base Conversions at a Glance
The table below shows frequently converted values across the four most-used number systems. Use the base calculator above for values not listed here.
| Decimal | Binary | Octal | Hexadecimal |
|---|---|---|---|
| 1 | 1 | 1 | 1 |
| 8 | 1000 | 10 | 8 |
| 10 | 1010 | 12 | A |
| 16 | 10000 | 20 | 10 |
| 42 | 101010 | 52 | 2A |
| 100 | 1100100 | 144 | 64 |
| 255 | 11111111 | 377 | FF |
| 1024 | 10000000000 | 2000 | 400 |
| 65535 | 1111111111111111 | 177777 | FFFF |
Who Uses a Base Calculator?
Students and Educators
Computer-science and discrete-mathematics courses require students to convert between binary, octal, and hexadecimal regularly. This number base converter produces step-by-step solutions that match textbook methods, making it a perfect homework checker. Teachers can use it to generate worked examples for lecture slides or exams.
Software Engineers and Programmers
Debugging memory addresses, interpreting Unix file permissions (octal), reading color codes (hex), or working with bitmasks (binary) are everyday tasks that demand fast, accurate base conversion. The quick-convert presets and copy-to-clipboard button make this base calculator a practical desk tool. For deeper binary arithmetic, see our binary calculator.
Mathematicians and Researchers
Number-theory research often involves exploring patterns in alternative bases. Converting between base 3 (ternary), base 5, base 12 (duodecimal), or even base 36 reveals digit-pattern symmetries that are invisible in decimal. Cryptography and error-correcting code design also benefit from rapid cross-base verification.
Converting Uncommon Bases (Base 5, Base 8, Base 12, Base 20)
While binary, octal, decimal, and hexadecimal get the most attention, this base calculator supports every base from 2 to 36. Here are some less common but historically and practically significant number systems:
- Base 5 (Quinary): Used in some traditional counting systems and in computing research as an intermediary radix. Enter any decimal number and set To Base to 5 to see the quinary representation.
- Base 8 (Octal): Still widely used in Unix/Linux for file permissions (e.g., chmod 755). Our octal calculator provides dedicated base-8 arithmetic.
- Base 12 (Duodecimal): The basis of our 12-hour clock, 12-inch foot, and dozens. Advocates of the Dozenal Society argue it is more divisible than base 10.
- Base 20 (Vigesimal): Used by the Maya civilization and still reflected in French counting (quatre-vingts = 4×20 = 80).
- Base 36: The highest base our converter supports. It uses all 26 letters plus 10 digits and is commonly used to generate compact alphanumeric identifiers and short URLs.
About the Author
Why Use This Base Calculator?
Whether you are a student learning number bases for the first time, a programmer converting hex addresses, or a researcher exploring ternary arithmetic, this base calculator and number base converter gives you instant, verified results with educational step-by-step breakdowns. It supports every base from 2 to 36, handles fractional numbers with configurable precision, and works equally well on desktop and mobile. Bookmark this page and simplify your number base conversions today.



