Base Converter
CalculatorsConvert numbers between decimal, hexadecimal, octal, and binary bases with auto-detect.
How to Use
1
Enter a value
Type any number — e.g. 255, 0xFF, 0b11111111, 0o377 — and the tool auto-detects its base.
2
Select base (optional)
Override auto-detect by picking Decimal, Hexadecimal, Octal, or Binary manually.
3
Read the results
See the number converted across all four bases at once.
About Base Converter
Programmers and students move between binary, octal, decimal, and hexadecimal constantly, and mental conversion is error-prone. ILikePdf Base Converter translates numbers between all four bases instantly, including fractional and negative values. It is the reliable helper for bit masks, hex colour arithmetic, and learning how bases relate. Conversion is instant and fully local, with nothing uploaded.
How to convert number bases Base Converter
Step 1: Enter a number in any base — binary, octal, decimal, or hexadecimal.
Step 2: The tool converts it to all other bases instantly.
Step 3: Optionally convert fractional and negative numbers.
Step 4: Copy the value you need for your code.
Common use cases for Base Converter
- Convert between binary and hex for low-level programming.
- Decode hex colour values into decimal RGB.
- Check octal permissions calculations.
- Teach and verify number-base conversions.
Pro tips
- Hex is just binary grouped in fours — handy for bit masks.
- Fractional support covers real-world conversions.
- Conversion is instant and fully local.
- Check the fractional result carefully — binary fractions can repeat.
- Negative numbers use sign handling consistent across bases.
- Fractional and negative support covers real programming and math cases.