Number System Converter

HEX ↔ DEC ↔ OCT ↔ BIN and any base 2–36. Instant conversion, step-by-step explanations, bitwise operations, batch processing.

Русская версия
5
Number systems
36
Max base
No limits

Converter

Type a number in any field
0–9, A–Z
Format:

Additional Tools

Enter a number in the converter above — a step-by-step explanation will appear here
Number A
Format:
Number B
Format:
Operation:
DEC
HEX
BIN
Result bits:
Enter numbers and select an operation...
Input numbers (one per line)
Input format:
Result
Output format:
#——

Enter 3 or 6 HEX digits in the HEX field above — a color preview and RGB breakdown will appear here.

Red
Green
Blue
CSS:

Features

Instant Conversion
Type in any field — all other fields update instantly without any button clicks.
Step-by-Step Breakdown
Division algorithm with remainders — perfect for learning and exam prep.
Any Base 2–36
Beyond the standard 4 — use base 3, 5, 7, 12, 36 and any other base.
Bitwise Operations
AND, OR, XOR, NOT, shifts with bit visualization — essential for developers.
Batch Conversion
Paste a list of numbers — convert them all at once to the target format.
CSS Color Preview
Enter a HEX color — see a live color swatch with R/G/B components.

Use Cases

Programming
Memory addresses, bitmasks, flags, working with protocol bytes.
Web Design
CSS colors #FF5733, format conversion, RGB component breakdown.
Unix / Linux
File permissions chmod in OCT: 755 = 111 101 101 in binary.
Education
Computer science homework, CS courses, binary arithmetic practice.
Electronics / IoT
Microcontroller registers, device addressing, firmware analysis.
Security
HEX dumps, network packets, bytecode and machine instruction analysis.

Frequently Asked Questions

How to convert decimal to hexadecimal?

Divide the decimal number by 16, note remainders from bottom to top. Remainders 10–15 become letters A–F. Example: 255 ÷ 16 = 15 remainder 15 (F), 15 ÷ 16 = 0 remainder 15 (F). Reading bottom-up: FF. The Step-by-Step tab shows each step in detail.

What is the difference between HEX, OCT, DEC and BIN?

DEC (base 10) — digits 0–9, the familiar everyday number system.
BIN (base 2) — only 0 and 1, the foundation of all digital computers.
OCT (base 8) — digits 0–7, used in Unix/Linux file permissions (chmod 755).
HEX (base 16) — digits 0–9 and A–F, used in CSS colors and memory addresses.

What does 0xFF mean in programming?

0xFF is a hexadecimal number with the 0x prefix. FF = 255 in decimal = 11111111 in binary — the maximum value of one unsigned byte. In CSS, #FF0000 is pure red. In programming, 0xFF is commonly used as a bitmask to extract the last byte.

How do bitwise AND, OR, XOR operations work?

These operations are applied to each bit individually.
AND: output bit is 1 only if both input bits are 1.
OR: output bit is 1 if at least one input is 1.
XOR: output bit is 1 if the inputs differ.
Example: 12 AND 10 = 1100 AND 1010 = 1000 = 8.

Can I convert to non-standard bases (not 2/8/10/16)?

Yes. The converter supports any base from 2 to 36. Base 36 uses digits 0–9 and letters A–Z. Example: 255 in base 36 = 73. Enter the base in the custom field — the converter will show the result instantly.

How to manually convert binary to decimal?

Multiply each bit by 2 raised to the power of its position (rightmost = 0), then sum. Example: 1011₂ = 1×2³ + 0×2² + 1×2¹ + 1×2⁰ = 8+0+2+1 = 11. The Step-by-Step tab shows this process for any number.

What is base 36 (hexatrigesimal)?

Base36 uses digits 0–9 and letters A–Z (36 characters). It's used for compact encoding of large numbers in URLs, identifiers, and hashes. For example, 1000000 in base36 = LFLS. Used in URL shorteners and serial number systems.