Tools / Number Base Converter

Number Base Converter.

Convert numbers between bases (2-36).

About Number Base Converter

Number base conversion is fundamental to programming and computer science. This converter handles binary (base 2), octal (base 8), decimal (base 10), hexadecimal (base 16), and any arbitrary base from 2 to 36. Enter a number in one base and instantly see its representation in all others. Essential for low-level programming, debugging, and understanding data representation.

How to Use

  1. Enter the number to convert.
  2. Select the input base (e.g., decimal, binary, hex).
  3. Click "Convert" to see the number in all bases.
  4. Copy the representation you need.

Key Features

  • Convert between binary, octal, decimal, hex
  • Support for any base from 2 to 36
  • Show all common bases simultaneously
  • Validate input for the selected base

Common Use Cases

  • Converting hex color codes to RGB values
  • Debugging binary flags and bitmasks
  • Understanding memory addresses in hex
  • Working with octal file permissions

Frequently Asked Questions

What is a number base?

A number base (radix) determines how many digits are used. Decimal (base 10) uses 0-9, binary (base 2) uses 0-1, hexadecimal (base 16) uses 0-9 and A-F.

Why do programmers use hexadecimal?

Hexadecimal is compact — each hex digit represents exactly 4 bits. This makes it convenient for representing memory addresses, color codes, and byte values.

What is base 36?

Base 36 uses digits 0-9 and letters A-Z, giving 36 possible characters per position. It is sometimes used for short URL codes and compact identifiers.

How do I read binary numbers?

Binary reads right to left, with each position representing a power of 2: 1, 2, 4, 8, 16, 32, etc. For example, 1010 in binary = 8+2 = 10 in decimal.

Related Tools