Integer Base Converter
Convert integers between numeral systems online. Pick a source and target base from binary, octal, decimal, hexadecimal or any custom base up to 36, with signed values and grouped digit output.
FreeOnline Tool
Loading…
How to Use
- Enter an integer value in the input box.
- Select the base of the value you entered (binary, octal, decimal or hexadecimal).
- Select the target base you want to convert to.
- Click "Convert" to get the result, or turn on live conversion to refresh automatically.
- Copy the converted result for later use.
Features
- Converts between binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16)
- Supports custom bases from base 2 through base 36
- Handles signed integers, including negative values
- Groups the digits in the result for readability, for example a space every 4 binary digits
- One-click copy for each base result
Use Cases
Checking bitwise operations
Convert decimal values to binary to confirm that an AND, OR or shift operation produces the result you expected.
Embedded register work
Embedded development constantly moves between hexadecimal register addresses and decimal values, and this makes the conversion quick and reliable.
Building hex color codes
Convert decimal RGB components to hexadecimal and assemble them into a CSS color code in #RRGGBB form.
Reading octal file permissions
Convert a Linux permission value such as chmod 755 to binary to see the read, write and execute bits for each user class.
FAQ
How is this different from the Number Base Converter tool?
The two overlap, and both convert integers between bases. This one focuses purely on integers and adds clearer digit grouping plus signed value support, which suits cases where you need finer control.
What do the letters A-F mean in hexadecimal?
Hexadecimal uses the 16 symbols 0-9 and A-F to represent the values 0 to 15: A=10, B=11, C=12, D=13, E=14, F=15. For example FF = 15x16 + 15 = 255.
How do I turn an IP address into an integer?
An IPv4 address such as 192.168.1.1 is really four bytes. Convert each octet to hexadecimal (C0.A8.01.01) and concatenate them (0xC0A80101), which is the integer 3232235777.
Why does the binary result contain spaces?
A space is inserted every 4 binary digits to make long values readable, much like the thousands separators used in decimal numbers. You can choose whether to include the spaces when copying.