inyourbrowser.com

Binary to decimal converter

Enter a binary number (base 2, using only 0s and 1s) to instantly see its decimal, hexadecimal, and octal equivalents.

BIN
OCT
DEC
HEX

INPUT BASE

All bases shown simultaneously.

Runs entirely in your browser

How it works

Conversion uses JavaScript's built-in parseInt(value, fromBase).toString(toBase). All four bases are computed simultaneously from the same input value, so you can see binary, octal, decimal, and hex at a glance.

Processing runs in your browser

All conversion runs in your browser tab. Our servers are not involved at any point.

Related operations

For converting between data sizes like KB and MB, try the byte converter. To compute MD5 or SHA hashes from values, use the hash generator. For working with file permission bits, see the chmod calculator.

Frequently asked questions

What is binary?
Binary is a base-2 numbering system using only the digits 0 and 1. All data in computers is ultimately stored and processed as binary.
Does it accept the 0b prefix?
Yes. Both '1010' and '0b1010' are accepted as binary inputs.
Is there a maximum number of bits?
JavaScript's number type is a 64-bit float, safely representing integers up to 53 bits (9,007,199,254,740,991). For larger numbers the result may lose precision.

Related tools

Byte converter
Convert between bytes, KB, MB, GB and TB in both decimal (SI) and binary (IEC) units.
Hash generator
Generate SHA-256, SHA-512, SHA-1, and MD5 hashes. Verify file checksums locally.
Unit converter
Convert length, weight, temperature, speed and volume between metric and imperial. Instant results.