T
ToolPrime

Number Base Converter

Convert numbers between base 2 (binary), base 8 (octal), base 10 (decimal), and base 16 (hexadecimal). Includes an interactive ASCII reference table.

Common number base conversions
DecimalBinaryOctalHex
0000
1111
81000108
10101012A
16100002010
321000004020
64100000010040
12711111111777F
1281000000020080
25511111111377FF

How to Use the Number Base Converter

  1. Enter a number in any supported base
  2. Select the input base (binary, octal, decimal, or hexadecimal)
  3. See the number converted to all bases simultaneously
  4. View the binary bit visualization for a visual breakdown
  5. Check the ASCII character if the value is 0-127

ASCII Table

Browse all 128 ASCII character codes with decimal, binary, octal, and hexadecimal values.

View all ASCII codes (0-127) →

What Is a Number Base Converter?

A number base converter translates values between different positional numeral systems — such as binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Each base uses a different set of digits to represent quantities, and converting between them is a fundamental task in computer science, networking, and digital electronics.

Binary is the native language of computers, hexadecimal provides a compact way to represent binary data, and octal was historically used in Unix file permissions. Our converter handles conversions instantly, displays results in all supported bases simultaneously, and includes a full ASCII reference table for looking up character codes.

Popular Use Cases

Programming and Debugging

Convert between hex, binary, and decimal when reading memory addresses, debugging bitwise operations, or interpreting color codes like #FF5733.

Networking and IP Addresses

Translate subnet masks and IP addresses between decimal and binary to understand network segmentation and CIDR notation.

Digital Electronics

Work with binary values when designing logic circuits, reading datasheets, or programming microcontrollers and FPGAs.

Cryptography and Encoding

Convert data between hex and other representations commonly used in hash outputs, encryption keys, and encoding schemes.

Tips for Working with Number Bases

Memorize Hex Digits 0-F

Hex uses 0-9 and A-F where A=10, B=11, C=12, D=13, E=14, F=15. Knowing these by heart makes reading hex dumps and color codes instant.

Group Binary Digits by Four

Each group of four binary digits maps to exactly one hex digit. For example, 1010 1111 = AF. This makes binary-to-hex conversion trivial to do mentally.

Use Standard Prefixes

In code, prefix binary with 0b (0b1010), octal with 0o (0o12), and hex with 0x (0x0A). This prevents ambiguity about which base a number is written in.

Learn Key ASCII Values

Knowing that A=65 (0x41), a=97 (0x61), 0=48 (0x30), and space=32 (0x20) helps you quickly decode ASCII data in hex editors and network captures.

Frequently Asked Questions

What number bases are supported?
The converter supports binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16).
What is the ASCII table?
ASCII (American Standard Code for Information Interchange) maps numbers 0-127 to characters. For example, ASCII 65 = A, ASCII 97 = a.
How do I convert hex to decimal?
Each hex digit represents a power of 16. For example, FF = 15×16 + 15 = 255. Our converter handles this instantly.

Related Tools