Numbers
Number Base Converter
Used by developers, writers, and creators worldwide.
A number base converter translates a number between the four bases that matter in computing and maths — binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16) — showing all four at once. Enter a value, tell it which base the value is in, and it returns the equivalent in every base instantly. Developers use it to read memory addresses, colour codes, and bitmasks; students use it to learn how number systems relate; and anyone debugging low-level data switches representations without mental arithmetic. Converting bases by hand is fiddly and error-prone, so seeing every form together saves time and prevents mistakes. Invalid digits for the chosen base are caught with a clear message. Use it to confirm a conversion, decode a hex value, or build intuition for how the same number looks across bases.
Loading usage…
Free forever — no account required
How to use
- Choose your options above
- Click Generate
- Copy your result
Detailed instructions
- Enter the number you want to convert.
- Select which base the number is currently in.
- Click Generate to see it in all four bases.
- Copy the representation you need.
Use Cases
- •Converting hex colour codes or memory addresses
- •Learning how binary, octal, and hex relate
- •Debugging low-level data and bitmasks
- •Checking a base conversion done by hand
- •Reading values in an unfamiliar number base
Tips
- →A leading 0x on hex input is handled automatically.
- →Use it to decode colour codes, which are hex.
- →Watch for invalid digits — they are flagged clearly.
- →Seeing all bases at once helps build intuition.
FAQ
which bases does it support
It converts between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16), and shows all four representations at once so you can read the value in whichever form you need.
what if i enter an invalid digit
If the value contains a digit not valid in the chosen base — like a 2 in a binary number or a G in hex — the tool returns a clear message instead of a wrong result, so you can correct the input.
can i paste a hex value with 0x
Yes. A leading 0x prefix on a hexadecimal input is recognised and stripped automatically, so you can paste values straight from code or a debugger.