Number Base Converter

Convert numbers between decimal, binary, octal, and hexadecimal with step-by-step calculation.

  1. Home
  2. Utility
  3. Number Base Converter

Decimal

Binary

Octal

Hexadecimal

What Is a Number Base?

A number base (or radix) is the number of unique digits used to represent numbers in a positional numeral system. The most common bases are:

  • Decimal (base-10) — Uses digits 0–9. The standard system used in everyday life.
  • Binary (base-2) — Uses digits 0 and 1. The native language of computers.
  • Octal (base-8) — Uses digits 0–7. Commonly used in Unix file permissions.
  • Hexadecimal (base-16) — Uses digits 0–9 and letters A–F. Used for memory addresses, color codes, and hashes.

Each position in a number represents a power of the base. For example, in decimal, the number 255 means 2×10² + 5×10¹ + 5×10⁰. In binary, the same value is 11111111 (1×2⁷ + 1×2⁶ + ... + 1×2⁰).

How to Use

  1. Select input base — Choose the base of the number you are entering (Decimal, Binary, Octal, or Hexadecimal).
  2. Type a number — Enter the value in the input field. The tool validates digits are valid for the selected base.
  3. View conversions — All four bases update in real-time as you type.
  4. Expand the steps — Read the step-by-step calculation below the results to understand how the conversion works.
  5. Copy results — Click the copy icon next to any base to copy that value to your clipboard.

Frequently Asked Questions

What is the difference between a number base converter and a text encoder?

A number base converter converts numeric values between numeral systems (e.g., decimal 255 = hex FF). A text encoder converts each character of text into its byte representation (e.g., "Hello" = 48656C6C6F in hex). This tool converts numbers, not text.

Does this tool support negative numbers or fractions?

Currently this tool supports positive integers only. Negative numbers and fractional values are not supported in this version.

Why can't I type certain letters in the binary or octal input?

The tool validates input against the selected base. Binary only accepts 0 and 1. Octal only accepts 0–7. Decimal accepts 0–9. Hexadecimal accepts 0–9, A–F, and a–f. Invalid characters are automatically filtered.

Is this tool client-side?

Yes, 100%. All conversion logic runs in your browser using JavaScript. No data is sent to any server. The tool works offline after the page has loaded.