What is binary?
Binary is a base-2 number system that represents values using only two digits: 0 and 1. Each position is a power of two — bit 0 is 2^0 (1), bit 1 is 2^1 (2), bit 2 is 2^2 (4), and so on. Computers use binary at the hardware level because transistors are inherently two-state devices (on/off, high/low voltage).
How does decimal to binary conversion work?
Repeatedly divide the decimal number by 2 and record each remainder. Read the remainders in reverse order to get the binary digits. For example, 42 ÷ 2 = 21 r0, 21 ÷ 2 = 10 r1, 10 ÷ 2 = 5 r0, 5 ÷ 2 = 2 r1, 2 ÷ 2 = 1 r0, 1 ÷ 2 = 0 r1 → reading bottom-up gives 101010. JavaScript implements this with (n).toString(2).
What is the largest decimal I can convert?
This tool accepts integers up to Number.MAX_SAFE_INTEGER, which is 9,007,199,254,740,991 (2^53 − 1). Beyond that, JavaScript numbers lose precision and the binary representation is no longer reliable. For arbitrary-precision conversion, use a BigInt or a dedicated big-integer library.
Why does the tool show hex and octal too?
Once you have a numeric value, every base is just a different representation of the same number. Showing all four side-by-side helps you build intuition — you start to see, for example, that hex F = binary 1111 = decimal 15 = octal 17. This is invaluable when reading register dumps, color codes, or file permissions.
Can I convert negative numbers?
This converter accepts non-negative integers only. Real systems represent negative numbers using two's complement, which depends on the bit width (8-bit, 16-bit, 32-bit, 64-bit). For two's complement conversion, decide a bit width first and then convert (2^n − |x|) for the negative value.
How do I read a long binary string?
Group the bits into nibbles (4-bit groups) from the right. Each nibble maps directly to one hex digit: 0000=0, 0001=1, 0010=2, … 1110=E, 1111=F. So 11010110 reads as 1101 0110 = D6 in hex. Grouping by 3 bits from the right gives octal — that is why hex and octal are popular shorthand for binary.
Does the batch mode have a limit?
There is no hard limit. The tool processes one line per number entirely in memory. Tens of thousands of values render in milliseconds. If a line is empty or invalid, the row shows an error so you can spot it without breaking the rest of the batch.
Is the input sent to a server?
No. Every conversion happens in JavaScript inside your browser. Open DevTools → Network and confirm: clicking Convert makes zero network requests. Safe to use with internal IDs, configuration values, or any data you cannot paste into a remote tool.