Change Number Base
Convert numbers between different bases (radixes) — binary, octal, decimal, hexadecimal, or any base from 2 to 36. Enter a number in one base and see its representation in another.
Input Number
Options
Output (Converted Base)
What It Does
Convert numbers between different bases (radixes) — binary, octal, decimal, hexadecimal, or any base from 2 to 36. Enter a number in one base and see its representation in another.
How It Works
Change Number Base swaps one pattern, character set, or representation for another. The interesting part is not just what appears in the output, but how consistently the replacement is applied across mixed input.
Replacement logic usually follows the exact match rule the tool expects. Small differences in case, punctuation, or surrounding whitespace can explain why one segment changes and another does not.
All processing happens in your browser, so your input stays on your device during the transformation.
Common Use Cases
- Convert between binary, octal, decimal, and hex for programming
- Translate memory addresses from hex to decimal
- Convert color codes between hex and decimal RGB values
- Debug binary flag values by converting to decimal
- Solve computer science homework involving base conversions
How to Use
- Enter the number you want to convert.
- Select the base of your input number (e.g., 16 for hex).
- Select the target base (e.g., 2 for binary).
- View the converted result.
Features
- Supports any base from 2 to 36
- Common presets: binary (2), octal (8), decimal (10), hex (16)
- Handles large numbers
- Shows conversion steps for educational use
- Bidirectional conversion
Examples
Below is a representative input and output so you can see the transformation clearly.
Value: 255 From: 10 To: 16
FF
Edge Cases
- Very large inputs can still stress the browser, especially when the tool is working across many numbers. Split huge jobs into smaller batches if the page becomes sluggish.
- Overlapping patterns and global replacements can produce broader changes than expected, so preview a small sample before full input.
- If the output looks wrong, compare the exact input and option values first, because Change Number Base should be repeatable with the same settings.
Troubleshooting
- Unexpected output often means the input is being split or interpreted at the wrong unit. For Change Number Base, that unit is usually numbers.
- If a previous run looked different, check for hidden whitespace, changed separators, or a setting that was toggled accidentally.
- If nothing changes, confirm that the input actually contains the pattern or structure this tool operates on.
- If the page feels slow, reduce the input size and test a smaller sample first.
Tips
Hex digits use letters A-F for values 10-15. Bases above 16 continue with G-Z. Base 36 uses the full alphabet (0-9, A-Z).
Frequently Asked Questions
What is the maximum base supported?
Base 36, which uses digits 0-9 and letters A-Z. This is the highest base representable with standard alphanumeric characters.
Can I convert fractional numbers?
This tool converts integer values. Fractional base conversion is a separate, more complex operation.
How do I enter a hexadecimal number?
Select base 16 as the input base, then type the hex digits. You can use uppercase or lowercase letters (FF or ff).
What about negative numbers?
The tool handles negative numbers by converting the absolute value and preserving the negative sign.
How large can the numbers be?
The tool handles numbers up to standard integer limits. For very large numbers, precision depends on the browser's arithmetic capabilities.
Is base 1 (unary) supported?
No. Base 1 is not a standard positional numeral system and is not supported. The minimum base is 2 (binary).