Monu Tools

Chuyển đổi hệ cơ số

Chuyển đổi số giữa nhị phân, bát phân, thập phân và thập lục phân. Sửa bất kỳ trường nào và các trường khác cập nhật tức thì. Giá trị lớn chính xác, không làm tròn.

Cách dùng Hệ cơ số

  1. 01

    Gõ một số vào bất kỳ trường nào trong bốn trường.

  2. 02

    Các hệ cơ số khác cập nhật tức thì khi bạn gõ.

  3. 03

    Bật/tắt hex chữ hoa và sao chép bất kỳ giá trị nào chỉ bằng một cú nhấp.

What it does

This number base converter switches whole numbers between binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16). Every field is editable, so you can type into any base and read the equivalent in the others instantly.

How number bases work

A number base is just how many distinct digits a system uses before it rolls over to the next position. Decimal uses ten (0 to 9), binary uses two (0 and 1), and hexadecimal uses sixteen, adding a to f for the values ten to fifteen, which is why a single hex digit neatly represents four binary bits.

Exact results with big integers

Conversions use arbitrary-precision integers (BigInt), so even very long values stay exact, without the rounding errors that affect ordinary floating-point numbers once they get large.

Why bases matter in low-level work

Bases come up all over low-level work: hexadecimal for colors, bytes and memory addresses, binary for flags and network masks, and octal for Unix file permissions. Reading the same value across bases makes debugging and bit-twiddling much easier.

Input rules and limits

A leading minus sign is supported for negatives, spaces are ignored so you can group digits for readability, and an option shows hexadecimal in upper or lower case.

It converts integers only; fractional base conversion is a separate problem and is intentionally left out so the results stay exact. Everything runs in your browser.

Câu hỏi thường gặp

Những hệ cơ số nào được hỗ trợ?

Nhị phân (cơ số 2), bát phân (cơ số 8), thập phân (cơ số 10) và thập lục phân (cơ số 16). Bạn có thể sửa bất kỳ trường nào và các trường còn lại theo sau.

Nó có xử lý số rất lớn không?

Có. Nó dùng số nguyên độ chính xác tùy ý (BigInt), nên ngay cả giá trị rất dài cũng chuyển đổi chính xác mà không có lỗi làm tròn ảnh hưởng đến số dấu phẩy động thông thường.

Tôi có thể nhập số âm không?

Có, dấu trừ ở đầu được hỗ trợ. Khoảng trắng bị bỏ qua, nên bạn có thể nhóm các chữ số cho dễ đọc.

Nó có hỗ trợ số thập phân hoặc phân số không?

Không, nó chuyển đổi số nguyên. Chuyển đổi cơ số phân số là một bài toán riêng và được cố ý loại bỏ để giữ kết quả chính xác.

Nhúng công cụ này

Thêm công cụ này vào trang web của riêng bạn. Sao chép đoạn mã bên dưới; nó tự động cập nhật.

<iframe src="https://monu.tools/embed/vi/number-base-converter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

Công cụ liên quan