{"content":{"intro":"The Number Base Converter shows any whole number in binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16) at the same time. Choose the base your number is written in and convert.","sections":[["How number bases work","In decimal, each position is worth ten times the one to its right. In binary, each position is worth twice as much, so only the digits 0 and 1 are used. Hexadecimal needs sixteen digits, so after 9 it uses the letters A to F for the values 10 to 15."],["Where you'll meet them","Hexadecimal is compact and maps neatly onto binary, one hex digit is exactly four bits, so it's used for colour codes like #FF8800 and for memory addresses. Octal appears in Unix file permissions: chmod 755 sets read-write-execute for the owner and read-execute for everyone else. Binary is how the computer itself stores everything."],["Limits","This tool converts whole numbers, including negatives. Numbers larger than 9,007,199,254,740,991 lose precision because of how browsers store numbers, so use a dedicated big-number tool for anything bigger."]],"faqs":[{"q":"What is 255 in hexadecimal and binary?","a":"FF in hexadecimal and 11111111 in binary, the largest value a single byte can hold."},{"q":"Why does hexadecimal use letters?","a":"Base 16 needs sixteen single-digit symbols. After 0–9, the letters A–F stand for 10 to 15."},{"q":"How do I convert text to binary instead of a number?","a":"Use the Binary Translator, which converts each character of your text."}]},"copy":{"explain":"Your number is read digit by digit in the base you choose (or the base its 0x, 0b or 0o prefix shows) using exact big-integer arithmetic, then written out in binary, octal, decimal, hex and any base from 2 to 36. The bits panel shows the binary digits grouped into bytes.","example":"255 → binary 1111 1111 · octal 377 · hex FF, and 73 in base 36, with all eight bits shown. Choose Auto and type 0xFF, 0b1010 or 0o17 to have the base read from the prefix. Very large numbers like 123456789012345678901234567890 are converted exactly.","intro":"The Number Base Converter shows any whole number in decimal, binary, octal and hexadecimal at once, plus any other base from 2 to 36. Choose the base you typed in, or use Auto to read 0x, 0b and 0o prefixes. It handles numbers of any size exactly, shows the bits and byte count, and copies any result with a tap.","sections":[["How number bases work","In decimal, each position is worth ten times the one to its right. In binary, each position is worth twice as much, so only 0 and 1 are used. Hexadecimal needs sixteen digits, so after 9 it uses A to F for 10 to 15. Bases up to 36 use all the letters of the alphabet."],["Where you'll meet them","Hexadecimal maps neatly onto binary, one hex digit is exactly four bits, so it's used for colour codes like #FF8800 and memory addresses. Octal appears in Unix file permissions, such as chmod 755. Base 36 is used for short IDs and URL shorteners because it packs a lot into few characters."],["Any size, exactly","Ordinary calculators lose precision above 9,007,199,254,740,991. This tool uses big-integer arithmetic, so even 30-digit numbers convert exactly. Negative numbers keep their minus sign."]],"faqs":[{"q":"What is 255 in hexadecimal and binary?","a":"FF in hexadecimal and 11111111 in binary, the largest value a single byte can hold."},{"q":"What do 0x, 0b and 0o mean?","a":"They're prefixes programmers use for hex, binary and octal. Choose Auto and the tool reads them for you."},{"q":"How do I convert text to binary instead of a number?","a":"Use the Binary Translator, which converts each character of your text."}]},"feat":[["Four bases at once","Decimal, binary, octal and hexadecimal side by side as you type."],["Any base 2–36","Convert to unusual bases too, not just the common four."],["Auto-detect","Reads 0x, 0b and 0o prefixes automatically."],["Any size, exact","Handles very large numbers exactly and shows the bit and byte count."]],"faqx":[{"q":"How do I convert decimal to binary by hand?","a":"Divide the number by 2 repeatedly and write down each remainder, then read the remainders from bottom to top. For 13: 13/2 = 6 r1, 6/2 = 3 r0, 3/2 = 1 r1, 1/2 = 0 r1, so 13 is 1101 in binary."},{"q":"How do I convert hex to decimal by hand?","a":"Multiply each digit by a power of 16, counting from the right, and add them up, with A to F meaning 10 to 15. For 1A3: 1 x 256 + 10 x 16 + 3 x 1 = 419."},{"q":"Why does hexadecimal use letters?","a":"Base 16 needs sixteen digits, so after 0 to 9 it uses A to F for 10 to 15. Higher bases continue the alphabet: base 36 uses 0 to 9 and A to Z, which is why it is popular for short codes and IDs."},{"q":"Can it convert negative numbers?","a":"Yes, type a minus sign and the result keeps the minus sign in every base, such as -255 to -FF. It does not show the two's complement form that computers use internally, and the bits panel shows the number without its sign."},{"q":"Can I convert decimal fractions like 12.5?","a":"No, it converts whole numbers only. A decimal point is not a valid digit, so 12.5 shows an error. To convert a fraction you would need to handle the part after the point separately, by repeatedly multiplying it by the target base."},{"q":"Why do I get an error saying a digit isn't valid?","a":"The number contains a digit that does not exist in the chosen base, such as a 2 in binary, an 8 in octal or a G in hex. Check that the It is written in option matches your number, or choose Auto if it has a 0x, 0b or 0o prefix."},{"q":"Can I paste numbers with spaces, commas or underscores?","a":"Yes. Spaces, commas and underscores are ignored, so 1111 1111, 1111_1111 and 1,000,000 are all read correctly. This makes it easy to paste grouped binary or numbers copied from code."},{"q":"How many bytes does a number need?","a":"Count its binary digits and divide by 8, rounding up. 255 is 11111111, which is 8 bits or 1 byte, while 256 needs 9 bits and so 2 bytes. The bits panel shows the bit count, byte count and how many bits are set."}]}