Home › Tools › Number Base Converter
Number Base Converter
Enter a number in the base you have and read it instantly in every base you need — decimal, hex, binary, octal, or anything from base 2 to 36. Also shows the bit width so you can check what fits in a byte, word or integer field.
100% private — everything runs in your browser, nothing is ever uploaded.
What this tool does
A CSS colour is FF2A55, a permissions mask is 0755, a network dump shows 0xC0A80101, and a firmware register is described in binary. All four are the same kind of number written in different bases, and converting them by hand is where off-by-one errors creep in. This tool takes a number in whichever base you have and shows it instantly in decimal, hexadecimal, binary, octal and any custom base from 2 to 36. It also reports the bit width, which answers a practical question before you write a value into a field: will this fit in a byte, a 16-bit word or a 32-bit integer. Developers use it when reading flags, checking memory addresses, interpreting error codes, or preparing test vectors for a parser.
How to use it in three steps
- Pick the base of the number you already have, then type it. Prefixes such as 0x are best removed so the input matches the base you selected.
- Every other base updates instantly; copy the one your target expects. Check the bit width if the value is going into a fixed-size field.
- Use the custom base field for bases such as 32 or 36 when you are working with compact identifiers or encoded counters. Check the bit width against the field you are writing to before treating a converted value as final.
Questions people ask
Why does a hexadecimal value sometimes turn into a negative number?
That happens when the value is interpreted as a signed integer of a fixed width rather than as an unsigned one. Check the bit width and the convention of the system you are reading from before treating it as negative.
What is the bit width figure for?
It tells you how many binary digits the value needs, which is the quickest way to see whether it fits in an 8-bit byte, a 16-bit word or a 32-bit field. A value wider than the target field will be truncated or rejected.
Can it convert fractional numbers?
No. It handles whole numbers only, which covers addresses, masks, flags and identifiers. Fractions require a different representation and are outside what this tool does.
Why do bases above 10 use letters?
A single digit has to represent a value larger than nine, so base 16 uses A through F and base 36 uses the alphabet up to Z. Those letters are digits in that notation, not labels; base 36 is popular for compact counters because it uses the whole alphabet.
Privacy: All base conversions and bit-width calculations are computed locally in this browser tab, so values taken from memory dumps, device registers and internal identifiers stay entirely on your machine.
How to use it
- Pick the base of your input, then type the number.
- Every other base updates instantly — copy the one you need.
- Use the custom base field for exotic bases like 32 or 36.
Why it stays private
It is pure arithmetic on a string of digits — there is nothing to upload and nothing to store. Useful when working with colour codes, memory addresses, file permissions or protocol fields.
Questions
How are digits above 9 written?
Standard convention: a=10, b=11, up to z=35. Case does not matter on input; output uses lowercase.
Can I convert negative numbers or fractions?
Negative integers work — the minus sign carries through. Fractions do not: base conversion of digits after the decimal point is a different problem with repeating expansions, and this tool sticks to integers.
Does it handle very large numbers?
Up to the safe integer range of JavaScript (2^53−1) results are exact. Beyond that, precision is silently lost — for cryptographic-size numbers use a dedicated big-integer library instead.