How number bases work
In a positional system each digit is worth its value times a power of the base. In decimal, 345 means 3 hundreds, 4 tens and 5 ones. Binary uses only 0 and 1 and powers of two, so 1011 is one 8, no 4, one 2 and one 1, which is 11. Octal groups binary digits in threes and hexadecimal in fours, which is why one hex digit always stands for exactly four bits and two hex digits for one byte. Bases above 10 borrow letters for the extra digits: a is 10, f is 15, and base 36 runs all the way to z for 35. Base 36 is handy for short IDs because it packs the most value into ordinary letters and digits.
Huge numbers stay exact
Most online calculators store numbers as 64-bit floating point, which can only hold whole numbers exactly up to 9,007,199,254,740,991. Beyond that the last digits are quietly rounded, so a long hash or a 64-bit ID comes back wrong. This converter uses whole-number arithmetic of any size in the browser, so a 5,000-digit decimal number converts to binary and back without a single digit changing. Inputs are limited to 20,000 characters to keep the page responsive on phones.
Two's complement in 8, 16, 32 and 64 bits
Computers store negative whole numbers in two's complement: take the positive value in binary, flip every bit and add 1. In 8 bits, 1 is 00000001, so -1 is 11111111, which is FF in hex. The same pattern means 255 if you read it as unsigned, which is why the tool shows both readings. An 8-bit signed number runs from -128 to 127, 16 bits from -32,768 to 32,767, and 32 bits from about -2.1 billion to 2.1 billion. Choose a width to see the pattern bit by bit with the bit positions under each group of four. If a value does not fit the width you chose, the tool tells you instead of silently cutting it.
Fractions and repeating digits
Fractions convert too. 0.5 in decimal is 0.1 in binary and 10.625 is 1010.101, but 0.1 has no exact binary form: it is 0.0001100110011… for ever. The converter finds the repeating block and writes it in brackets, 0.0(0011), which explains the familiar rounding surprises in programming where 0.1 + 0.2 is not exactly 0.3. When a fraction does not end or repeat within 64 digits it is cut there and the page says so; the whole-number part is always exact.
Text to binary and hex with UTF-8
The text panel shows the bytes a computer stores for your text. UTF-8, the encoding defined in RFC 3629 and used by almost every web page, writes the 128 ASCII characters in one byte each, characters up to code point U+07FF, which includes the Arabic letters, in two bytes, most other scripts in three, and emoji in four. So "Hi" is 48 69 in hex, the Arabic letter meem is D9 85, and a smiling face takes four bytes. You can choose binary, hex or decimal bytes, switch to strict ASCII to catch characters outside 0-127, or paste bytes to decode them back to text. A table under the result lists each character with its code point, which helps when you debug garbled text.