Binary, Hex & Octal Converter
Enter a number in binary, octal, decimal or hexadecimal and see it in all four bases simultaneously. Seeing every representation at once is more useful than a single conversion, because the relationships between bases are what you usually need.
Free, no signupRuns entirely in your browser
Input
Result
- Decimal (Base 10)
- 255
- Binary (Base 2)
- 11111111
- Octal (Base 8)
- 377
- Hexadecimal (Base 16)
- FF
About
What the Binary, Hex & Octal Converter does
Hexadecimal is ubiquitous in programming because it maps cleanly onto binary — each hex digit is exactly four bits. That is why colour codes, memory addresses and byte values are written in hex: #FF is far easier to read than 11111111.
How it works
Using the Binary, Hex & Octal Converter
- 1Enter your number.
- 2Select the base the number is currently in.
- 3The value is parsed from that base into an internal number.
- 4It is then re-rendered in binary, octal, decimal and hexadecimal.
- 5Hexadecimal output is uppercased, the usual convention.
Use cases
What people use it for
- Converting a hex colour component to decimal
- Reading a binary flag value from a config or protocol
- Checking a file permission value in octal
- Debugging byte values while working with binary data
FAQ
Frequently asked questions
6 related
All tools →