Binary
Base 2
0b1111 1111Development
Convert integers between binary, octal, decimal and hexadecimal.
Start from a common integer format.
Enter an integer to convert.
Choose how converted values are displayed.
View the same integer represented in multiple number bases.
Binary
Base 2
0b1111 1111Octal
Base 8
0o3 77Decimal
Base 10
255Hexadecimal
Base 16
0xFFInspect the detected base and integer size.
Detected base
Decimal
Bits required
8
Input digits
3
Sign
Non-negative
Conversion is performed locally in your browser. Values are validated against JavaScript's safe integer range to prevent precision loss.
About this tool
Convert integer values between common number bases with automatic prefix detection.
Features
Frequently asked questions
Yes. Prefixes like 0x, 0b and 0o are detected automatically.
Yes. Signed integers are supported.
No. Everything happens locally in your browser.
Related tools