./prontouso.com
PENGONVERSI SATUAN

Pengonversi Basis Bilangan

Konversi bilangan antara biner (basis 2), oktal (basis 8), desimal (basis 10), heksadesimal (basis 16), atau basis kustom apa pun dari basis 2 hingga 36.

Status alatBerjalan di browser Anda
Pratinjau

Input

Hasil

BIN
11111111
OCT
377
DEC
255
HEX
FF

Cara kerja

  1. Masukkan data Anda

    Isi nilai yang diperlukan, tempel teks Anda, atau unggah file yang ingin diproses.

  2. Lihat hasil seketika

    Sebagian besar alat diperbarui secara langsung saat Anda mengetik; beberapa menggunakan satu tombol tindakan.

  3. Gunakan hasil Anda

    Salin, unduh, atau bagikan hasil yang dihasilkan — Anda selalu memiliki kendali penuh atas data Anda.

Privasi dan pemrosesan dataBerjalan secara lokal di browser Anda. Alat ini tidak mengunggah data Anda.

Apa itu Pengonversi Basis Bilangan?

Convert integers between binary, octal, decimal, and hexadecimal, including large values that need BigInt precision.

PAHAMI CARA KERJA ALAT

How to convert number bases

Accepted input

Choose the base of the number you are entering. Spaces and underscores are ignored, optional 0b, 0o, and 0x prefixes are accepted, and negative integers keep their sign.

Output formats

The result panel shows the same integer in BIN, OCT, DEC, and HEX. Hexadecimal output uses uppercase A-F for readability.

What it does not handle

  • Fractional values or decimal points.
  • Scientific notation such as 1e6.
  • Two's-complement width calculations for signed binary storage.

Conversion notes

The converter treats input as an integer value, not as a fixed-width memory representation. Add your own byte width when you need two's-complement interpretation.

Pertanyaan yang Sering Diajukan (FAQ)

Can I paste 0xFF or 0b1010?

Yes. Prefixes such as 0x, 0o, and 0b are stripped after the sign, as long as the selected input base matches the digits.

Why is my number rejected?

At least one digit is outside the selected base, such as 2 in binary or G in hexadecimal.

Does it support very large integers?

Yes. The conversion uses BigInt, so values larger than JavaScript's normal safe integer range remain precise.

Does it convert fractions?

No. This tool is for whole integers only.

Alat Terkait