Binary Converter: Decimal, Hex and Octal at Once
Type a number in binary, decimal, hex or octal and see all four bases at once, with a bit visualizer. Exact even for huge integers. Free, in your browser.
Updated November 2026
Reviewed by Rafael Duarte
Input Parameter
0b11111111
0xFF
255
0o377
Bit Visualizer
Bit Depth
8-bit Integer
Memory Size
1 Byte
Latency
< 1ms
Tip: Press Shift+Enter to copy the decimal result.
How to use the binary converter
One number, four number systems at once
1. Pick the input base
Decimal, Binary, Hexadecimal, or Octal from the dropdown menu.
2. Type the number
Plain digits work. The prefix of the selected base works too: 0x with Hexadecimal, 0b with Binary, 0o with Octal.
3. Read and copy
All four outputs update in real time — copy any of them with one click.
What this binary converter does
The four number systems used in computing
Real-time conversion
Pick the input base, type a value and all four outputs update instantly, no convert button needed.
Bit visualizer
Every bit shown as a colored square, grouped in fours, with the MSB and LSB clearly labeled.
Accepts code prefixes
Paste 0xFF with Hexadecimal selected, 0b1010 with Binary or 0o17 with Octal and the prefix is stripped for you. The base itself is not detected: pick it in the dropdown first.
Exact for very large numbers
Conversions use JavaScript BigInt, so integers past 2^53 and beyond 64 bits keep every digit. FFFFFFFFFFFFFFFFFF in hex comes out as exactly 4722366482869645213695.
Runs 100% in your browser
No number is ever sent to a server — every conversion happens locally and instantly.
Examples
When you'll reach for this tool
The scenarios that come up most often
Web development
CSS colors are written in hex. Convert one channel at a time, for example 1a = 26, to read its decimal value and bits.
Linux file permissions
chmod 755 is octal — the bit visualizer shows exactly which permission bits are turned on.
Embedded systems and firmware
Microcontroller registers are read in hex. Select Hexadecimal, type 0xFF and the bit visualizer shows the individual control bits.
Computer networking
IPv4 addresses use decimal octets, IPv6 uses hex groups, and the binary view reveals subnet masks.
Common mistakes
Leaving the wrong base selected
The prefix only works with its own base. 0xFF with Decimal selected shows "Invalid Decimal (Base 10) value"; switch to Hexadecimal and it converts to 255.
Mixing up bit order
Position 0 is always the rightmost bit (LSB) — the bit visualizer labels the MSB and LSB so you don't have to guess.
Expecting signed numbers
This tool works with unsigned representation — for two's complement negative numbers, the conversion is manual.
Why use this binary converter
It covers all four number systems used in computing on a single screen, with a bit visualizer that shows exactly which positions are switched on — handy for Linux permissions and firmware registers alike.
Everything updates in real time with no convert button to click. Once you pick the base, you can paste values with their 0x, 0b or 0o prefix straight from code, and very large integers stay exact.
The four number systems
When to use each one
Frequently asked questions
Multiply each binary digit by 2 raised to its position value, starting from 0 on the right, then add the results. For example, 1011 = (1×2³)+(0×2²)+(1×2¹)+(1×2⁰) = 11.
Divide the number by 2 repeatedly and note the remainder at each step. Read the remainders from bottom to top to get the binary result. For example, 13 divided down gives you 1101.
Group the binary digits into sets of four starting from the right, then convert each group separately. For example, 10101100 splits into 1010 (A) and 1100 (C), giving AC.
Multiply each hex digit by 16 raised to its position, counting from 0 on the right, with A to F worth 10 to 15. For example, 2A = (2×16) + 10 = 42. Here, select Hexadecimal and type 2A (or 0x2A) to get 42 along with the binary and octal values.
No, this tool converts numbers only. Text becomes binary through the code of each character: A is 65 in ASCII, which is 01000001. You can look up a character's code and then convert that number here. To pull apart a full hex color into RGB, use the color converter.
The main modern use is Unix/Linux file permissions. In chmod 755, each digit encodes read (4) + write (2) + execute (1) for the owner, group, and everyone else.
Electronic circuits have two reliable states — voltage present (1) and voltage absent (0). Ten distinct voltage levels would be far harder to build and much more error-prone to read reliably.
Further reading
Related Tools
- Chmod Calculator: Linux Permissions 755, 644 & 777 Developer Tick read, write and execute or type 755 to get rwxr-xr-x, a ready chmod command and a warning for 777. Includes umask, SUID, SGID and sticky bit.
- ASCII Table Generator: Plain-Text & Markdown Tables Developer Turn CSV or typed data into a plain-text table: MySQL, Unicode box, rounded, double-line, Markdown, RST or minimal style. Copy it or download as .txt.
- Base64 Decode Online — Free Base64 to Text Decoder Developer Free online Base64 decoder — decode Base64 strings back to plain text instantly in your browser. Validates input and shows decoded payload size.
- Base64 Encoder: Encode Text, PDF & Files Online Developer Encode UTF-8 text or any file (PDF, DOCX, XLSX, ZIP up to 50 MB) to Base64 or Base64URL. Runs in your browser, nothing is uploaded. Free, no sign-up.
- Base64 to Image Online: Preview and Save PNG, JPG, GIF Developer Paste raw Base64 or a data:image URL to preview the image with its type, dimensions and size, then save the original file. No upload, runs in your browser.