Encodingpublic tool
Number Base Converter
Convert one integer across decimal, hexadecimal, octal, binary, base-36, and Roman numerals.
- Input
- 255
- Detected base
- Base 10
- Decimal
- 255
- Local
- 100% browser
Integer
Decimal by default — a 0x, 0b, 0o prefix or a letter digit switches the source base
Try
Conversions
255 in every base, plus bit-level views
Decimal255
Hexadecimal0xFF
Octal0o377
Binary0b11111111
Base-36730-9 then A-Z
RomanCCLV
Binary, nibbles1111 1111
Binary, 32-bit0b00000000000000000000000011111111
Unsigned 32-bit255wraps negatives
Signed 32-bit255two's complement
Accepted input prefixes
Anything not listed is read as decimal
0xHex, base 16
0bBinary, base 2
0oOctal, base 8
a-zBase-36 when a letter appears