# Binary to decimal converter > What is a binary number in decimal? Turn a binary number such as 1010 or 11111111 into an ordinary decimal number. Convert a binary number to decimal: type the 0s and 1s and read the whole number at once, also in octal and hexadecimal. Works for numbers of any size. A preset of [Number base converter](https://how.box/number-base/). - Page: https://how.box/binary-to-decimal/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/binary-to-decimal/?v={v}&from={from}&to={to}&upper={upper} - `v` (text): The number, written in the base from. Example: `255`. - `from` (whole number 2 to 36): The base the number is written in, 2–36. Example: `10`. - `to` (whole number 2 to 36): The base to convert to, 2–36. Example: `16`. - `upper` (boolean): Upper-case letters in the result: 1 or 0. Example: `false`. Example answer: https://how.box/binary-to-decimal/?v=255&from=10&to=16&upper=0 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `number_base_convert`: Converts a whole number of any size between bases 2 and 36 (binary, octal, decimal, hexadecimal and the rest). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"number_base_convert","arguments":{"value":"255","from":10,"to":16,"uppercase":false}}}` - GET: https://how.box/mcp/run/number_base_convert?value=255&from=10&to=16&uppercase=false ## How it works Binary place values double from the right: 1, 2, 4, 8, 16, 32 and so on. A digit 1 adds its place's value, a digit 0 adds nothing. For 101101, the places holding a 1 are worth 32 + 8 + 4 + 1, which is 45. Eight binary digits make a byte, so the biggest byte value is eight ones in a row: 255. That is why limits in computing are so often one less than a power of two. There is a quicker way to do it by hand. Read the digits from the left, doubling the running total and adding the next digit. For 1011 that is 1, then 2, then 5, then 11. Leading zeros never change the value: 00101101 is the same as 101101, which is 45. This page reads whole binary numbers as positive. Computers also use binary for negative numbers, in a form called two's complement, where the same pattern means a different value. ## FAQ **What is 1000 in binary as a decimal number?** 8. A 1 followed by three zeros is the fourth place from the right, worth 8. **How many values fit in 8 binary digits?** 256, from 0 to 255. **Why do binary numbers get long so quickly?** Binary has only two digits, so each place carries little information. Hexadecimal groups four binary digits into one to keep numbers short. **Is 11111111 equal to 255 or to −1?** It depends on how it is read. As a plain unsigned number it is 255, which is what this converter shows. In a signed 8-bit number, two's complement, the same eight ones mean −1. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)