🔢 Number Base Converter

Convert numbers between binary, octal, decimal, and hexadecimal instantly. Supports large numbers and shows all bases simultaneously. Free online number base converter.

0-9
0-1
0-9 A-F
0-7

How to Use

1

Enter any number

Type a number into any of the four fields: Decimal, Binary, Hexadecimal, or Octal.

2

All bases update instantly

The other three fields automatically update with the equivalent value in real-time.

3

Copy any format

Click the Copy button next to any field to copy that representation to your clipboard.

Frequently Asked Questions

What are the different number bases? +
Decimal (base 10) uses digits 0-9 and is the everyday number system. Binary (base 2) uses only 0 and 1, used by computers. Octal (base 8) uses digits 0-7. Hexadecimal (base 16) uses 0-9 and A-F, widely used in programming for memory addresses and colors.
What does 0x prefix mean in hexadecimal? +
0x is the standard prefix for hexadecimal numbers in most programming languages (C, JavaScript, Python). So 0xFF = 255 in decimal. Similarly, 0b prefix is used for binary (0b11111111 = 255).
How do I convert a hex color code to RGB? +
A hex color like #FF5733 has three pairs: FF (red), 57 (green), 33 (blue). Convert each pair from hex to decimal: FF=255, 57=87, 33=51. Result: rgb(255, 87, 51). Our Color Picker tool does this automatically.
What is the largest number supported? +
The tool handles integers up to JavaScript's Number.MAX_SAFE_INTEGER (2^53 - 1 = 9,007,199,254,740,991). For very large numbers (64-bit+), precision may be limited.
Is any data sent to a server? +
No. All conversions are calculated in your browser using JavaScript's built-in parseInt() and toString() functions. Nothing is sent anywhere.


Tam Rehber: Sayı Tabanı Dönüştürücü

Bilgisayarlar tüm verileri ikili (binary) olarak depolar. Ancak binary uzundur ve okunması güçtür. Programcılar, aynı bit örüntülerinin daha kompakt gösterimleri olarak onaltılık (hex, taban 16) ve sekizlik (octal, taban 8) ile düzenli olarak çalışır.

Konumsal Gösterim: Temel Kavram

Herhangi bir konumsal sayı sisteminde her basamağın değeri konumuna bağlıdır. Taban 10'da 253 şu anlama gelir: (2 × 10²) + (5 × 10¹) + (3 × 10⁰). Binary 1011, (1 × 2³) + (1 × 2¹) + (1 × 2⁰) = 11 decimal anlamına gelir. Hexadecimal, 0–9 sonra A–F rakamlarını kullanır (A=10, F=15).

Programcılar Neden Hexadecimal'i Sever?

Bir hex basamağı tam dört ikili basamağı (nibble) temsil eder. Bu, bir baytın (8 bit) tam olarak iki hex basamağına eşlendiği anlamına gelir. 11111111 binary değeri hex'te FF, decimalde 255'tir.

Negatif Sayılar için İkilinin Tümleyeni

Bilgisayarlar negatif tamsayıları ikinin tümleyeni ile temsil eder. Tümleyeni bulmak için: tüm bitleri ters çevirin, ardından 1 ekleyin. 8 bitlik gösterimde -1 = 11111111 (0xFF), -128 = 10000000 (0x80).

Renk Hex'ten RGB'ye Dönüşüm

#1A2B3C gibi CSS hex renkleri üç çift hex basamağı içerir. Çiftlere ayırın: 1A, 2B, 3C. Her çifti ondalığa dönüştürün: 0x1A = 26, 0x2B = 43, 0x3C = 60. Sonuç: rgb(26, 43, 60).

JavaScript: parseInt ve toString

parseInt('FF', 16);   // 255
parseInt('1010', 2);  // 10
(255).toString(16);   // "ff"
(10).toString(2);     // "1010"

Dikkat: parseInt, son geçerli basamaktan sonraki geçersiz karakterleri sessizce yok sayar; hata fırlatmaz.

Hex renk değerlerini etkileşimli dönüştürmek için Renk Seçici'yi, hex kodlu hash değerleri hesaplamak için Hash Oluşturucu'yu kullanın.

🧰 50+ Tools