Number Base Converter Online

Convert numbers between binary, octal, decimal, and hexadecimal instantly

base 2Binary
01
0b
base 8Octal
0-7
0o
base 10Decimal
0-9
base 16Hexadecimal
0-9 A-F
0x

Quick Reference — 0 to 15

BinaryOctalDecimalHexadecimal
0000000
0001111
0010222
0011333
0100444
0101555
0110666
0111777
10001088
10011199
10101210A
10111311B
11001412C
11011513D
11101614E
11111715F

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