Doubling Through Each Binary Digit
Type 1010 and convert. The headline is 10. The sentence reads: 1010 in binary is 10 in decimal. The labels repeat Binary 1010 and Decimal 10. The page starts at 0 and, for each digit, doubles the running total and adds the digit. For 1010 that walk is short. Start at 0. The first digit is 1, so double 0 and add 1, which is 1. The next digit is 0, so double 1 and add 0, which is 2. The next digit is 1, so double 2 and add 1, which is 5. The last digit is 0, so double 5 and add 0, which is 10. The last total is the decimal. The same walk on a single digit is smaller: 1 is 1, and 0 is 0.
Only the digits 0 and 1 are accepted, and the string must be from 1 to 40 digits after the ends are trimmed. 102 is rejected with Enter 1 to 40 binary digits. A blank field, a space in the middle, a letter, a digit 2 through 9, and a 41st digit all use that same sentence. The page does not skip the bad digit and convert the rest. Leading zeros do not change the value. 0001 walks to 1, the same destination as 1, and the Binary label keeps the zeros you typed so you can see what was submitted. The decimal does not keep them.
The running total is kept as an exact whole number, including when the string is long. A 40-digit string of ones is still an exact integer under this doubling, not a rounded approximation. The page does not show the intermediate totals. It shows the binary you typed and the final decimal. The steps under the result describe the walk: start at 0, double and add for each digit, and take the last total. You can replay the walk on paper for 1010 and match the headline 10.
The number-base converter is a different page. This page accepts only 0 and 1 and only produces a decimal. It does not ask for a source base or a target base, because both are fixed. The button says Convert to decimal. The field starts at 1010. Reset returns that sample. Copy result copies the sentence that names both the binary and the decimal. If you need the walk written out, write it yourself. The page's proof that the walk happened is the decimal you can recompute.
What the Running Total Does
The running total begins at 0 before any digit is seen. Each digit does two things in order: the total is doubled, then the digit is added. Doubling shifts the value by one binary place. Adding 0 leaves the doubled total alone. Adding 1 raises it by one. After the last digit, the total is the decimal value of the whole string. 1010 becomes 10 by that rule, 1 becomes 1, and 0 becomes 0. The headline is the decimal. The Binary label is the string after trimming, so you can compare it with what you meant to type.
The method does not use a table of powers that you have to remember, though it matches that table. The rightmost digit of 1010 is the ones place, the next is twos, the next is fours, and the leftmost is eights. One eight, zero fours, one two, and zero ones is 10. The doubling walk visits the digits from the left and reaches the same 10. The page shows the result of the walk, not both writings. Leading zeros add doubled zeros and do not move the value. A string of only zeros, of any accepted length, is decimal 0. The Binary label still shows the zeros.
How 1010 Is Walked to 10
The sample 1010 matches one to forty characters, and every character is 0 or 1. The total starts at 0. Digit 1: double 0, add 1, total 1. Digit 0: double 1, add 0, total 2. Digit 1: double 2, add 1, total 5. Digit 0: double 5, add 0, total 10. The headline is 10. The sentence says 1010 in binary is 10 in decimal. Binary is 1010. Decimal is 10. Try 1111 with the same discipline. Totals: 1, then 3, then 7, then 15. The headline is 15. Try 10. Totals: 1, then 2. The headline is 2. Try 0. The only step doubles 0 and adds 0, and the headline is 0. None of these strings is rejected. 102 never starts the walk. Enter 1 to 40 binary digits is the refusal, and there is no decimal to read.
Other bases are a different converter. The Number Base Converter converts a whole number from one base to another. Bases run from 2 to 36. Digits above 9 use the letters A through Z. 255 in base 10 is FF in base 16. 1010 in base 2 is 10 in base 10, which is the same pair this page prints, reached through a form that also asks for the two bases. That page does not accept a decimal point, a fraction, or a leading minus. Use it when the base is not fixed. Use this page when you already know the input is bits and the output is decimal, and you want the doubling walk as the definition of the result.
Strings That Never Start the Walk
Enter 1 to 40 binary digits covers every bad string. 102 fails because of the 2. 2 fails. 1010b fails. A space in the middle fails, while spaces at the ends are trimmed away before the test, so 1010 with a trailing space still converts to 10. An empty field fails. A string of 41 ones fails even though every character is a legal digit. The page does not convert the first 40 and drop the last. It does not point at the bad character. If the refusal surprises you, scan for a digit other than 0 and 1, then count the digits. Forty is the maximum. One is the minimum.
The page will not interpret a sign. A leading minus is not a binary digit, so the string is refused rather than converted and then negated. A fraction point is refused the same way. There is no hexadecimal field hiding on the page. Letters A through F are refused here even though another tool accepts them as digits in a higher base. This page's alphabet is 0 and 1. The number-base converter is a different page. Do not expect this one to emit FF, and do not expect a refusal to include a partial decimal. The walk runs only after the whole string has been accepted.
Short Strings You Can Finish by Hand
Convert 1010 and confirm 10. Convert 1 and confirm 1. Convert 0 and confirm 0. Convert 10 and confirm 2. Convert 11 and confirm 3. Convert 1111 and confirm 15. Convert 0001 and confirm the decimal is 1 while the Binary label still shows 0001. Convert 102 and confirm Enter 1 to 40 binary digits, with no decimal sitting beside the error from an older success you might still be remembering. The result area updates on a successful convert. A refusal is the message, not a new decimal. Convert a string of 41 zeros and confirm the same refusal. The length rule and the digit rule share one sentence on purpose. The string is legal only when both are satisfied.
A random mix of letters is not a binary value. The Random String Generator builds one string from letters, digits, or both. A seed repeats the same string. It does not store the string as a password. A string it builds from letters and digits will usually contain characters this page refuses. Use it when you want that generated string. Use the doubling walk here when you already have 0s and 1s. Do not feed a mixed string into this converter and expect the letters to be skipped. 102 is the small proof that a single foreign digit stops the whole conversion.
Limits of a 40-Digit Walk
Forty digits is the longest accepted string. The value of a long string can be a large integer. The page keeps the total exact by doubling and adding with integer arithmetic, so the headline is the whole decimal, not a rounded scientific form. It does not insert thousands separators. It does not show the powers of two beside the digits. It does not accept more than one number at a time. A space, a comma, or a second word makes the string illegal. Convert one string, copy the sentence, then convert the next.
Mistakes That Look Like Other Encodings
The usual miss is to include a 2. 102 is rejected with Enter 1 to 40 binary digits. Binary here is only 0 and 1. Another miss is to expect 0001 to show a decimal of 0001. The value is 1. Another miss is to paste a token, a uuid, or a hex color and hope the letters will be ignored. They will not. The whole string is refused. Another miss is to read the doubling walk from the right. The page reads left to right, doubling as it goes. Both directions agree when you finish, and the headline is that finished value. Replaying from the wrong end and stopping halfway will not match the page. Another miss is to treat this form as the general base converter. The number-base converter is a different page, with a from-base and a to-base.
A dotted token is not a binary integer. The JWT Decoder splits a token on two dots and pretty-prints the header and payload as JSON. The signature is not checked. A decoded payload is not proof the token is genuine. Base64url characters are not the digits of this converter, and a decoded claim is not a decimal from a doubling walk. Use the decoder when you want to read a token and you will keep the warning that the signature was not checked. Use 1010 here when you want the decimal 10. Do not decode a token and then describe the payload as a binary conversion.
Replaying the Walk on Paper
Write the digits in a row. Put 0 above the start. For each digit, write the double-and-add result under it. For 1010 the results are 1, 2, 5, and 10. The last number should match the headline. If it does not, you either doubled the wrong total or added a digit from a different string. This habit stays useful up to the point where the totals get long. You do not have to finish a 40-digit walk by hand to trust the rule. Finish 1010, 1111, 0, and 1. Then trust a longer string that uses the same rule, and copy the decimal from the page rather than from a partial paper walk.
Keeping the Binary Beside the Decimal
A useful note is the sentence itself: 1010 in binary is 10 in decimal. It holds both sides. Add the walk underneath if you are learning the method: 0, then 1, then 2, then 5, then 10. For 0 and 1, the note can be as small as the headline, but the sentence is still clearer. For 0001, copy the sentence so the zeros are not lost. The decimal 1 alone could have come from 1, 01, or 0001. The page does not store which one you typed after you convert something else. Reset returns 1010. A 40-digit value should be copied from the headline or the sentence, not retyped from memory.
Identifiers are not binary place values. The UUID Generator generates version-4 UUIDs, and a seed repeats the same identifiers. A UUID contains hex digits and hyphens. It is not a string this page will convert, and this page does not generate identifiers. Use the generator when you need an identifier. Use the doubling walk when you need the decimal for a string of 0s and 1s. Keep those notes apart. A UUID is not the decimal form of 1010, and 10 is not a UUID.
After the Decimal Is Copied
Copy the sentence so the binary and the decimal travel together. A bare 10 is easy to confuse with a ten you got from another calculation. The sentence 1010 in binary is 10 in decimal is not easy to confuse. If you also wrote the walk, keep it as your own working, and let the sentence be the page's result. They should meet at 10 for the sample. If they do not, redo the sample before you trust a longer string. The page will still be happy to convert 1010 after a reset.
Checks on 10, 1, and 0
Convert 1010 and confirm 10. Walk it once on paper: 1, 2, 5, 10. Convert 1 and confirm 1. Convert 0 and confirm 0. Convert 1111 and confirm 15. Convert 0001 and confirm decimal 1 with the zeros still on the Binary label. Convert 102 and confirm Enter 1 to 40 binary digits. Convert 41 ones and confirm the same refusal. Reset and confirm the field is 1010 again. The headline after a fresh convert of the sample should be 10, with no separators added and no rounding.
If you want the arithmetic as separate keypresses, use a general calculator beside the walk, not instead of the digit rule. The 4 Function Calculator is the four-operation calculator. It will double a number and add a digit when you ask it to, and it will not reject 102 as a binary string because it is not a binary converter. Use it to replay one step, such as 5 times 2, when you want that step on its own. Use this page to accept only 0 and 1 and to finish the whole walk. The sample result is 10, from 1010, by doubling and adding.