Math Tools

Number Base Converter

Convert numbers between Binary, Octal, Decimal, Hexadecimal, and Base 2-36. Essential for computer science and programming.

Use Number Base Converter to get instant results without uploads or sign-ups. Everything runs securely in your browser for fast, reliable output.

Your results will appear here.

Ready to run.

About this tool

Humans use the Decimal system (Base 10) because we have ten fingers. Computers use Binary (Base 2). Programmers often use Hexadecimal (Base 16) to represent large binary numbers concisely.

This tool creates a bridge between these systems. It supports any base from 2 to 36 (using A-Z for digits above 9).

Usage examples

Dec to Hex

255 base 10

255 (10) → FF (16)

Bin to Oct

1010 base 2

1010 (2) → 12 (8)

How to use

  1. Enter the number you want to convert.
  2. Select the "From Base" (e.g., 10 for Decimal).
  3. Select the "To Base" (e.g., 2 for Binary).
  4. Click "Run Tool" to see the result.

Benefits

  • Supports all bases 2-36
  • Instant conversion
  • Validates input digits
  • Uppercase support

FAQs

What is Base 16 (Hex)?

Hexadecimal uses 16 digits: 0-9 and A-F. A=10, B=11... F=15. It is widely used in web colors and memory addresses.

How do I convert between bases?

First convert to base 10 (decimal), then convert from base 10 to your target base. Each digit position represents a power of the base.

What bases can I convert to?

You can convert between any bases from 2 (binary) to 36 (using 0-9 and A-Z). Common bases include 2 (binary), 8 (octal), 10 (decimal), and 16 (hexadecimal).

What is octal (base 8)?

Octal uses digits 0-7 and was commonly used in early computing systems. Each octal digit represents 3 binary bits, making it a compact representation.

Why do programmers use hexadecimal?

Hexadecimal is more compact than binary while still mapping directly to binary patterns. Each hex digit represents exactly 4 binary bits, making conversions easy. For example, binary 11111111 = hex FF = decimal 255. It's perfect for representing memory addresses, color codes (#FF0000 for red), and debugging low-level code.

What is base 36 and when is it used?

Base 36 uses all digits 0-9 and letters A-Z, making it the highest base possible with standard alphanumeric characters. It's sometimes used for compact ID generation, URL shorteners, and license keys. For example, the number 1000000 in decimal is only LFLs in base 36, saving space.

Related tools

View all tools