Developer Tools

Number Base Converter

Enter a number in decimal, binary (base 2), octal (base 8), or hexadecimal (base 16) and see all other representations update instantly. Handles both positive and negative integers.

Converts all bases simultaneously Browser-only Decimal, binary, octal, hex

Type a number in any base; all other bases update instantly.

Base 10

Digits: 0–9

Base 2

Digits: 0–1

Base 8

Digits: 0–7

Base 16

Digits: 0–9, A–F

Features

  • Decimal ↔ Binary ↔ Octal ↔ Hexadecimal all live-sync
  • Handles negative integers (two's complement display)
  • Uppercase and lowercase hex supported
  • Groups binary in 4-bit nibbles for readability
  • Copy any base value with one click
  • Browser-only

How to use it

  1. Type a number in any base field.
  2. All other bases update instantly.
  3. For hex, enter digits 0-9 and A-F (case-insensitive).
  4. For binary, use only 0 and 1.
  5. Copy any value with the copy button.

Use cases

  • Converting decimal values to binary for bitwise programming
  • Reading hex color codes or memory addresses
  • Converting between number bases for computer science coursework
  • Debugging byte-level data in different representations

Limitations

  • Floating-point numbers are not supported, integers only.
  • Numbers larger than JavaScript's safe integer range may lose precision.
Questions & answers

Frequently asked

What is the maximum number size?

Up to Number.MAX_SAFE_INTEGER (2^53 - 1). For larger values, consider a library with big integer support.