Number Base Converter
Convert binary, octal, decimal and hex.
Binary
0b11111111Octal
0o377Decimal
255Hexadecimal
0xffHow to use the Number Base Converter
- 1 Enter a number and select its current base.
- 2 Read the value in binary, octal, decimal and hexadecimal.
- 3 Copy the representation you need.
Examples
- ▸ Converting 255 (decimal) to FF (hex).
- ▸ Reading a hex color or byte value in binary.
Frequently asked questions
Does it handle very large numbers?
Yes. It uses arbitrary-precision big integers, so even numbers far beyond 64 bits convert exactly without rounding.
Can I paste values with 0x or 0b prefixes?
Yes. Common prefixes (0x, 0o, 0b) and underscores used as digit separators are accepted and ignored during parsing.
Related tools
Text
Binary ⇄ Text Converter
Translate text to 8-bit binary and back.
Calculators
Digital Storage Converter
Convert KB, MB, GB, TB and binary units.
Developer
Hash Generator
Generate SHA hashes from any text.
Text
Text to ASCII Converter
Convert text to character codes and back.
Calculators
Roman Numeral Converter
Convert numbers to Roman numerals and back.