Number Base ConverterNEW
Convert numbers between binary, octal, decimal and hexadecimal
Checking your access…
AllFreeTool's Base Converter converts between binary, octal, decimal, and hexadecimal online for free, auto-detects the 0x, 0b, and 0o prefixes, and supports negative signs and arbitrarily large integers through the browser's native BigInt with lossless precision. No software installation is needed, and results appear 0.3 seconds after you type.
Whether you are reading memory addresses and color values as a programmer, converting register masks in microcontroller work, or solving radix exercises as a student, this page is ready the moment you open it. One input yields results in all four bases at once, binary output is grouped every 4 bits for readability, hexadecimal output is uppercase by default, and each result carries its bit length, all one click to copy.
Why use Number Base Converter on AllFreeTool?
Four-Base Conversion
Type once and read binary, octal, decimal, and hexadecimal results side by side on the same screen.
Prefix Auto-Detection
0x is read as hexadecimal, 0b as binary, and 0o as octal; you can also force the input base manually.
Lossless Big Integers
Powered by BigInt arbitrary-precision arithmetic, so very long binary strings and huge decimal numbers keep every digit.
Bit Width Shown
Each result includes its bit length, and binary output is grouped every 4 bits for easy comparison.
How to use Number Base Converter
Enter A Number
Type a number in any base; the 0x / 0b / 0o prefixes and a minus sign are allowed, for example 0x1F, 1010, or -255.
Choose The Base
The input base is detected automatically by default, or you can force base 2, 8, 10, or 16 manually.
Copy The Result
All four base results appear in real time; click the copy button on any card to take it away.
Common questions
Does hexadecimal letter case matter?+
Not numerically, since 0xFF and 0xff are the same number. Convention differs by context: color values usually use lowercase such as #ff8800, while C constants and uppercase-style code prefer uppercase. This tool accepts either case on input and always outputs uppercase, which is convenient for documentation and code.
How are negative numbers represented? Is it two's complement?+
This tool shows negative numbers as they are with a leading minus sign and performs no two's complement conversion. The hexadecimal result of -255 is therefore -FF, not the 32-bit two's complement form FFFFFF01. If you need two's complement, convert the absolute value first and derive the complement for your target bit width.
Why are there spaces in the binary result?+
For readability. Long binary strings are hard for the eye to count, so the tool inserts a space every 4 bits, since 4 binary digits correspond exactly to 1 hexadecimal digit. If you need an unbroken string after copying, simply delete the spaces.
How large a number can it convert?+
It uses the browser's native BigInt arbitrary-precision integers, so in theory only device memory limits it: decimal numbers of tens or hundreds of digits and binary strings of hundreds of digits convert exactly, with none of the overflow confusion an ordinary calculator suffers from. Decimal fractions are not supported yet, so split off the integer part first.