How to use it
- Enter the number. Prefixes such as 0x (hex), 0b (binary) and 0o (octal) are accepted, and spaces or underscores between digits are ignored.
- Pick the base the number is written in: 2, 8, 10, 16, or “Other” for anything from 2 to 36.
- Read all conversions at once. Choose uppercase letters for hex and turn on digit grouping for readability.
- Set the extra target base if you need, for example, base 36 or base 3, and copy any row.
Common uses
- Reading memory addresses, error codes and color values written in hexadecimal.
- Checking bit masks, flags and permissions in binary.
- Computer science homework on positional number systems.
- Decoding short IDs that use base 36.
- Verifying 64-bit and larger integers without losing precision to floating point.
Examples
| Input | Converted |
|---|---|
| 255 (decimal) | Binary 11111111 · Octal 377 · Hex FF |
| 0x1F (hex) | Decimal 31 · Binary 11111 |
| 1010 (binary) | Decimal 10 · Hex A |
| 18446744073709551615 (decimal) | Hex FFFFFFFFFFFFFFFFThe largest unsigned 64-bit integer, 2⁶⁴ − 1, converted exactly. |
| −42 (decimal) | Binary −101010 · Hex −2ANegative numbers keep a minus sign; no two's-complement encoding is applied. |
| ZZ (base 36) | Decimal 1295 |
Frequently asked questions
How do I convert binary to decimal?
Multiply each digit by 2 raised to its position, counting from 0 on the right, and add the results. 1011 = 1×8 + 0×4 + 1×2 + 1×1 = 11. The converter does this for any length of input.
How do I convert decimal to hexadecimal?
Divide the number by 16 repeatedly and write down the remainders, using A–F for 10–15; reading the remainders from last to first gives the hex number. 255 ÷ 16 = 15 remainder 15, so 255 = FF.
Why do programmers use hexadecimal?
One hex digit stands for exactly four binary digits, so long binary values become short and easy to read: 1111 1111 is FF. Colors (#FF8800), memory addresses and byte values are usually written in hex.
Does it support fractions or negative numbers?
Negative whole numbers are supported and keep their minus sign. Fractions are not: the converter works with integers only.
Is there a size limit?
Input can be up to 5,000 digits long. Calculations use arbitrary-precision integers, so very large values are exact, unlike tools based on standard floating-point numbers that lose precision above 2⁵³.
Related tools
Encoder / Decoder
Base64 encode/decode, URL encode/decode, and HTML entity conversion. Free online encoding tool.
Hash Generator
Generate MD5, SHA1, SHA256, SHA512 hashes and bcrypt passwords online. Free hash calculator.
Color Converter
Convert between HEX, RGB, and HSL color formats. Color picker with palette generator.
Roman Numeral Converter
Convert numbers to Roman numerals and Roman numerals back to numbers (1 to 3,999). Invalid numerals are flagged with an explanation.