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
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.