Number Base Converter Online
Convert numbers between binary, octal, decimal, and hexadecimal instantly
Quick Reference — 0 to 15
| Binary | Octal | Decimal | Hexadecimal |
|---|---|---|---|
| 0000 | 0 | 0 | 0 |
| 0001 | 1 | 1 | 1 |
| 0010 | 2 | 2 | 2 |
| 0011 | 3 | 3 | 3 |
| 0100 | 4 | 4 | 4 |
| 0101 | 5 | 5 | 5 |
| 0110 | 6 | 6 | 6 |
| 0111 | 7 | 7 | 7 |
| 1000 | 10 | 8 | 8 |
| 1001 | 11 | 9 | 9 |
| 1010 | 12 | 10 | A |
| 1011 | 13 | 11 | B |
| 1100 | 14 | 12 | C |
| 1101 | 15 | 13 | D |
| 1110 | 16 | 14 | E |
| 1111 | 17 | 15 | F |
Type a number in any field to convert
Binary, octal, decimal, and hex update simultaneously
About this tool
Number Base Converter Online is a free browser-based tool that instantly converts integers between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Type in any field and all other bases update live — no button to press.
This tool is essential for developers working with bitfields, memory addresses, color codes, file permissions, network masks, and low-level programming. It also shows binary values grouped in 4-bit nibbles for easy reading.
All conversion runs entirely in your browser — nothing is sent to any server.
Common use cases
- Convert hexadecimal color codes to decimal RGB channel values.
- Check binary representations when working with bitfields or bitmasks.
- Verify octal Unix file permission values (e.g. 755 in octal).
- Convert decimal port numbers or memory addresses to hex.
- Understand CPU register values displayed in hex during debugging.
- Cross-check number bases when reading assembly or machine code.
- Convert IP address octets between decimal and binary.
- Validate values in low-level embedded or systems programming.
Frequently Asked Questions
What is binary (base 2)?
Binary is a number system that uses only two digits: 0 and 1. It is the native language of computers since transistors represent two states — off (0) and on (1). For example, the decimal number 42 is 101010 in binary.
What is octal (base 8)?
Octal uses digits 0–7. It was historically common in computing and is still used today for Unix file permissions (e.g. chmod 755). Each octal digit maps exactly to 3 binary digits.
What is hexadecimal (base 16)?
Hexadecimal uses digits 0–9 and letters A–F to represent values 0–15. It is widely used in programming for memory addresses, color codes (#FF5733), and byte-level data because each hex digit maps to exactly 4 binary bits (one nibble).
What is a nibble?
A nibble is 4 bits, which is half a byte. One hexadecimal digit always represents exactly one nibble. This tool groups binary output in sets of 4 bits for easier reading — e.g. 1010 0101 instead of 10100101.
Can this tool handle negative numbers?
No — this tool converts non-negative integers only. Negative number representation (two's complement, sign-magnitude) varies by architecture and word size, which is beyond the scope of a general base converter.
What is the maximum number supported?
The tool uses JavaScript's built-in parseInt and toString, which support integers up to 2^53 - 1 (Number.MAX_SAFE_INTEGER = 9007199254740991). For cryptographic or 64-bit register values you may need a big-integer library.
Related Tools
JSON Formatter Online
Format, validate, and minify JSON
Base64 Encoder Online
Encode and decode Base64 strings
URL Encoder Online
Encode and decode URL components
UUID Generator Online
Generate UUID v4 values in bulk
Hash Generator Online
Generate SHA-256 and SHA-512 hashes
Regex Tester Online
Test regular expressions with live match highlighting
JWT Decoder Online
Decode JWT tokens without verification
Diff Viewer Online
Compare two text blocks side by side
Timestamp Converter Online
Convert Unix timestamps to human-readable dates and back
YAML to JSON Converter Online
Convert YAML to JSON and JSON to YAML instantly
Prompt Formatter Online
Format prompts into OpenAI, Anthropic, and Gemini message structures
ENV File Parser Online
Parse .env files into a clean table, JSON, or export format
JSON Schema Validator Online
Validate JSON against a JSON Schema with detailed error messages
JSON Schema Generator Online
Generate JSON Schema from example JSON instantly
Token Counter Online
Count tokens for GPT-4, Claude, and Gemini models instantly
CSV to JSON Converter Online
Convert CSV data to JSON — paste, upload, or download