Base Converter

Convert numbers between any numeral systems from binary (base-2) to base-36.

Embed this tool
Binary
11111111
Base 2
Octal
377
Base 8
Decimal
255
Base 10
Hexadecimal
FF
Base 16

Understanding Number Bases and Positional Notation

A number base, or radix, is the foundation of any positional numeral system. In such a system, the value of each digit depends on both the digit itself and its position relative to the base point. The decimal system (base-10), which humans use daily, employs ten symbols (0 through 9) and is believed to have emerged from counting on ten fingers.

Binary (base-2) is the native language of digital computers. Each binary digit, or bit, represents one of two states: 0 or 1. All modern computing—from smartphones to supercomputers—stores and processes information as binary data. Because binary numbers can become very long, hexadecimal (base-16) serves as a compact shorthand: one hex digit represents exactly four bits, making it ideal for memory addresses, color codes, and cryptographic hashes.

Octal (base-8) was widely used in early computing systems with 12-, 24-, and 36-bit word lengths. Though less common today, it persists in Unix file permissions (e.g., chmod 755), where each octal digit encodes three bits representing read, write, and execute rights. Base-36, which uses all digits and letters, is popular for shortening long numeric IDs into readable, alphanumeric strings for URLs and tracking codes.

Common Bases in Computing

  • Binary (Base-2): Used by all digital computers. Each digit is a bit.
  • Octal (Base-8): Historically used in Unix systems for file permissions.
  • Decimal (Base-10): The standard number system used in everyday life.
  • Hexadecimal (Base-16): Used in memory addresses, color codes (#RRGGBB), and UUIDs.
  • Base-36: Used by URL shorteners to encode large IDs compactly.

References

Related Tools

Explore more developer tools on NerdsTips: Binary Converter, Base64 Encoder / Decoder, Color Converter, and UUID Generator.

Frequently Asked Questions

A number base, or radix, is the number of unique digits—including zero—used to represent numbers in a positional numeral system. In a positional system, the value of each digit depends on its position relative to the radix point. For example, in base-10 (decimal), each position represents a power of 10; in base-2 (binary), each position represents a power of 2.

Related Tools