Base Converter

Convert between Binary, Decimal, Octal, Hexadecimal & custom base (2-36) | Number System Converter

Converted Result
--
๐Ÿ“ Step-by-step conversion
Enter a number and select bases.

๐Ÿ“– How to Use This Base Converter

1
Enter the number - Type or paste the number you want to convert.
2
Select the source base - Choose the base of your input number (Binary, Decimal, Octal, Hex, or Custom).
3
Select the target base - Choose the base you want to convert to.
4
Click "Convert" - Get instant results with step-by-step conversion explanation.

๐Ÿ”ข Understanding Number Systems

A number system (or base) defines how many unique digits are used to represent numbers. Each position in a number represents a power of the base.

๐Ÿงฎ How to Convert Between Bases

Method: Convert to decimal first, then to target base.

To Decimal: Multiply each digit by (base^position) and sum.
Example: Binary 1011โ‚‚ = 1ร—8 + 0ร—4 + 1ร—2 + 1ร—1 = 11โ‚โ‚€

From Decimal: Repeatedly divide by target base, read remainders backwards.
Example: 11โ‚โ‚€ to binary = 1011โ‚‚

๐Ÿ’ก Common Use Cases

โ“ Frequently Asked Questions

What is the maximum base supported?
This converter supports bases 2 through 36. Base 36 uses digits 0-9 and letters A-Z (26 letters) for a total of 36 unique symbols.
Why do programmers use hexadecimal?
Hexadecimal is more compact than binary while still being easily convertible. One hex digit represents 4 binary digits (bits), making it ideal for representing memory addresses, color values, and machine code.
How do I convert a decimal to binary?
Divide the decimal number by 2 repeatedly, recording remainders. Read remainders from last to first. Example: 13 รท 2 = 6 remainder 1, 6 รท 2 = 3 remainder 0, 3 รท 2 = 1 remainder 1, 1 รท 2 = 0 remainder 1 โ†’ 1101โ‚‚.
What are valid digits for custom bases?
For base N (2-36), valid digits are 0-9 and A-Z, but only up to the base-1. For base 16, valid digits: 0-9, A-F. For base 20, valid: 0-9, A-J.
Does the converter handle negative numbers?
This converter handles positive integers. For negative numbers, convert the absolute value and add a minus sign. Fractional numbers are not supported in this version.