Binary, Hex & Octal Converter
Convert numbers between binary, octal, decimal, and hexadecimal instantly.
Binary, Hex & Octal Converter — Programmers juggle number bases every day: IP addresses in decimal, memory addresses in hex, masks and flags in binary. Converting between them by hand is tedious and error-prone.
Conversions run locally in your browser — nothing is sent to a server.
What is binary, hex & octal converter?
Programmers juggle number bases every day: IP addresses in decimal, memory addresses in hex, masks and flags in binary. Converting between them by hand is tedious and error-prone.
Type a number in any of the four common bases — binary, octal, decimal, or hexadecimal — and see it converted into all the others instantly, with optional prefixes for convenience.
How to use it
-
Pick the input base
Choose binary, octal, decimal, or hexadecimal for what you are typing.
-
Type a number
The other three representations update live as you type.
-
Copy what you need
Each result has a copy button, with or without prefixes like 0x and 0b.
Examples
The byte 255
The maximum value of a single byte in every base.
decimal 255
Result: binary 11111111 · octal 377 · hexadecimal FF