Unit & Everyday Converters
Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal.
Run Number Base Converter online
In-browserDocument processing runs on your device. External resources may still load.
Enable JavaScript to use the interactive tool. Read the instructions, limitations and FAQs below before starting.
The Number Base Converter instantly converts numbers between the four most common numeral systems: binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Used extensively in computer science, electronics, and programming, understanding these bases is fundamental to how computers store and process data.
Decimal (base 10) is our everyday number system using digits 0–9. Binary (base 2) uses only 0s and 1s — how computers actually store all data at the hardware level. Hexadecimal (base 16) uses 0–9 and A–F — a compact representation of binary where each hex digit represents exactly 4 bits, making it readable for humans while closely mapping to machine memory. Octal (base 8) is used in Unix file permissions (chmod 755).
Practical applications: hex colors (#FF5733), HTML entities (♥), MAC addresses (00:1A:2B:3C:4D), IPv6 addresses (2001:0db8:85a3:0000), Unix permissions (755 in octal), ASCII codes, and memory addresses in debugging. This converter shows all four representations simultaneously so you can instantly see the equivalent value in each base.
How to use this utility
- Use the controls below—paste text, pick files, or adjust options as described on the tool.
- Click the main action button. Processing runs in your browser on this device.
- Download or copy the output. Check the processing note for any external services used by this operation.
Common use cases
- Converting hex color codes to RGB decimal values for CSS manipulation
- Understanding Unix file permission octals (755 = rwxr-xr-x)
- Converting decimal ASCII codes to hex for URL encoding or HTML entities
- Translating between binary and hex for low-level programming or assembly
- Understanding memory addresses in debugger output (shown in hex)
Tips for best results
- 1Each hex digit = 4 binary bits (nibble): F = 1111, 0 = 0000, A = 1010
- 2Hex colors: #RRGGBB where each pair is a hex value 00–FF (0–255 decimal)
- 3Binary to decimal shortcut: 10000000 = 128, 11111111 = 255, 10000001 = 129
- 4Octal 755 in binary = 111 101 101 — each octal digit is exactly 3 binary bits
- 5IPv6 addresses use hex: 2001:db8 means 8193:3512 in decimal per group
Frequently asked questions
- Is Konnect2Tools free?
- Yes. These in-browser tools are completely free to use with no account required for core functionality.
- Do my files leave my device?
- Browser document operations run locally, except where the operation uses an external service, such as AI summarisation. Read the processing note before using sensitive inputs.
- Is the Number Base Converter tool safe to use?
- Local operations process document content on your device. External-service operations may send inputs as described in the processing note. Keep originals and inspect the output.
- Why do computers use binary instead of decimal?
- Electronic circuits naturally represent two states: on (1) and off (0). Engineering reliable circuits for 10 states (0–9) at billions of operations per second would be extremely difficult and power-hungry. Binary keeps circuits simple, fast, and noise-resistant. All data — text, images, video — is ultimately stored as 0s and 1s.
- What is hexadecimal used for in programming?
- Hex is used wherever compact binary representation matters: color codes (#FF5733), memory addresses (0x7FFE4C), HTML entities (♥), Unicode codepoints (U+1F600), SHA/MD5 hashes, MAC addresses, and IPv6 addresses. Programmers prefer hex because one hex digit = 4 bits, so 1 byte = exactly 2 hex digits, making memory layout intuitive.
- How do I convert binary to decimal by hand?
- Write the binary number, then multiply each bit by its positional value (right to left: 1, 2, 4, 8, 16, 32...). Sum the results. Example: 1011 = 1×8 + 0×4 + 1×2 + 1×1 = 11. Or: start from left, double and add each bit: 1→1, 1→3, 0→6, 1→13. Both methods give the same result.
- What is the octal number system used for?
- Octal (base 8) was used in early computers whose word size was multiples of 3 bits (6, 12, 24). Today, it's primarily used in Unix/Linux file permissions: chmod 755 means owner=7(rwx), group=5(r-x), others=5(r-x). Each octal digit represents 3 binary bits, making permission bit patterns easy to read and set.
Related tools
Continue with another utility in unit & everyday converters.