JSONHack
Validator · Formatter · Base64
Math Tool

Number Base Converter

📅Last updated:

Convert numbers between decimal (base 10), hexadecimal (base 16), binary (base 2), and octal (base 8) instantly. Type in any field and all other bases update automatically. Supports positive integers up to 253.

Decimal Base 10 · digits 0–9
Hexadecimal Base 16 · digits 0–9, A–F
Binary Base 2 · digits 0–1
Octal Base 8 · digits 0–7

Number Systems Explained

Decimal (Base 10)

The number system humans use daily. Uses digits 0–9. Each position represents a power of 10. Example: 255 = 2×100 + 5×10 + 5×1.

Hexadecimal (Base 16)

Uses digits 0–9 and letters A–F. Each hex digit represents exactly 4 bits. Widely used in programming, color codes, memory addresses, and cryptographic hashes.

Binary (Base 2)

The fundamental language of computers. Uses only 0 and 1. Every piece of data in a computer is ultimately stored and processed as binary. Each digit is called a bit.

Octal (Base 8)

Uses digits 0–7. Each octal digit represents exactly 3 bits. Used in Unix/Linux file permissions (e.g., chmod 755) and some legacy computing systems.

Common Use Cases

Quick Reference Table

DecHexBinaryOctal
Need to generate hashes?

Use the Hash Generator to create MD5, SHA-256, and SHA-512 hashes from any text.

Open Hash Generator →

Understanding Number Systems in Computing

Number systems are the foundation of how computers store, process, and display data. While humans naturally use the decimal (base 10) system, computers operate in binary (base 2) at the hardware level. Hexadecimal (base 16) and octal (base 8) are used as convenient shorthand representations for binary data. Understanding how to convert between these systems is an essential skill for any developer, especially when working with low-level programming, networking, cryptography, or hardware.

Why Hexadecimal Is So Common in Programming

Hexadecimal is the most widely used alternative number system in software development because it maps perfectly to binary — each hex digit represents exactly 4 bits (a nibble), and two hex digits represent exactly one byte. This makes hex an extremely compact and readable way to express binary data:

Binary and Bitwise Operations

Understanding binary is essential for working with bitwise operators in programming. Bitwise AND (&), OR (|), XOR (^), NOT (~), and shift operators (<<, >>) all operate directly on the binary representation of numbers. Common use cases include:

Octal and Unix File Permissions

Octal (base 8) is most commonly encountered in Unix and Linux file permission systems. The chmod command uses octal numbers to set read (4), write (2), and execute (1) permissions for owner, group, and others. For example, chmod 755 sets permissions to rwxr-xr-x — owner has full access (7=4+2+1), group and others have read and execute (5=4+1).

Related Tools