Chuyển Đổi Số

Chuyển đổi số giữa các cơ số: nhị phân, bát phân, thập phân, thập lục phân, cơ số 32, cơ số 36 và cơ số 64.

Xem hướng dẫn

Hướng Dẫn

What does this tool do

The Number Converter converts integer numbers between seven bases: binary (2), octal (8), decimal (10), hexadecimal (16), base 32, base 36, and base 64. Enter a number and select the source base; the tool displays the value in all other bases. Supports negative numbers and arbitrarily large integers (BigInt). Built for developers, students, and anyone working with different number systems.

How to use it

  1. Enter input — Type a number in the selected base (e.g. 255 in decimal, FF in hex, 11111111 in binary).
  2. Select source base — Use the dropdown to choose which base your input is in (default: decimal).
  3. View outputs — All seven base representations appear with copy buttons.
  4. Copy — Click a format's copy button to use it in code, docs, or calculations.

How it works

Parsing: The input string is parsed digit-by-digit using the alphabet for the source base. Base 2–36 use standard digits (0–9, A–Z, case-insensitive for bases 2–36). Base 32 uses a Crockford-style alphabet (0–9, A–V, excluding I, L, O, U). Base 64 uses the standard Base64 charset (0–9, A–Z, a–z, +, /) and is case-sensitive. Conversion: The value is stored as a BigInt. Output for each base is produced by repeated division, mapping remainders to the base's alphabet. Negative numbers are supported via a leading minus sign.

All computation runs entirely in your browser. No data is sent to any server.

Use cases & examples

  • Programming — Convert hex color codes, binary flags, or bit masks.
  • Low-level work — Translate between binary, octal, and hex for debugging.
  • Education — Explore number bases for computer science or math courses.
  • Data encoding — Use base 32 or base 64 for compact numeric representation.
  • API development — Verify numeric IDs or hashes in different encodings.

Example

  • 255 (decimal) → 11111111 (binary), 377 (octal), FF (hex)
  • FF (hex) → 255 (decimal)
  • -42 (decimal) → -101010 (binary), -52 (octal), -2A (hex)

Limitations & known constraints

  • Integers only — Fractions and decimals are not supported.
  • Input length — Maximum 1,000 digits to avoid performance issues.
  • Base 32 alphabet — Uses Crockford-style; excludes I, L, O, U to avoid confusion with 1 and 0.
  • Base 64 — Case-sensitive; a and A represent different digits (10 vs 36).

Tất cả tính toán và chuyển đổi chạy hoàn toàn trên trình duyệt. Không có dữ liệu được gửi đến máy chủ, dữ liệu của bạn không rời khỏi thiết bị.