Number Base Converter
Convert numbers between binary, octal, decimal, hexadecimal and any base (2-36). Free online number base converter.
Custom Base Conversion
What is Number Base Converter?
A number base converter transforms numbers between different numeral systems: binary (base 2), octal (base 8), decimal (base 10), hexadecimal (base 16), and any custom base from 2 to 36. Different bases are used in computing — binary for machine code, hex for color codes and memory addresses, and octal for Unix file permissions.
How to Use
- Enter a number in the input field
- Select the source base (binary, octal, decimal, hex, or custom)
- Conversions to all other bases appear instantly below
- Use the copy button next to each result to copy it
Examples
Decimal to binary and hex
Hex color to decimal
Related Tools
Binary Converter (Text to Binary)
Convert text to binary and binary to text instantly. Free online binary converter with encode and decode modes.
ASCII Converter
Convert between ASCII characters and their decimal, hexadecimal, and binary code values. Free online ASCII table converter.
Hex to RGB Converter
Convert Hex color codes to RGB and vice versa. Free online color converter with live preview.
Text to Hex Converter
Convert text to hexadecimal and back instantly. Free online text to hex converter with space-separated bytes and UTF-8 support.
Frequently Asked Questions
What number bases are commonly used in programming?
Binary (base 2) for bitwise operations, octal (base 8) for Unix file permissions, decimal (base 10) for everyday math, and hexadecimal (base 16) for color codes (#FF5733), memory addresses, and byte values.
How do I prefix different bases in code?
In most programming languages: 0b for binary (0b1010), 0o for octal (0o12), 0x for hex (0xFF), and no prefix for decimal (255). JavaScript, Python, and C all support these prefixes.
What is base 36 used for?
Base 36 uses digits 0-9 and letters A-Z, giving the most compact representation using alphanumeric characters. It's used for URL shorteners, generating compact IDs, and encoding large numbers in limited-character formats.