Number Base Converter
Enter a number in any base and see it in all the common ones.
INPUT
CHARS: 0WORDS: 0LINES: 0
OUTPUT
CHARS: 0WORDS: 0LINES: 0
How the Number Base Converter works
Numbers are parsed with arbitrary precision integers, so there is no rounding even for values far beyond what a normal number type can hold. Prefixes 0x, 0b and 0o select the base automatically; otherwise the base setting is used, from 2 up to 36. Negative numbers and underscores as digit separators are accepted.
Each line is converted separately and the result shows binary, octal, decimal, hexadecimal and base 36 forms, with a clear message if a digit is not valid in the chosen base.
Number Base Converter examples
Sample input with the default options
Input
255 0xFF 0b101010
Result
255 binary 11111111 octal 377 decimal 255 hex FF base36 73 0xFF binary 11111111 octal 377 decimal 255 hex FF base36 73 0b101010 binary 101010 octal 52 decimal 42 hex 2A base36 16
When it is useful
- •Reading memory addresses, bit masks and color values.
- •Checking homework in computer science courses.
- •Converting IDs that use base 36 or base 62 style encodings.
- •Working with file permissions in octal.
Frequently Asked Questions
How do I convert a hex number like FF?
Type 0xFF, or type FF and set the base to 16.
Is there a size limit?
No fixed limit. The numbers are exact, so even 100 digit values work.
Does it handle fractions?
No, only integers. Fractional bases need a different approach.
Related tools
- Hex to Text ConverterDecode a hex dump to text, or turn text into hex bytes.
- Binary Code TranslatorConvert words to ones and zeros and back again.
- Number SorterPaste numbers in any common format and get a clean sorted list.
- Number to Words ConverterTurn 1,234.56 into words such as one thousand two hundred thirty-four dollars and fifty-six cents, or spell out any other number.