Binary to decimal
Convert binary numbers of any length to decimal, with hex and octal shown too, exactly and as you type.
Runs in your browserNothing uploadedWorks offline
Set up for this job. It runs on Number base converter, where every option is there to change.
Loading Binary to decimalRuns on this device. Nothing is uploaded.
Questions
How does binary to decimal work?
Each digit is a power of 2, counted from the right: 1, 2, 4, 8 and so on. Add up the powers where the digit is 1. 101010 is 32 + 8 + 2 = 42.
Is there a length limit?
No practical one. Numbers are handled as BigInt, so very long binary strings convert exactly instead of being rounded.
Does it handle negative numbers?
A leading minus sign is kept. Two's complement bit patterns are read as plain positive numbers.
Related tools
All developer toolsDeveloperNumber base converterConvert whole numbers of any length between binary, octal, decimal, hex and any base from 2 to 36, without losing precision.DeveloperBase64 encode and decodeEncode text or any file to Base64 and decode Base64 back to text or the original file, with a URL-safe option.Developerapplication image videoChecksum verifierDrop a file and paste the published checksum to see if it matches. MD5, SHA-1, SHA-256, SHA-384, SHA-512 and CRC32 are detected for you.DeveloperChmod calculatorTick read, write and execute boxes or type 755 or rwxr-xr-x, and get the matching octal, symbolic and chmod command, explained.DeveloperCIDR and subnet calculatorType an IP with a prefix or mask to get the network, broadcast, host range, host count, netmask and wildcard. IPv6 works too.Developerjs mjs cjsCode formatterFormat HTML, CSS, JavaScript, TypeScript, JSON, Markdown and YAML with Prettier, right in your browser, with indent and quote options.