Convert Octal to Base 4
Convert Octal (oct) to Base 4 (base 4) instantly and accurately.
Selected Octal (oct) - available characters: 0, 1, 2, 3, 4, 5, 6, 7
Conversion Formula
Step-by-step example using the value 42 (decimal):
Convert Octal (base 8) → Base 4 (base 4)
Step 1: Expand each digit of 52 (oct) by position:
5 × 8^1 = 40
2 × 8^0 = 2
────────────
Sum = 42 (decimal)
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: 52 (oct) = 222 (base 4)
About Octal
Octal (base 8) uses digits 0-7. Each position is a power of 8: 8⁰=1, 8¹=8, 8²=64. Because 8 = 2³, each octal digit = exactly 3 binary bits. The Unix/Linux file permission system (chmod 755 = rwxr-xr-x; 7=111, 5=101) uses octal for concise 3-bit rwx triplets. The DEC PDP series encoded 12- and 16-bit words naturally in octal. In C/C++/JS a leading zero denotes octal: 0755 = 493₁₀. Conversion: decimal 42 = 5×8+2 = 52₈.
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
| Octal (oct) | Base 4 (base 4) |
|---|---|
| 1 | 1 |
| 2 | 2 |
| 5 | 11 |
| 10 | 20 |
| 12 | 22 |
| 17 | 33 |
| 20 | 100 |
| 52 | 222 |
| 100 | 1000 |
| 144 | 1210 |
| 377 | 3333 |