The complete number system converter
A number converter translates a value from one number system into another — binary to decimal, decimal to hexadecimal, octal to binary, and far beyond. This free tool converts across every base from 2 to 62, including binary, octal, decimal, hex, Base32, Base36, Base58 and Base62, and computes every result with exact BigInt arithmetic — so there is no overflow and no rounding error, even for numbers with hundreds of digits.
It is also a full developer workbench: bit-level analysis, a binary & bitwise calculator, a two’s-complement tool, an IEEE-754 floating-point inspector, full text & character encoding (ASCII, Unicode, UTF-8/16/32, Base64) and Roman numerals & number-to-words — all running privately in your browser.
Quick answers
The most-asked number questions, answered directly.
What is 255 in binary?
255 = 11111111 (binary).
What is FF in decimal?
FF (hex) = 255 (decimal).
What is 170 in hexadecimal?
170 = AA (hex), 10101010 (binary), 252 (octal).
How many bits are in a byte?
A byte is 8 bits, holding values 0–255.
How many bits is one hex digit?
One hex digit = 4 bits (a nibble).
What is the largest 8-bit number?
255 unsigned (11111111), or 127 signed in two’s complement.
What is 2025 in Roman numerals?
2025 = MMXXV.
What is Base64?
Base64 encodes binary data as 64 printable ASCII characters (A–Z, a–z, 0–9, +, /).
How to convert numbers in 3 steps
Pick your bases
Choose the “from” and “to” bases — binary, hex, decimal, or any custom base from 2 to 62.
Enter a value
Type any number — negatives, fractions and scientific notation are supported. Results appear instantly.
Explore & export
See every base, the step-by-step working, bit analysis and more, then copy, share or download (TXT/CSV/JSON).
A complete developer toolkit
Every base at once
Binary, octal, decimal, hex, Base32/36/58/62 and any custom base 2–62 — live as you type.
Exact big numbers
BigInt arithmetic means no overflow — convert hundreds of digits, fractions and negatives exactly.
Bit-level analysis
Set bits, zeros, parity, Hamming weight and an interactive bit grid for any integer.
Binary & bitwise
Add/subtract/multiply/divide, and AND/OR/XOR/NOT/NAND/NOR/XNOR with shifts.
Two’s complement & IEEE-754
Signed/unsigned at 8–64 bits, and Float32/64 sign-exponent-mantissa breakdowns.
Text & encoding
ASCII, Unicode, UTF-8/16/32, text↔binary, text↔hex and Base64 — both directions.
Roman & words
Roman numerals, number-to-words (international & Indian) and number formatting.
Smart detection
Recognises 0x, 0b, 0o prefixes and digit patterns to suggest the right base.
Understanding number systems
Binary, hex, octal, Base64, IEEE-754 and two’s complement — explained.
What is binary?
Binary is the base-2 number system that underlies all digital computing. It uses just two digits, 0 and 1, because a computer’s transistors have two reliable states — off and on. Each position in a binary number is a power of two, so 1011 means 1×8 + 0×4 + 1×2 + 1×1 = 11. Groups of eight bits form a byte, the basic unit of memory, which can store 256 distinct values.
What is hexadecimal?
Hexadecimal (base-16) uses sixteen symbols: the digits 0–9 plus the letters A–F for the values 10–15. Its great advantage is that one hex digit corresponds to exactly four binary bits, so any byte is just two hex digits and a 32-bit value is eight. That compactness is why memory addresses, colour codes (#FF8800) and raw machine values are almost always shown in hex.
What is octal?
Octal (base-8) uses the digits 0–7, and each octal digit maps to exactly three binary bits. It was common in early computing and still appears today in Unix file permissions — chmod 755 sets read/write/execute bits using octal. Like binary and hex, octal is a positional system based on a power of two, which makes conversions to and from binary straightforward.
How computers store numbers
Everything in a computer is ultimately binary. Whole numbers are stored as fixed-width binary, with negative values represented using two’s complement so that one set of circuitry handles both addition and subtraction. Real numbers use the IEEE-754 floating-point format, splitting each value into a sign, an exponent and a mantissa. Even text is numbers: each character is a code stored via an encoding such as ASCII or UTF-8.
What is Base64?
Base64 is a binary-to-text encoding, not a positional number system. It takes arbitrary binary data and represents it using 64 safe, printable characters (A–Z, a–z, 0–9, + and /), padding with = as needed. Three bytes of input become four Base64 characters. It exists so binary data — images, files, cryptographic keys — can travel safely through text-only channels like email headers, URLs and JSON.
What is IEEE-754?
IEEE-754 is the international standard for floating-point arithmetic. A 32-bit float uses 1 sign bit, 8 exponent bits and 23 mantissa bits; a 64-bit double uses 1 + 11 + 52. The value is roughly sign × 1.mantissa × 2^(exponent − bias). Because most decimal fractions have no exact binary form, values like 0.1 are stored as the nearest representable number — which is why floating-point results sometimes look slightly off.
What is two’s complement?
Two’s complement is how nearly all computers store signed integers. The top bit carries the sign, and a negative number is formed by inverting every bit of its positive counterpart and adding one. The elegance is that ordinary binary addition then works for both signs with no special cases, and there is a single representation of zero. This tool shows the signed and unsigned interpretation of any bit pattern at 8, 16, 32 and 64 bits.
Why programmers use hexadecimal
Programmers reach for hex because it is the most human-readable form of binary. Since each hex digit is exactly four bits, you can read a hex value and instantly know the bit pattern, group bytes cleanly, and write large values compactly. Debuggers, memory dumps, colour pickers, hashes and machine code are all presented in hex for exactly this reason.
Number systems & terms
- Binary (base 2)
- Digits 0 and 1; each place is a power of two. The native language of computers.
- Octal (base 8)
- Digits 0–7; each digit equals three bits. Used in Unix file permissions.
- Decimal (base 10)
- Digits 0–9; the everyday number system based on powers of ten.
- Hexadecimal (base 16)
- Digits 0–9 and A–F; each digit equals four bits. The programmer’s shorthand for binary.
- Base32 / 58 / 62
- Larger-alphabet positional systems and encodings that produce short strings; Base58 is used by Bitcoin.
- Base64
- A binary-to-text encoding using 64 printable characters — for transmitting binary safely as text.
- Bit
- A single binary digit, 0 or 1 — the smallest unit of information.
- Byte
- Eight bits; represents 256 values (0–255). The basic unit of memory.
- Two’s complement
- The standard signed-integer representation; negatives are bit-inverted plus one.
- IEEE-754
- The floating-point standard: sign + exponent + mantissa (Float32 and Float64).
- ASCII
- A 7-bit code mapping 128 characters to numbers 0–127 (A = 65).
- Unicode
- A universal character set assigning a code point to every character, encoded via UTF-8/16/32.
Accuracy & precision
Integer conversions use arbitrary-precision BigInt arithmetic, so there is no overflow — you can convert a 200-digit number between any bases exactly. Fractions are handled with exact rational maths rather than lossy floating point, and you control how many fractional digits to display. Two’s-complement and bitwise results are masked to the exact bit width you choose (8/16/32/64), and the IEEE-754 view shows the true stored bit pattern of any float.
Frequently asked questions
What is binary?
Binary is the base-2 number system, using only the digits 0 and 1. Each position represents a power of two. Computers use binary because their transistors have two stable states (off and on), which map naturally to 0 and 1.
What is hexadecimal?
Hexadecimal is the base-16 number system, using the digits 0–9 and the letters A–F (where A=10, B=11, …, F=15). It is popular with programmers because one hex digit represents exactly four binary bits, so a byte is just two hex digits.
What is octal?
Octal is the base-8 number system, using digits 0–7. Each octal digit maps to exactly three binary bits. It is used in Unix file permissions (for example chmod 755) and some legacy systems.
What is the decimal system?
Decimal is the base-10 number system we use every day, with digits 0–9. Each position represents a power of ten. It is called base-10 because it has ten distinct digits.
What is 255 in binary?
255 in binary is 11111111 — eight ones. This is the largest value that fits in a single 8-bit byte, which is why 255 appears so often in computing (for example in RGB colour values).
What is FF in decimal?
FF in hexadecimal equals 255 in decimal. F is 15, so FF = 15×16 + 15 = 255. It is the maximum value of one byte.
How does base conversion work?
To convert to decimal, multiply each digit by its base raised to the digit’s position and add the results. To convert from decimal to another base, repeatedly divide by the target base and read the remainders from bottom to top. This tool shows every step.
How do I convert binary to decimal?
Multiply each binary digit by the corresponding power of two and add them. For example 1011 = 1×8 + 0×4 + 1×2 + 1×1 = 11. Use the step-by-step view to see the full expansion.
How do I convert decimal to binary?
Repeatedly divide the decimal number by 2, writing down each remainder, until the quotient is 0. Read the remainders from bottom to top. For example 13 → 1101.
How do I convert decimal to hexadecimal?
Repeatedly divide by 16 and record the remainders (using A–F for 10–15), then read them bottom-to-top. For example 255 → FF, and 4095 → FFF.
What is Base64?
Base64 is a binary-to-text encoding that represents binary data using 64 printable ASCII characters (A–Z, a–z, 0–9, + and /). It is used to safely transmit binary data — like images or attachments — through text-only channels such as email or JSON. It is an encoding, not a positional number system.
What is Base32, Base58 and Base62?
These are positional number systems (and encodings) using larger digit alphabets. Base32 uses 32 symbols, Base58 (used by Bitcoin) omits easily-confused characters like 0/O and l/I, and Base62 uses 0–9, A–Z and a–z. They produce shorter strings than binary or hex for the same value.
What is ASCII?
ASCII (American Standard Code for Information Interchange) is a 7-bit character encoding that maps 128 characters — letters, digits and symbols — to the numbers 0–127. For example the letter A is 65 and the digit 0 is 48.
What is Unicode?
Unicode is a universal character standard that assigns a unique code point to every character in every writing system, far beyond ASCII’s 128. Code points are written like U+0041 (the letter A). UTF-8, UTF-16 and UTF-32 are ways of encoding those code points as bytes.
What is the difference between UTF-8, UTF-16 and UTF-32?
They are all encodings of Unicode. UTF-8 uses 1–4 bytes per character and is backward-compatible with ASCII, making it the web standard. UTF-16 uses 2 or 4 bytes. UTF-32 uses a fixed 4 bytes per character. UTF-8 is the most space-efficient for Latin text.
What is two’s complement?
Two’s complement is the standard way computers represent signed integers. The most significant bit indicates the sign, and negative numbers are formed by inverting all bits and adding one. It lets the same addition circuitry work for both positive and negative numbers.
How do I find the two’s complement of a number?
Invert every bit of the number (one’s complement) and then add 1. For example, in 8 bits, +5 is 00000101, so −5 is 11111010 + 1 = 11111011.
What is IEEE-754?
IEEE-754 is the standard for representing floating-point numbers in computers. A number is split into a sign bit, an exponent and a mantissa (fraction). Float32 uses 1 + 8 + 23 bits; Float64 uses 1 + 11 + 52 bits. This tool shows each field for any value.
Why do programmers use hexadecimal?
Hex is compact and maps cleanly to binary: each hex digit equals four bits, so a 32-bit value is just 8 hex digits. It is far easier to read and write than long binary strings, which is why memory addresses, colour codes and machine values are shown in hex.
How do computers store numbers?
Computers store all numbers as binary bits. Integers use fixed-width binary (often with two’s complement for signs), and real numbers use IEEE-754 floating point. Text is stored as numbers too, via character encodings like ASCII and UTF-8.
What is a bit and a byte?
A bit is a single binary digit (0 or 1). A byte is a group of 8 bits, which can represent 256 values (0–255). Bytes are the basic unit of computer memory and storage.
What is the Hamming weight of a number?
The Hamming weight (or population count) is the number of 1 bits in a number’s binary representation. For example 170 (10101010) has a Hamming weight of 4. It is used in error-correcting codes and performance-critical algorithms.
What is parity?
Parity tells you whether the number of 1 bits is even or odd. Even parity means an even count of 1s; odd parity means an odd count. Parity bits are a simple way to detect single-bit errors in transmitted data.
Can this converter handle very large numbers?
Yes. Integer conversions use BigInt arbitrary-precision arithmetic, so there is no overflow — you can convert numbers with hundreds of digits exactly. Fractions are handled with exact rational maths.
Does it support negative and fractional numbers?
Yes. You can convert negative numbers (for example −255), fractions (255.75), and base-10 scientific notation (1.25e8). For two’s complement, signed representations are shown for 8, 16, 32 and 64-bit widths.
What is a Roman numeral?
Roman numerals are a system from ancient Rome using letters: I=1, V=5, X=10, L=50, C=100, D=500 and M=1000. Smaller values before larger ones are subtracted (IV=4, IX=9). This tool converts between Roman numerals and decimal for 1–3999.
How do I convert a number to words?
Group the digits and name each group with its scale word. This tool supports both the international system (thousand, million, billion) and the Indian system (thousand, lakh, crore), and even reads out decimal fractions.
What is the Indian number format?
The Indian numbering system groups the rightmost three digits together, then every two digits after that, and uses lakh (100,000) and crore (10,000,000). For example 1,000,000 is written 10,00,000 and read as “ten lakh”.
What is scientific notation?
Scientific notation writes a number as a value between 1 and 10 multiplied by a power of ten, for example 1.25 × 10⁸ (written 1.25e8). It is convenient for very large or very small numbers.
What is engineering notation?
Engineering notation is like scientific notation but the exponent is always a multiple of three (so it aligns with metric prefixes like kilo, mega, giga). For example 12,500 becomes 12.5e3.
How do I convert text to binary?
Each character is converted to its byte value (via UTF-8) and then written as 8 binary digits. For example “A” is 65 = 01000001. This tool converts whole strings both ways.
How do I convert text to hex?
Each character is converted to its byte value and written as two hexadecimal digits. For example “HELLO” becomes 48 45 4C 4C 4F. The tool reverses this too.
What are bitwise operations?
Bitwise operations work on individual bits: AND, OR, XOR, NOT, and the combinations NAND, NOR and XNOR, plus left and right shifts. They are fundamental to low-level programming, flags, masks and cryptography.
What is the difference between a logical and arithmetic shift?
A left shift moves bits toward the most significant end (multiplying by powers of two); a right shift moves them the other way (dividing). This tool performs shifts within a chosen bit width so results stay masked correctly.
Why does 0.1 + 0.2 not equal 0.3 in computers?
Because 0.1 and 0.2 cannot be represented exactly in IEEE-754 binary floating point — they are stored as the nearest representable values, and the tiny errors add up. Use the IEEE-754 view to see exactly how a value is stored.
What is a custom base converter?
It lets you choose any source and target base from 2 to 62 — for example base 7 to base 13, or base 3 to base 62 — not just the common ones. Useful for puzzles, cryptography and computer-science coursework.
Is this number converter accurate?
Yes. All integer conversions use exact BigInt arithmetic and fractions use exact rational maths, so results are mathematically precise with no rounding error or overflow, at any size.
Is the tool free and private?
Yes. It is completely free with no sign-up, runs entirely in your browser so nothing is uploaded, and works offline once loaded. History and favourites are stored only on your device.
How many bits are in a hex digit?
One hexadecimal digit represents exactly four bits (a nibble), because 16 = 2⁴. Two hex digits make one 8-bit byte.
What is the largest number in 8, 16, 32 and 64 bits?
Unsigned maximums are 255 (8-bit), 65,535 (16-bit), 4,294,967,295 (32-bit) and 18,446,744,073,709,551,615 (64-bit). Signed maximums are roughly half those, since one bit is used for the sign.
Related tools
Data Storage Converter
Bits, bytes, KB, MB, GB, TB & binary units.
Unit Converter
Length, weight, temperature, speed, data & more.
Base64 Encoder / Decoder
Encode and decode Base64, with file & JWT support.
Angle Converter
Degrees, radians, gradians, mils & bearings.
Morse Code Converter
Translate text to Morse code and back, with audio.
Fuel Economy Converter
MPG, L/100km and km/L with inverse units.
Who uses this tool
Developers reading hex dumps and bit flags; students learning binary, two’s complement and IEEE-754; computer-science and electronics engineers working at the bit level; cybersecurity professionals decoding payloads and encodings; data scientists handling large integers; and anyone who needs Roman numerals or numbers spelled out in words. Every result is exact, every mode is interactive, and nothing ever leaves your browser.
Converter Tools
Explore More Tools
Go ad-free & unlock more
- Zero ads, faster focused workflow
- Unlimited history & saved favorites
- Batch convert & CSV export