How to use Number Base Converter
The Number Base Converter translates integers between any two number bases from 2 to 36, including the most common: binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16). It is an indispensable tool for low-level programmers working with bitfields, memory addresses, colour codes and network masks where switching between bases is a daily task.
- Enter the number you want to convert in the input field.
- Select the source base from the "From" dropdown (e.g., 16 for hexadecimal).
- Select the target base from the "To" dropdown (e.g., 2 for binary).
- The converted result appears instantly; all common bases are shown simultaneously.
- For negative numbers, use two's complement representation — toggle the bit-width selector (8, 16, 32 or 64 bits).
Your data never leaves your device — 100% private processing.
Why different number bases matter in computing
Computers store data as binary (base 2) bits, but binary is verbose for humans to read. Hexadecimal (base 16) compresses four bits into a single digit, making memory dumps and colour values like #FF5733 far more readable. Octal (base 8) groups three bits and appears in Unix file permission modes (755 = rwxr-xr-x). Understanding all three bases and their conversions is fundamental to low-level debugging, network configuration and embedded systems programming.
Hexadecimal in web development
Hexadecimal is ubiquitous in web development: CSS colour codes (#RRGGBB), Unicode code points (U+1F600), HTML character entities (♥) and HTTP response codes are all expressed in hex. A six-digit hex colour encodes three bytes: two hex digits each for red, green and blue channels, each ranging from 00 (0) to FF (255). The shorthand #RGB notation uses one hex digit per channel and is expanded by doubling each digit (#F80 = #FF8800).
| Decimal | Binary | Octal | Hexadecimal |
|---|---|---|---|
| 0 | 0000 | 0 | 0 |
| 4 | 0100 | 4 | 4 |
| 8 | 1000 | 10 | 8 |
| 10 | 1010 | 12 | A |
| 15 | 1111 | 17 | F |
| 16 | 10000 | 20 | 10 |
| 255 | 11111111 | 377 | FF |
Worked examples
Decimal 255 in every base
Inputs: decimal 255
Result: hex 0xFF · binary 0b11111111 · octal 0o377
Hexadecimal to decimal
Inputs: hex FF
Result: decimal 255
Binary to decimal
Inputs: binary 1101
Result: decimal 13
Glossary
- Binary
- Base-2 number system using only 0 and 1, corresponding directly to on/off states in digital circuits.
- Hexadecimal
- Base-16 number system using digits 0–9 and letters A–F to represent values 0–15.
- Octal
- Base-8 number system using digits 0–7, historically used for Unix permissions and some assembly languages.
- Two's complement
- A binary encoding for signed integers where negative numbers are represented by inverting bits and adding 1.
- Nibble
- A group of 4 bits, conveniently represented by a single hexadecimal digit.
Related reading
Frequently Asked Questions
Why use Number Base Converter?
- Convert integers between binary, octal, decimal, and hexadecimal instantly
- Display all four common bases simultaneously to avoid repeated format switching
- Handle two's complement representation for signed negative integers up to 64 bits
- Convert custom base-N numbers (base 2–36) for specialised encoding schemes
Common use cases
- Convert a hexadecimal colour code like #FF5733 to its decimal RGB components
- Translate a Unix file permission octal (755) to binary to examine each permission bit
- Convert a decimal memory address to hex for comparison with a debugger memory view
- Decode a binary bitmask from an embedded-systems register into readable decimal flags
- Verify the base-16 representation of a byte value while writing a binary file parser
Get weekly tool tips & updates
New tools, power-user tips, and productivity hacks — delivered free every Friday.
No spam, ever. Unsubscribe with one click.
Related Developer Tools
Base64 Encoder & Decoder
Encode text or files to Base64, or decode Base64 strings back to text in seconds. Free, private, and fully in-browser now.
Hash Generator
Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes instantly in your browser. Free, private, and secure for quick checks.
JSON Formatter & Validator
Format, validate, and minify JSON instantly. Includes syntax highlighting, error detection, and a collapsible tree view — free, private, in-browser.
Regex Tester
Test and debug regular expressions online. See live matches, capture groups, and replace output. Free, private, instant.
URL Encoder / Decoder
Encode and decode URLs and URL components online. Convert special characters to percent-encoding and back instantly — free, private, and fast.
HTML Encoder / Decoder
Encode and decode HTML entities online. Escape <, >, &, and quote characters for safe HTML display. Free, instant, and private — runs in your browser.
Explore all Developer Tools.