Convert Decimal to Base 4

Convert Decimal (dec) to Base 4 (base 4) instantly and accurately.

Selected Decimal (dec) - available characters: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9

Decimal (dec)
Base 4 (base 4)

Conversion Formula

Step-by-step example using the value 42 (decimal):

Convert Decimal (base 10) → Base 4 (base 4)

Step 1: Input is already decimal - skip to Step 2.
        Value: 42

Step 2: Divide 42 by 4 repeatedly (read remainders upward):

        42 ÷ 4 = 10  r 2
        10 ÷ 4 =  2  r 2
         2 ÷ 4 =  0  r 2
        Read remainders upward: 222

────────────────────────────
Result:  42 (dec) = 222 (base 4)

About Decimal

Decimal (base 10) is the universal positional system using digits 0-9. Each position is a power of 10: 10⁰=1, 10¹=10, 10²=100. Attributed to human anatomy (ten fingers). The Hindu-Arabic system - including zero - was formalised by Brahmagupta (628 CE) and spread via al-Khwarizmi (c. 820 CE). SI and metric systems are base-10. IEEE 754-2008 added decimal64/128 formats for exact decimal arithmetic in financial applications. Conversion: decimal 42 is the reference value used throughout this converter.

About Base 4

Quaternary (base 4) uses digits 0-3. Each position is a power of 4: 4⁰=1, 4¹=4, 4²=16. Because 4 = 2², each quaternary digit maps to exactly 2 bits (0=00, 1=01, 2=10, 3=11). Used in bioinformatics to encode DNA nucleotides (A, C, G, T = 0-3), storing the human genome (3.2 Gbp) in ≈750 MB. 4-QAM encodes exactly 2 bits per symbol. Conversion: decimal 42 = 2×16+2×4+2 = 222₄.

Quick Reference Table

Decimal (dec)Base 4 (base 4)
11
22
511
820
1022
1533
16100
42222
641000
1001210
2553333

→ Full Number Base Converter