The Integer Base Converter converts whole numbers between number systems, mainly binary, octal, decimal and hexadecimal. You can also choose any base from 2 to 36. Numbers can be of any size, and prefixes such as 0x, 0b and 0o are recognised. A place-value breakdown explains how the result arises, and the two's complement view shows negative numbers at a fixed bit width. Everything runs in your browser and nothing is sent anywhere.
Enter the number and keep the input base on decimal. The binary result appears immediately. The place values section also shows which powers of two add up to the number.
0xFF is 255. Enter 0xFF with the input base set to hex; the prefix is recognised. The decimal tile then shows 255, and in binary it is eight ones.
Each position has a weight that is a power of the base, so in base 2 it is 1, 2, 4, 8 and so on. The number is the sum of every digit times its weight. The tool shows exactly this calculation.
It is how computers store negative integers at a fixed bit width. The top bit counts as negative and all other bits count normally, so −1 is always all ones. The same bit pattern read as unsigned is a large positive number.
Signed, 8 bits cover −128 to 127; unsigned, 0 to 255. If your value lies outside, the tool reports the minimum width needed and offers a larger one.
Digits of the chosen base (case does not matter), a sign, spaces and underscores for grouping, and the matching prefix. Fractions are not supported, only integers.
Input can be up to 5000 digits long, calculated exactly with BigInt. The two's complement view offers bit widths of 8, 16, 32 and 64.
No. Bases 2 to 36 use the digits 0–9 followed by the letters a–z, as in JavaScript or Python. Base32 and Base64 encode bytes as text, which is a different method.
No. The conversion runs entirely in your browser and no data is sent to a server.
Number systems differ in their base, meaning the number of digits available. In everyday life we use the decimal system, base 10. Computers work internally in binary, base 2, because two states can be told apart reliably in hardware. Hexadecimal (base 16) and octal (base 8) are compact ways to write binary numbers: one hex digit corresponds to exactly four bits, one octal digit to three. That is why memory addresses, colour values and byte sequences are usually written in hex.
All of these are place-value systems. Each position carries a weight that is a power of the base. In base 10 these are 1, 10, 100; in base 2 they are 1, 2, 4, 8; in base 16 they are 1, 16, 256. The value of a number is the sum of digit times weight. So 156 in decimal equals 10011100 in binary, because 128 + 16 + 8 + 4 makes 156. From base 11 upward, letters serve as digits: a stands for 10, b for 11 and z for 35. That is why 36 is the usual upper limit, as many programming languages also use when turning numbers into text.
Programs use prefixes to mark the base: 0x for hex, 0b for binary and 0o for octal. The tool understands them on input and can add them to the output.
Computers store negative integers at a fixed bit width using two's complement. The top bit has the negative weight −2 to the power (n−1), while all other bits count as usual. At 8 bits the signed range runs from −128 to 127 and the unsigned range from 0 to 255. The number −1 is always all ones; read as an unsigned 8-bit number, the same pattern is 255. Whether a bit pattern counts as signed or unsigned is decided by the data type, not by the pattern itself.
When converting by hand, you repeatedly divide by the target base and note the remainders, or you add up the matching place values. Both are error-prone with large numbers, which is why a converter with a visible working helps with learning and checking.
It converts integers between all number systems from base 2 to 36 — live as you type and for numbers of any size (up to 5000 digits, exact with BigInt). Negative numbers, signs and prefixes such as 0x, 0b and 0o are understood. Everything is calculated in your browser.
Every position has a weight, a power of the base: in base 10 these are 1, 10, 100 …, in base 2 they are 1, 2, 4, 8 …, in base 16 they are 1, 16, 256 …. The number is the sum of all digit × weight. That is exactly what the “Working (place values)” box shows. Digits above 9 are letters: a = 10, b = 11 … z = 35.
Digits of the chosen base (case does not matter), a + or − sign, spaces and underscores for grouping (1_000_000). The matching prefix may come first: 0x for hex, 0b for binary, 0o for octal. If the input fits another base, the message offers “Read as base …”. There are no fractions — integers only.
This is how computers store negative integers at a fixed bit width: the top bit counts −2^(n−1), all others count normally. So −1 is always “all bits 1”. The same bit pattern read as unsigned is a large positive number (255 instead of −1 at 8 bits). A number like 200 fits 8 bits only as unsigned — the tool then shows both readings.
Bases 2 to 36 use the digits 0–9 and then the letters a–z in order, as in JavaScript or Python. That is not “Base32” from RFC 4648 (alphabet A–Z, 2–7) and not Base64: those encode bytes as text, while here a number is written in another number system.
Die Werkzeuge auf dieser Website werden als kostenloses Hobbyangebot bereitgestellt und dienen ausschließlich zur Information und privaten Nutzung. Für die Richtigkeit, Vollständigkeit oder Eignung der Ergebnisse für einen bestimmten Zweck wird keine Gewähr übernommen. Vor Verwendung der Ergebnisse — insbesondere bei finanziellen, rechtlichen oder sicherheitsrelevanten Entscheidungen — sind diese eigenverantwortlich zu prüfen. Eine Haftung für Schäden aus der Nutzung ist ausgeschlossen, soweit dies gesetzlich zulässig ist.