Binary Converter: Decimal, Hex and Octal at Once

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

Binary

0b11111111

Hexadecimal

0xFF

Decimal

255

Octal

0o377

Bit Visualizer

1
1
1
1
1
1
1
1
MSB (Most Significant Bit) LSB (Least Significant Bit)

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

Conversion
Result
1010 (binary) → decimal
10
17 (octal) → decimal
15
2A (hex) → decimal
42
13 (decimal) → binary
1101

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

Binary
Octal
Decimal
Hexadecimal
Base
2
8
10
16
Digits
0–1
0–7
0–9
0–9, A–F
Typical use
hardware/digital logic
Unix permissions (chmod)
everyday counting
memory addresses, colors, MAC addresses

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.

Further reading

Related Tools