Integer base converter

Convert integers between different bases (binary, decimal, hex, octal)

Integer Base Converter

Convert numbers between different bases

Common Values

Quick reference for common number conversions

DecimalBinaryOctalHex
0000
1111
81000108
15111117F
16100002010
3111111371F
321000004020
63111111773F
64100000010040
12711111111777F
1281000000020080
25511111111377FF
256100000000400100
5111111111117771FF
51210000000001000200
1023111111111117773FF
1024100000000002000400

TL;DR

What is Integer base converter?

Number base conversion transforms an integer from one positional numeral system to another. The most common systems in computing are base 2 (binary), base 8 (octal), base 10 (decimal), and base 16 (hexadecimal). Each system uses a different set of digits and place values.

Common use cases

  • Bitwise operations: convert a decimal value to binary to visualize which bits are set in a bitmask
  • Color codes: hexadecimal is the standard notation for RGB color values in CSS and image processing
  • Unix permissions: octal notation (e.g. 755) is used for chmod file permission values
  • Memory addresses: hexadecimal is the standard format for memory addresses in debuggers and assembly

Frequently asked questions

Why is hexadecimal so common in computing?

One hex digit maps exactly to 4 bits (a nibble), so two hex digits represent one byte. This makes hex a compact and readable way to express binary data: a 32-bit value takes 8 hex digits instead of 32 binary digits.

What is the difference between base conversion and encoding?

Base conversion changes how a number is represented without changing its value (decimal 255 equals hex FF equals binary 11111111). Encoding (like Base64) is a different concept: it maps arbitrary bytes to a text alphabet and is not limited to integers.