Binary Converter

Binary Converter

Convert between binary, decimal, hexadecimal, and octal number systems in real time. Supports multi-value input and instant copy. Free, no signup required.

Updated April 2026

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, and so do standard prefixes like `0b`, `0o`, and `0x`.

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

Type into any field and the other three 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.

Recognizes standard prefixes

0b, 0o, and 0x are detected automatically, so you can paste straight from code.

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 like #1a2b3c are hex — convert them to decimal RGB or inspect the raw 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 — convert 0xFF to see the individual control bits.

Computer networking

IPv4 addresses use decimal octets, IPv6 uses hex groups, and the binary view reveals subnet masks.

Common mistakes

Stripping the prefix before pasting from code

0xFF, 0b1010, and 0o17 are recognized automatically — there's no need to remove the prefix first.

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, and it understands the standard 0x, 0b, and 0o prefixes you already use in code.

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