All tools
Number Base Converter
Convert whole numbers between binary, octal, decimal, and hexadecimal. Runs entirely in your browser.
Your inputs never leave your device.
Convert whole numbers between binary, octal, decimal, and hexadecimal. Useful for programming, digital electronics, and study.
How to use
- Enter the value in its current base.
- Choose the base you're converting from and to.
- Convert to see the result.
Frequently asked questions
How do I convert decimal to binary?
Enter the decimal number, set 'from' to decimal and 'to' to binary. For example, 255 in decimal is 11111111 in binary.
What is hexadecimal used for?
Hex (base 16) is common in programming for colours, memory addresses, and byte values because it maps neatly to binary. For example, 255 decimal is FF in hex.
Does it validate my input?
Yes, it rejects digits that aren't valid for the chosen base (for example, a '2' in a binary number).