Number Base Converter
Convert numbers between bases 2 to 36 (binary, octal, decimal, hex and more).
Updated
This tool runs in your browser. No account or signup is required.
Common Number Base Converter tasks
Developers typically reach for this page when they need to convert between binary decimal octal and hex; convert numbers between bases 2 and 36; convert hex to decimal and binary. The tool is built for quick, practical work rather than a generic demo.
What matters in a number base converter workflow
When developers compare online tools for this job, the useful capabilities tend to center on bases 2–36, large integers, prefixes, multiple outputs. This page keeps those practical needs in mind while linking to related tools when a different workflow is a better fit.
What is Number Base Converter?
Number Base Converter converts a whole number from one base to another using the From and To base selectors. Letters in the result are uppercase.
What problem does it solve?
Bit masks, memory addresses, color codes and permissions all show up in different bases, and converting by hand is slow and error-prone.
How to use Number Base Converter
- Set the From and To bases.
- Type your number.
- Copy the converted value.
Example
Input
255 (from base 10 to base 16)
Output
FF
What you can do with Number Base Converter
- Number base converter
- Convert between binary, decimal and hex
- Base 10 to base 16
Common use cases
- Reading bit flags and masks
- Converting hex values from a debugger or a spec
- Learning how number bases relate
Related developer tasks
- Number base converter
- Convert between binary, decimal and hex
- Base 10 to base 16
Converting between binary, octal, decimal and hex
- Choose the From base and the To base from Binary (2), Octal (8), Decimal (10) or Hex (16).
- Type a whole number. Hex digits are accepted in upper or lower case, and the result is uppercase.
- Fractions are not supported and anything after a decimal point is ignored.
- Very large integers lose precision beyond what JavaScript numbers can hold exactly.
Number base examples
1010 (2 -> 10) = 10 255 (10 -> 16) = FF FF (16 -> 2) = 11111111 17 (8 -> 10) = 15
Focused conversions: Binary to Decimal, Decimal to Binary, Hex to Decimal, Decimal to Hex
Number Base Converter FAQ
What if I see "Invalid number for base"?
The input has a character that does not exist in the From base, for example a 2 in a binary number.
Are fractions supported?
The tool works on whole numbers. Anything after a decimal point is ignored.
Which bases are supported?
Binary (2), octal (8), decimal (10) and hexadecimal (16).
Related Developer Tools
- Binary to Decimal Text & Data
- Decimal to Binary Text & Data
- HEX to Decimal Text & Data
- Decimal to HEX Text & Data
- HEX to RGB Web Tools
Looking for something else? Browse all developer tools.

