Конвертер чисел

Преобразуйте числа между системами счисления: двоичная, восьмеричная, десятичная, шестнадцатеричная, основа 32, основа 36 и основа 64.

Открыть руководство

Руководство

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).

Все расчёты и конвертации выполняются в браузере. Никакие данные не отправляются на сервер — ввод не покидает устройство.