255 in other bases
Binary 1111 1111, octal 377, hexadecimal FF.
Convert whole numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36, of any size.
Runs in your browser — nothing you enter is sent to a server.
Type a whole number and choose the base it's written in. The converter shows it in binary, octal, decimal and hexadecimal, plus any other base from 2 to 36 you pick. Prefixes such as 0x, 0b and 0o are accepted, and so are spaces or underscores between digit groups.
Numbers are handled as exact big integers, so even a 64-bit value like 18,446,744,073,709,551,615 converts without rounding — something many converters get wrong above 253.
value = Σ di × bi
Where:
To go the other way, divide by the base repeatedly and read the remainders from last to first.
Binary 1111 1111, octal 377, hexadecimal FF.
15 × 16 + 15 = 255.
18,446,744,073,709,551,615 = FFFF FFFF FFFF FFFF in hexadecimal.
Each hex digit is exactly four binary digits, so hex is a compact way to write binary — one byte is always two hex digits (00 to FF).
Negative whole numbers yes, written with a minus sign. Fractions no — they often have no exact representation in another base.
The largest base that uses only digits and letters (0–9, A–Z). It's used for short IDs: ZZ in base 36 is 1,295.
Encode text to Base64 or decode Base64 to text, with full Unicode support and URL-safe output.
Developer Tools
Convert numbers to Roman numerals and Roman numerals to numbers, from 1 to 3,999.
Converters
Write numbers out in English words, as check amounts, or as ordinals like “twenty-first”.
Converters
Convert text to binary, hex, decimal or octal bytes and back, using UTF-8.
Text Tools