Base Converter
Enter a number, specify its base, and instantly get its equivalent in binary, octal, decimal, hexadecimal and a custom base. Large numbers are converted without losing any digits.
Workspace · Base Converter
Acepta signo negativo y prefijos 0x, 0b y 0o cuando la base coincide.
11111111
377
255
FF
73
La conversión usa BigInt, así que no pierde precisión con números grandes. Los valores negativos se representan con signo, no en complemento a dos.
How to use it
Write the number and state the base in which it is expressed.
Take a look at the five options and choose the custom base if you need a different one.
Copy the result you’re interested in, or all the values at once.
Examples
Decimal to hexadecimal
255 in base 10 is equivalent to FF in base 16 and to 11111111 in binary.
Hexadecimal prefix
0xFF is interpreted correctly if you select base 16; the 0x prefix is removed before conversion.
What you need to know
The conversion is carried out using BigInt, not Number, to avoid loss of precision beyond 2^53. Valid digits range from 0 to 9 and from A to Z, up to base 36. Negative values are represented by a minus sign, not in two’s complement.
The prefixes 0x, 0b and 0o are only accepted when the selected base matches. The tool supports up to 200 digits of input; beyond that, the result is no longer practical to copy, and it is advisable to use a specialised library.
Frequently Asked Questions
Related tools
Other tools that can help with similar tasks.
Text-to-binary converter
Converts text to binary code and binary code to text.
Bits to bytes
Converts bits to bytes and their decimal and binary multiples.
IPv4 Validator
Checks whether an IPv4 address is valid and displays its class.
