calculate

Number Base Converter

Convert between decimal, binary, octal, and hexadecimal in real time. Edit any field to update all others.

DEC Decimal Base 10 · digits 0–9
BIN Binary Base 2 · digits 0–1
OCT Octal Base 8 · digits 0–7
HEX Hexadecimal Base 16 · digits 0–9, A–F
Common Values Reference
DecimalBinaryOctalHex

Frequently Asked Questions

Decimal (base-10) uses digits 0–9. Binary (base-2) uses 0 and 1, used in computer hardware. Octal (base-8) uses 0–7, used in Unix file permissions. Hexadecimal (base-16) uses 0–9 and A–F, widely used for colors, memory addresses, and byte values.

Hex is compact and maps cleanly to binary — each hex digit represents exactly 4 binary bits. This makes it easy to express memory addresses, color codes (e.g., #FF5733), bitmasks, and byte values without the verbose length of binary.

Multiply each binary digit by 2 raised to its position power (starting from 0 on the right) and sum the results. For example, 1011₂ = 1×8 + 0×4 + 1×2 + 1×1 = 11₁₀. This tool does this calculation instantly for any number.

Base-64 is an encoding scheme (not a number system) used to represent binary data as ASCII text — commonly seen in data URIs, email attachments, and API tokens. Use the Base64 Encoder/Decoder tool on GlintKit for those conversions.

About the Number Base Converter

Convert numbers between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Enter a value in any base and see all four representations simultaneously. Useful for programming, digital electronics, understanding memory addresses, and working with colour hex codes or file permissions.