Free Number Base Converter
Convert between binary, decimal, hex, and octal number systems. Free, fast, and works entirely in your browser with no sign-up required.
Updated
Number Base Converter
Convert between binary, octal, decimal, hex, and 8 more number bases. Features two's complement, IEEE 754 float, bit-flip visualization, bitwise operations, text encoding, ASCII reference, and full conversion history.
Common Presets
Number Base Converter
255 (Decimal)
= 0xFF (Hexadecimal)
Decimal (base 10) -> Hexadecimal (base 16)
Decimal: 255
Favorites
1111 1111
Binary (base 2)
377
Octal (base 8)
255
Decimal (base 10)
FF
Hexadecimal (base 16)
7V
Base-32 (base 32)
Conversion Table
Binary
Octal
Decimal
Hexadecimal
Base-32
Base-36
Ternary
Quinary
Senary
Duodecimal
Vigesimal
Base-4
Frequently Asked Questions
What is the Number Base Converter?
The Number Base Converter is a free online tool that converts numbers between binary, decimal, hexadecimal, and octal number systems.
Is the Number Base Converter free?
Yes, it is completely free with no registration required. All conversions happen client-side in your browser.
What number bases are supported?
The Number Base Converter supports binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16) conversions.
Is my data safe with this tool?
Absolutely. The Number Base Converter processes everything client-side in your browser. No data is uploaded to or stored on any server. Your content remains private on your device at all times.
Does the Number Base Converter work on mobile devices?
Yes, the Number Base Converter is fully responsive and works on smartphones and tablets. You can use it on any device with a modern web browser -- no app download required.
Do I need to create an account to use this tool?
No account or registration is needed. Simply open the Number Base Converter in your browser and start using it immediately. There are no sign-up walls or usage restrictions.
How do I use the Number Base Converter?
Simply enter your input in the provided field, adjust any settings to your preference, and the tool will process it instantly. You can then copy the result to your clipboard or download it.
Which browsers are supported?
The Number Base Converter works in all modern browsers including Chrome, Firefox, Safari, Edge, and Opera. For the best experience, use the latest version of your preferred browser.
How do I convert hexadecimal to binary by hand?
The shortcut is that each hexadecimal digit maps to exactly four binary bits, so you convert one digit at a time instead of dividing the whole number. Write out the 4-bit pattern for each hex digit and join them: 0 is 0000, 9 is 1001, A is 1010, and F is 1111. For example, 0x2F becomes 0010 1111, and 0xFF becomes 1111 1111. This grouping is why a single byte is written as two hex digits and why programmers prefer hex over raw binary. Octal works the same way but in groups of three bits. If you want to skip the lookup table entirely, paste your hex value into the converter and it shows the binary, decimal, and octal forms at once, with an option to group the binary into 4- or 8-bit chunks for easy reading.
What is two's complement and why does it matter for negative numbers?
Two's complement is how computers store signed integers in a fixed number of bits. To represent a negative value, you invert every bit of the positive number and add one, which lets the same hardware add signed and unsigned numbers without special cases. The catch is that the result depends entirely on the word size: -1 is 11111111 in 8 bits but 11111111 11111111 in 16 bits, and the most significant bit acts as the sign. Each width also has a fixed range, such as -128 to 127 for 8-bit and -2,147,483,648 to 2,147,483,647 for 32-bit. This tool shows the two's complement at 8, 16, 32, and 64-bit word sizes, displays both the signed and unsigned reading of the same bits, and flags an overflow when a value will not fit the width you picked.
Why do programmers use hexadecimal and octal instead of just binary?
Computers store everything in binary, but long strings of ones and zeros are hard for people to read and easy to miscount, so hex and octal act as compact shorthand. The conversion is clean rather than arbitrary: each octal digit equals exactly three binary bits and each hex digit equals exactly four, so you can translate by grouping bits without doing any math. That is why a byte fits neatly into two hex digits, why a Unix permission like chmod 755 is written in octal, and why a CSS color such as #FF0000 is written in hex. One hex digit covers values 0 to 15, so it replaces four binary digits with a single character, cutting the length of the number by roughly three quarters. Paste a value into the converter to see all twelve supported bases side by side in one table.
Can this converter handle very large numbers without losing precision?
Yes. The converter uses JavaScript's BigInt, which represents whole numbers of arbitrary size exactly, so every digit stays accurate no matter how many you enter. This avoids the rounding problem that affects ordinary floating-point math, where integers above 2 to the 53rd power can no longer all be represented and results silently lose precision. So you can convert a 64-bit register dump, a long hexadecimal hash, or a number far beyond what a standard calculator handles and trust that the binary, decimal, hex, and octal outputs are exact. The one exception is the IEEE 754 single-precision float view, which is intentionally an approximation because it shows how a value would be stored as a 32-bit float, not as an exact integer. For exact base conversion of huge integers, type or paste the value and read any base directly.
How is a decimal number stored as an IEEE 754 floating-point value?
IEEE 754 single precision packs a number into 32 bits split into three parts: 1 sign bit, 8 exponent bits, and 23 mantissa (fraction) bits. The sign bit marks positive or negative, the exponent scales the value as a power of two, and the mantissa holds the significant digits, so the stored number is essentially a binary version of scientific notation. Because only 23 fraction bits are available, many everyday decimals cannot be represented exactly, which is why 0.1 plus 0.2 famously does not equal exactly 0.3 in most languages. This converter breaks a value into its sign, exponent, and mantissa bits and shows the raw hex bytes, so you can see precisely how the float is encoded. Enter a number in the float view to inspect each field and understand where rounding creeps in.
Embed This Tool
Add a free, live version of this widget to your own website or blog post — it runs entirely in your visitors' browsers, with a credit link back to The Toolbox.
<iframe src="https://getthetoolbox.com/embed/converter-tools-number-base-converter" title="Free Number Base Converter — The Toolbox" width="100%" height="240" style="max-width:480px;border:1px solid #e2e8f0;border-radius:12px" loading="lazy"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://getthetoolbox.com/converter-tools/number-base-converter?utm_source=embed&utm_medium=widget" target="_blank" rel="noopener">Free Number Base Converter</a> by The Toolbox</p>Related Tools
Free Length Converter Online
Convert between meters, feet, inches, miles, and more length units. Free, fast, and works entirely in your browser with no sign-up required.
Free Weight Converter Online
Convert between kg, pounds, ounces, grams, and more weight units. Free, fast, and works entirely in your browser with no sign-up required.
Free Temperature Converter
Convert temperatures between Celsius, Fahrenheit, and Kelvin scales instantly. Free, fast, and works entirely in your browser with no sign-up required.
Free Area Converter Online
Convert between square meters, acres, hectares, and more. Free, fast, and works entirely in your browser with no sign-up required.
About the Number Base Converter
The Number Base Converter turns a number written in one base into its equivalent in another, instantly. Type a value, pick the base you're coming from and the base you want, and the result appears as you type. It goes well beyond the usual binary-decimal-hex trio: the tool handles twelve bases, grouped into common (binary, octal, decimal, hexadecimal), programming (Base-32, Base-36), and mathematical systems (ternary, quinary, senary, Base-4, duodecimal, vigesimal). It's built for programmers reading memory dumps, students learning positional notation, embedded engineers working with registers, and anyone who needs to cross-check a value without firing up a calculator.
Everything runs locally in your browser. Numbers you enter are never uploaded to a server, there's no sign-up, and no app to install. Because conversions use JavaScript's BigInt, the tool handles arbitrarily large integers without the rounding errors that break ordinary floating-point math at 2^53.
What you can convert and inspect
- Any of 12 bases to any other, with a live "all bases" table so you can see one value expressed every way at once.
- Two's complement at 8, 16, 32, and 64-bit word sizes, showing both the signed and unsigned interpretation of the same bit pattern, plus the valid range for each width and an overflow flag when a value won't fit.
- IEEE 754 single-precision floats, broken into the sign bit, 8 exponent bits, and 23 mantissa bits, with the raw hex bytes.
- Bitwise operations — AND, OR, XOR, NOT, and left/right shifts — with the result shown in binary, decimal, and hex.
- Text and ASCII encoding, converting a string to its binary, hexadecimal, and decimal code points, with a UTF-8 byte count.
Why number bases matter
Computers store everything as binary, but raw binary is unreadable past a few digits, so programmers lean on hex and octal as compact shorthand. The conversions are not arbitrary: each octal digit maps to exactly 3 binary bits, and each hexadecimal digit maps to exactly 4, which is why a byte (8 bits) is written as two hex digits. That's the logic behind a Unix permission like chmod 755 (octal) and a CSS color like #FF0000 (hex). Some values are worth memorizing: a single byte holds 0 to 255 (0xFF), a 16-bit unsigned integer tops out at 65,535 (0xFFFF), and a 32-bit signed integer maxes at 2,147,483,647. The converter ships with these and other landmarks — ASCII codes, HTTP status numbers, powers of two, kilobyte and megabyte boundaries — as clickable references.
Helpful shortcuts in the tool
- Presets load familiar values in one click: 255, 0xFF, DEADBEEF, chmod 755, 1024, the int8 and int32 limits, and more.
- A bit-flip view renders the binary as a row of toggleable buttons with the most significant bit on the left, so you can flip individual bits and watch the decimal and hex update.
- Display options let you add or hide the conventional prefixes (
0b,0o,0x), group binary into 4- or 8-bit chunks for readability, and switch between upper and lowercase digits. - Favorites and history keep your go-to bases pinned and let you restore any recent conversion with a tap. Copy buttons sit beside every result.
Tips for accurate conversions
Each base only accepts its own digit set — binary takes 0 and 1, hexadecimal takes 0-9 and A-F — and the tool flags anything out of range rather than guessing. Negative numbers are supported directly, but their signed binary form depends on the word size you choose, so set 8, 16, 32, or 64-bit to match the system you're targeting before reading the two's complement output. For very large values, BigInt keeps every digit exact; just remember that the IEEE 754 float view is, by design, an approximation of how that number would be stored as a 32-bit float.